Free Electron
TransformManipulator.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __operator_TransformManipulator_h__
8 #define __operator_TransformManipulator_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Manipulator to adjust a SpatialTransform
17 
18  @ingroup operator
19 *//***************************************************************************/
20 class FE_DL_EXPORT TransformManipulator:
21  public ManipulatorCommon,
22  public Initialize<TransformManipulator>
23 {
24  public:
25 
27  m_mode(e_deform) {}
28 virtual ~TransformManipulator(void) {}
29 
30  void initialize(void);
31 
32  //* As HandlerI (window events)
33 virtual void handle(Record& a_rSignal);
34 
35 virtual String mode(void) const
36  { return m_mode==e_deform? "deform": "pivot"; }
37 
38  protected:
39  //* As ManipulatorCommon
40 virtual void updateGrips(void);
41 
42  private:
43 
44  void updateTransform(void);
45 
46  enum Mode
47  {
48  e_deform,
49  e_pivot
50  };
51 
52  Mode m_mode;
53  sp<DrawMode> m_spCircleAura;
54 
55  SpatialTransform m_unscaled;
56  SpatialVector m_scaling;
57 };
58 
59 } /* namespace ext */
60 } /* namespace fe */
61 
62 #endif /* __operator_TransformManipulator_h__ */
Manipulator to adjust a SpatialTransform.
Definition: TransformManipulator.h:20
Partial Generic ManipulatorI Implemention.
Definition: ManipulatorCommon.h:20
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Automatically reference-counted string container.
Definition: String.h:128
Reference to an instance of a Layout.
Definition: RecordSB.h:35