17 #ifndef mitkBoundingShapeInteractor_h
18 #define mitkBoundingShapeInteractor_h
31 #pragma GCC visibility push(default)
33 #pragma GCC visibility pop
46 itkFactorylessNewMacro(Self) itkCloneMacro(Self)
48 virtual
void SetDataNode(DataNode *dataNode) override;
53 virtual ~BoundingShapeInteractor();
81 virtual
void SelectObject(StateMachineAction *, InteractionEvent *);
86 virtual
void DeselectObject(StateMachineAction *, InteractionEvent *);
91 virtual
void SelectHandle(StateMachineAction *, InteractionEvent *);
101 virtual
void ScaleObject(StateMachineAction *, InteractionEvent *);
111 virtual
void InitInteraction(StateMachineAction *, InteractionEvent *interactionEvent);
115 virtual
void DeselectHandles(StateMachineAction *, InteractionEvent *interactionEvent);
123 bool InitMembers(InteractionEvent *interactionEvent);
129 void EnableCrosshairNavigation();
133 void DisableCrosshairNavigation();
bool InitMembers(InteractionEvent *interactionEvent)
Initializes member variables.
virtual bool CheckOverObject(const InteractionEvent *)
Checks if the mouse pointer is over the object.
#define MITKBOUNDINGSHAPE_EXPORT
virtual void DataNodeChanged() override
Called when a DataNode has been set/changed.
DataCollection - Class to facilitate loading/accessing structured data.
virtual void DeselectObject(StateMachineAction *, InteractionEvent *)
Called if the mouse pointer leaves the area of the object.
virtual void SelectObject(StateMachineAction *, InteractionEvent *)
Called if the mouse pointer is over the object indicated by a color change.
virtual void RestoreNodeProperties()
Restore default properties of bounding box and handles.
virtual void TranslateObject(StateMachineAction *, InteractionEvent *)
Performs a translation of the object relative to the mouse movement.
virtual void DeselectHandles(StateMachineAction *, InteractionEvent *interactionEvent)
Deselects all Handles at the end of interaction.
virtual bool CheckOverHandles(const InteractionEvent *interactionEvent)
Checks if the mouse pointer is over one of the assigned handles.
virtual void ConnectActionsAndFunctions() override
#define mitkClassMacro(className, SuperClassName)
Point< ScalarType, 3 > Point3D
itkEventMacro(ContourModelEvent, itk::AnyEvent)
virtual void SetDataNode(DataNode *dataNode) override
void SetRotationEnabled(bool rotationEnabled)
void HandlePositionChanged(const InteractionEvent *interactionEvent, Point3D ¢er)
virtual void SelectHandle(StateMachineAction *, InteractionEvent *)
Called if the mouse pointer is over one of the handles indicated by a color change.
virtual void ScaleObject(StateMachineAction *, InteractionEvent *)
Performs a object shape change by influencing the scaling of the initial bounding box...
BoundingShapeInteractor()
virtual void InitInteraction(StateMachineAction *, InteractionEvent *interactionEvent)
Performs a rotation of the object relative to the mouse movement.