MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitk::USPointMarkInteractor Class Reference

Simple interactor for getting just one position on mouse click. More...

#include <mitkUSPointMarkInteractor.h>

Inheritance diagram for mitk::USPointMarkInteractor:

Public Types

typedef Message1< DataNode * > PointMarkInteractorEvent
 

Public Member Functions

 mitkClassMacro (USPointMarkInteractor, DataInteractor)
 
 itkNewMacro (Self)
 

Public Attributes

PointMarkInteractorEvent CoordinatesChangedEvent
 

Protected Member Functions

 USPointMarkInteractor ()
 
 ~USPointMarkInteractor () override
 
void ConnectActionsAndFunctions () override
 Connects the functions from the state machine to methods of this class.
 
void DataNodeChanged () override
 Sets empty surface as data for the new data node. This is necessary as data nodes without data do not work with data interactors.
 
void AddPoint (StateMachineAction *, InteractionEvent *)
 Set current position as origin to the data node.
 

Static Protected Member Functions

static void UpdateSurface (itk::SmartPointer< mitk::DataNode >)
 

Detailed Description

Simple interactor for getting just one position on mouse click.

Definition at line 27 of file mitkUSPointMarkInteractor.h.

Member Typedef Documentation

◆ PointMarkInteractorEvent

Constructor & Destructor Documentation

◆ USPointMarkInteractor()

mitk::USPointMarkInteractor::USPointMarkInteractor ( )
protected

Definition at line 22 of file mitkUSPointMarkInteractor.cpp.

◆ ~USPointMarkInteractor()

mitk::USPointMarkInteractor::~USPointMarkInteractor ( )
overrideprotected

Definition at line 26 of file mitkUSPointMarkInteractor.cpp.

Member Function Documentation

◆ AddPoint()

void mitk::USPointMarkInteractor::AddPoint ( StateMachineAction * ,
InteractionEvent *  )
protected

Set current position as origin to the data node.

Definition at line 44 of file mitkUSPointMarkInteractor.cpp.

◆ ConnectActionsAndFunctions()

void mitk::USPointMarkInteractor::ConnectActionsAndFunctions ( )
overrideprotected

Connects the functions from the state machine to methods of this class.

Definition at line 30 of file mitkUSPointMarkInteractor.cpp.

◆ DataNodeChanged()

void mitk::USPointMarkInteractor::DataNodeChanged ( )
overrideprotected

Sets empty surface as data for the new data node. This is necessary as data nodes without data do not work with data interactors.

Definition at line 35 of file mitkUSPointMarkInteractor.cpp.

◆ itkNewMacro()

mitk::USPointMarkInteractor::itkNewMacro ( Self )

◆ mitkClassMacro()

mitk::USPointMarkInteractor::mitkClassMacro ( USPointMarkInteractor ,
DataInteractor  )

◆ UpdateSurface()

static void mitk::USPointMarkInteractor::UpdateSurface ( itk::SmartPointer< mitk::DataNode > )
staticprotected

Member Data Documentation

◆ CoordinatesChangedEvent

PointMarkInteractorEvent mitk::USPointMarkInteractor::CoordinatesChangedEvent

Definition at line 34 of file mitkUSPointMarkInteractor.h.


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