13 #ifndef mitkBoundingShapeInteractor_h
14 #define mitkBoundingShapeInteractor_h
30 #pragma GCC visibility push(default)
34 #pragma GCC visibility pop
54 itkFactorylessNewMacro(Self);
91 std::array<bool, 6> &handleVisible);
153 void EnableOriginalInteraction();
158 void DisableOriginalInteraction();
#define MITKBOUNDINGSHAPE_EXPORT
Interactor for manipulating bounding shapes (GeometryData).
virtual void DeselectHandles(StateMachineAction *, InteractionEvent *interactionEvent)
Deselects all Handles at the end of interaction.
void HandlePositionChanged(const InteractionEvent *interactionEvent, Point3D ¢er, std::array< bool, 6 > &handleVisible)
Updates the handle positions for the renderer of the given event and reports which handles are visibl...
virtual void SelectHandle(StateMachineAction *, InteractionEvent *)
Called if the mouse pointer is over one of the handles indicated by a color change.
void DataNodeChanged() override
Called when a DataNode has been set/changed.
virtual bool CheckOverObject(const InteractionEvent *)
Checks if the mouse pointer is over the object.
mitkClassMacro(BoundingShapeInteractor, DataInteractor)
void SetDataNode(DataNode *dataNode) override
Set the data node this interactor operates on.
BoundingShapeInteractor()
virtual void DeselectObject(StateMachineAction *, InteractionEvent *)
Called if the mouse pointer leaves the area of the object.
~BoundingShapeInteractor() override
virtual void SelectObject(StateMachineAction *, InteractionEvent *)
Called if the mouse pointer is over the object indicated by a color change.
virtual bool CheckOverHandles(const InteractionEvent *interactionEvent)
Checks if the mouse pointer is over one of the assigned handles.
bool InitMembers(InteractionEvent *interactionEvent)
Initializes member variables.
virtual void InitInteraction(StateMachineAction *, InteractionEvent *interactionEvent)
Initializes the movement, stores starting position.
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 ScaleObject(StateMachineAction *, InteractionEvent *)
Performs a object shape change by influencing the scaling of the initial bounding box.
void ConnectActionsAndFunctions() override
Base class for interactors that operate on DataNodes.
Central node class of the MITK data tree, associating a data object with properties and mappers.
Base class for all interaction events in MITK.
Represents an action that is executed after a certain event in the state machine mechanism.
Find image slices visible on a given plane.
itkEventMacroDeclaration(BoundingShapeInteractionEvent, itk::AnyEvent)