Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitk::AffineImageCropperInteractor Class Reference

Affine interaction with objects in 3D windows. More...

#include <mitkAffineImageCropperInteractor.h>

Inheritance diagram for mitk::AffineImageCropperInteractor:
Collaboration diagram for mitk::AffineImageCropperInteractor:

Public Member Functions

 mitkClassMacro (AffineImageCropperInteractor, DataInteractor)
 
Pointer Clone () const
 
- Public Member Functions inherited from mitk::DataInteractor
virtual std::vector< std::string > GetClassHierarchy () const override
 
virtual const char * GetClassName () const
 
Pointer Clone () const
 
DataNodeGetDataNode () const
 
virtual void SetDataNode (DataNode *dataNode)
 
int GetLayer () const
 
ProcessEventMode GetMode () const
 
- Public Member Functions inherited from mitk::EventStateMachine
bool LoadStateMachine (const std::string &filename, const us::Module *module=nullptr)
 Loads XML resource. More...
 
bool HandleEvent (InteractionEvent *event, DataNode *dataNode)
 
void EnableUndo (bool enable)
 Enables or disabled Undo. More...
 
void EnableInteraction (bool enable)
 Enables/disables the state machine. In un-enabled state it won't react to any events. More...
 
- Public Member Functions inherited from mitk::InteractionEventHandler
bool SetEventConfig (const std::string &filename, const us::Module *module=nullptr)
 Loads a configuration from an XML resource. More...
 
bool SetEventConfig (const EventConfig &config)
 Loads a configuration from an EventConfig object. More...
 
EventConfig GetEventConfig () const
 Returns the current configuration. More...
 
bool AddEventConfig (const std::string &filename, const us::Module *module=nullptr)
 This method extends the configuration. More...
 
bool AddEventConfig (const EventConfig &config)
 This method extends the configuration. The configuration from the EventConfig object is loaded and only the ones conflicting are replaced by the new one. This way several configurations can be combined. More...
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from mitk::DataInteractor
static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 
- Static Public Member Functions inherited from mitk::EventStateMachine
static const char * GetStaticNameOfClass ()
 
- Static Public Member Functions inherited from mitk::InteractionEventHandler
static const char * GetStaticNameOfClass ()
 

Protected Member Functions

 AffineImageCropperInteractor ()
 
 ~AffineImageCropperInteractor () override
 
void ConnectActionsAndFunctions () override
 
void DataNodeChanged () override
 
virtual bool CheckOverObject (const InteractionEvent *interactionEvent)
 
virtual void SelectObject (StateMachineAction *, InteractionEvent *)
 
virtual void DeselectObject (StateMachineAction *, InteractionEvent *)
 
virtual void InitTranslate (StateMachineAction *, InteractionEvent *)
 
virtual void InitRotate (StateMachineAction *, InteractionEvent *)
 
virtual void InitDeformation (StateMachineAction *, InteractionEvent *)
 
virtual void TranslateObject (StateMachineAction *, InteractionEvent *interactionEvent)
 
virtual void RotateObject (StateMachineAction *, InteractionEvent *interactionEvent)
 
virtual void DeformObject (StateMachineAction *, InteractionEvent *)
 
virtual void ScaleRadius (StateMachineAction *, InteractionEvent *interactionEvent)
 
- Protected Member Functions inherited from mitk::DataInteractor
 DataInteractor ()
 
 ~DataInteractor () override
 
virtual void NotifyStart ()
 Sends StartInteraction event via the mitk::DataNode. More...
 
virtual void NotifyResultReady ()
 NotifyResultReady Sends ResultReady event via the mitk::DataNode. More...
 
- Protected Member Functions inherited from mitk::EventStateMachine
 EventStateMachine ()
 
 ~EventStateMachine () override
 
void AddActionFunction (const std::string &action, TActionFunctor *functor)
 
void AddActionFunction (const std::string &action, const ActionFunctionDelegate &delegate)
 
void AddConditionFunction (const std::string &condition, const ConditionFunctionDelegate &delegate)
 
StateMachineStateGetCurrentState () const
 
void ResetToStartState ()
 ResetToStartState Reset state machine to it initial starting state. More...
 
virtual bool CheckCondition (const StateMachineCondition &condition, const InteractionEvent *interactionEvent)
 
virtual void ExecuteAction (StateMachineAction *action, InteractionEvent *interactionEvent)
 
virtual bool FilterEvents (InteractionEvent *interactionEvent, DataNode *dataNode)
 
void SetMouseCursor (const char *xpm[], int hotspotX, int hotspotY)
 Sets the specified mouse cursor. More...
 
void ResetMouseCursor ()
 Resets the mouse cursor to its original state. More...
 
StateMachineTransitionGetExecutableTransition (InteractionEvent *event)
 Returns the executable transition for the given event. More...
 
