NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Types | Signals | Public Member Functions | Protected Member Functions | List of all members
niftk::AffineTransformDataInteractor3D Class Reference

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

Inheritance diagram for niftk::AffineTransformDataInteractor3D:
Inheritance graph
[legend]
Collaboration diagram for niftk::AffineTransformDataInteractor3D:
Collaboration graph
[legend]

Public Types

enum  { INTERACTION_MODE_TRANSLATION, INTERACTION_MODE_ROTATION }
 

Signals

void transformReady ()
 

Public Member Functions

 mitkClassMacro (AffineTransformDataInteractor3D, mitk::DataInteractor) itkFactorylessNewMacro(Self) itkCloneMacro(Self) void SetInteractionMode(unsigned int interactionMode)
 Set interaction mode by enum. More...
 
void SetInteractionModeToTranslation ()
 Set interaction mode to translate. More...
 
void SetInteractionModeToRotation ()
 Set interaction mode to rotate. More...
 
unsigned int GetInteractionMode () const
 Return the enum of the set interaction mode. More...
 
void SetAxesFixed (bool on, int which=0)
 Sets if an axis should be fit and which axis. More...
 
void SetBoundingObjectNode (mitk::DataNode *bObj)
 Sets to node to be used for the bounding box. More...
 
vtkMatrix4x4 * GetUpdatedGeometry ()
 

Protected Member Functions

 AffineTransformDataInteractor3D ()
 
virtual ~AffineTransformDataInteractor3D ()
 
virtual void ConnectActionsAndFunctions () override
 
bool UpdateCurrentRendererPointers (const mitk::InteractionEvent *interactionEvent)
 
bool CheckObject (const mitk::InteractionEvent *interactionEvent)
 
bool SelectObject (mitk::StateMachineAction *action, mitk::InteractionEvent *interactionEvent)
 
bool DeselectObject (mitk::StateMachineAction *action, mitk::InteractionEvent *interactionEvent)
 
bool InitMove (mitk::StateMachineAction *action, mitk::InteractionEvent *interactionEvent)
 
bool Move (mitk::StateMachineAction *action, mitk::InteractionEvent *interactionEvent)
 
bool AcceptMove (mitk::StateMachineAction *action, mitk::InteractionEvent *interactionEvent)
 

Detailed Description

Affine data interaction with objects in 3D windows.

Member Enumeration Documentation

anonymous enum
Enumerator
INTERACTION_MODE_TRANSLATION 
INTERACTION_MODE_ROTATION 

Constructor & Destructor Documentation

niftk::AffineTransformDataInteractor3D::AffineTransformDataInteractor3D ( )
protected
niftk::AffineTransformDataInteractor3D::~AffineTransformDataInteractor3D ( )
protectedvirtual

Member Function Documentation

bool niftk::AffineTransformDataInteractor3D::AcceptMove ( mitk::StateMachineAction *  action,
mitk::InteractionEvent *  interactionEvent 
)
protected
bool niftk::AffineTransformDataInteractor3D::CheckObject ( const mitk::InteractionEvent *  interactionEvent)
protected
void niftk::AffineTransformDataInteractor3D::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.

bool niftk::AffineTransformDataInteractor3D::DeselectObject ( mitk::StateMachineAction *  action,
mitk::InteractionEvent *  interactionEvent 
)
protected
unsigned int niftk::AffineTransformDataInteractor3D::GetInteractionMode ( ) const

Return the enum of the set interaction mode.

vtkMatrix4x4 * niftk::AffineTransformDataInteractor3D::GetUpdatedGeometry ( )
bool niftk::AffineTransformDataInteractor3D::InitMove ( mitk::StateMachineAction *  action,
mitk::InteractionEvent *  interactionEvent 
)
protected
niftk::AffineTransformDataInteractor3D::mitkClassMacro ( AffineTransformDataInteractor3D  ,
mitk::DataInteractor   
)

Set interaction mode by enum.

bool niftk::AffineTransformDataInteractor3D::Move ( mitk::StateMachineAction *  action,
mitk::InteractionEvent *  interactionEvent 
)
protected
bool niftk::AffineTransformDataInteractor3D::SelectObject ( mitk::StateMachineAction *  action,
mitk::InteractionEvent *  interactionEvent 
)
protected
void niftk::AffineTransformDataInteractor3D::SetAxesFixed ( bool  on,
int  which = 0 
)

Sets if an axis should be fit and which axis.

void niftk::AffineTransformDataInteractor3D::SetBoundingObjectNode ( mitk::DataNode *  bObj)
inline

Sets to node to be used for the bounding box.

void niftk::AffineTransformDataInteractor3D::SetInteractionModeToRotation ( )

Set interaction mode to rotate.

void niftk::AffineTransformDataInteractor3D::SetInteractionModeToTranslation ( )

Set interaction mode to translate.

void niftk::AffineTransformDataInteractor3D::transformReady ( )
signal
bool niftk::AffineTransformDataInteractor3D::UpdateCurrentRendererPointers ( const mitk::InteractionEvent *  interactionEvent)
protected

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