- Protected Member Functions inherited from mitk::InteractionEventHandler
 InteractionEventHandler ()
 
 ~InteractionEventHandler () override
 
PropertyList::Pointer GetAttributes () const
 
std::string MapToEventVariant (InteractionEvent *interactionEvent)
 
virtual void ConfigurationChanged ()
 

Additional Inherited Members

- Public Types inherited from mitk::DataInteractor
typedef DataInteractor Self
 
typedef EventStateMachine Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
- Public Types inherited from mitk::EventStateMachine
typedef EventStateMachine Self
 
typedef InteractionEventHandler Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef std::map< std::string, TActionFunctor * > ActionFunctionsMapType
 
typedef itk::SmartPointer< StateMachineStateStateMachineStateType
 
- Public Types inherited from mitk::InteractionEventHandler
typedef InteractionEventHandler Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
- Static Public Attributes inherited from mitk::DataInteractor
static const std::string IntDeactivateMe
 
static const std::string IntLeaveWidget
 
static const std::string IntEnterWidget
 
- Protected Types inherited from mitk::EventStateMachine
typedef MessageAbstractDelegate2< StateMachineAction *, InteractionEvent *, void > ActionFunctionDelegate
 
typedef MessageAbstractDelegate1< const InteractionEvent *, bool > ConditionFunctionDelegate
 
- Protected Attributes inherited from mitk::EventStateMachine
bool m_IsActive
 
UndoControllerm_UndoController
 
bool m_UndoEnabled
 

Detailed Description

Affine interaction with objects in 3D windows.

Definition at line 29 of file mitkAffineImageCropperInteractor.h.

Constructor & Destructor Documentation

◆ AffineImageCropperInteractor()

mitk::AffineImageCropperInteractor::AffineImageCropperInteractor ( )
protected

◆ ~AffineImageCropperInteractor()

mitk::AffineImageCropperInteractor::~AffineImageCropperInteractor ( )
overrideprotected

Member Function Documentation

◆ CheckOverObject()

virtual bool mitk::AffineImageCropperInteractor::CheckOverObject ( const InteractionEvent interactionEvent)
protectedvirtual

Initializes the movement, stores starting position.

◆ Clone()

Pointer mitk::AffineImageCropperInteractor::Clone ( ) const

◆ ConnectActionsAndFunctions()

void mitk::AffineImageCropperInteractor::ConnectActionsAndFunctions ( )
overrideprotectedvirtual

Here actions strings from the loaded state machine pattern are mapped to functions of the DataInteractor. These functions are called when an action from the state machine pattern is executed.

Reimplemented from mitk::DataInteractor.

◆ DataNodeChanged()

void mitk::AffineImageCropperInteractor::DataNodeChanged ( )
overrideprotectedvirtual

This function is called when a DataNode has been set/changed.

Reimplemented from mitk::DataInteractor.

◆ DeformObject()

virtual void mitk::AffineImageCropperInteractor::DeformObject ( StateMachineAction ,
InteractionEvent  
)
protectedvirtual

◆ DeselectObject()

virtual void mitk::AffineImageCropperInteractor::DeselectObject ( StateMachineAction ,
InteractionEvent  
)
protectedvirtual

◆ InitDeformation()

virtual void mitk::AffineImageCropperInteractor::InitDeformation ( StateMachineAction ,
InteractionEvent  
)
protectedvirtual

◆ InitRotate()

virtual void mitk::AffineImageCropperInteractor::InitRotate ( StateMachineAction ,
InteractionEvent  
)
protectedvirtual

◆ InitTranslate()

virtual void mitk::AffineImageCropperInteractor::InitTranslate ( StateMachineAction ,
InteractionEvent  
)
protectedvirtual

◆ mitkClassMacro()

mitk::AffineImageCropperInteractor::mitkClassMacro ( AffineImageCropperInteractor  ,
DataInteractor   
)

◆ New()

static Pointer mitk::AffineImageCropperInteractor::New ( )
static

◆ RotateObject()

virtual void mitk::AffineImageCropperInteractor::RotateObject ( StateMachineAction ,
InteractionEvent interactionEvent 
)
protectedvirtual

◆ ScaleRadius()

virtual void mitk::AffineImageCropperInteractor::ScaleRadius ( StateMachineAction ,
InteractionEvent interactionEvent 
)
protectedvirtual

◆ SelectObject()

virtual void mitk::AffineImageCropperInteractor::SelectObject ( StateMachineAction ,
InteractionEvent  
)
protectedvirtual

◆ TranslateObject()

virtual void mitk::AffineImageCropperInteractor::TranslateObject ( StateMachineAction ,
InteractionEvent interactionEvent 
)
protectedvirtual

The documentation for this class was generated from the following file: