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

Derived from mitk::PointSetInteractor so we can handle the mouse move event. More...

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

Public Member Functions

 mitkClassMacro (PointSetInteractor, mitk::PointSetInteractor) mitkNewMacro3Param(Self
 
float CanHandleEvent (const mitk::StateEvent *stateEvent) const
 Tells if this tool can handle the given event. More...
 
virtual float CanHandle (const mitk::StateEvent *stateEvent) const
 overriden the base class function, to enable mouse move events. More...
 
virtual bool ExecuteAction (mitk::Action *action, mitk::StateEvent const *stateEvent)
 Convert the given Actions to Operations and send to data and UndoController. More...
 
- Public Member Functions inherited from niftk::FilteringStateMachine
 FilteringStateMachine ()
 Constructs a FilteringStateMachine object. More...
 
virtual ~FilteringStateMachine ()
 Destructs the FilteringStateMachine object. More...
 
float CanHandleEvent (const mitk::StateEvent *event) const
 This function is to replace the original CanHandleEvent function to support event filtering. More...
 
bool CanHandleEvent (mitk::InteractionEvent *event)
 
virtual void InstallEventFilter (StateMachineEventFilter *eventFilter)
 Installs an event filter that can reject a state machine event or let it pass through. More...
 
virtual void RemoveEventFilter (StateMachineEventFilter *eventFilter)
 Removes an event filter that can reject a state machine event or let it pass through. More...
 
std::vector
< StateMachineEventFilter * > 
GetEventFilters () const
 Gets the list of the installed event filters. More...
 
bool IsFiltered (const mitk::StateEvent *stateEvent) const
 Tells if the event is rejected by the installed event filters or they let it pass through. More...
 
bool IsFiltered (mitk::InteractionEvent *event)
 Tells if the event is rejected by the installed event filters or they let it pass through. More...
 

Public Attributes

const char mitk::DataNode int
virtual mitkNewMacro2Param(Self,
const char *, mitk::DataNode
*) protecte 
~PointSetInteractor )()
 Constructor with Param n for limited Set of Points. More...
 

Additional Inherited Members

- Protected Member Functions inherited from niftk::FilteringStateMachine
virtual bool CanHandle (mitk::InteractionEvent *event)
 

Detailed Description

Derived from mitk::PointSetInteractor so we can handle the mouse move event.

Member Function Documentation

float niftk::PointSetInteractor::CanHandle ( const mitk::StateEvent *  stateEvent) const
virtual

overriden the base class function, to enable mouse move events.

overwritten cause this class can handle it better!

Reimplemented from niftk::FilteringStateMachine.

float niftk::PointSetInteractor::CanHandleEvent ( const mitk::StateEvent *  stateEvent) const

Tells if this tool can handle the given event.

This implementation delegates the call to FilteringStateMachine::CanHandleEvent(), that checks if the event is filtered by one of the installed event filters and if not, calls CanHandle() and returns with its result.

Note that this function is purposefully not virtual. Eventual subclasses should override the CanHandle function.

bool niftk::PointSetInteractor::ExecuteAction ( mitk::Action *  action,
mitk::StateEvent const *  stateEvent 
)
virtual

Convert the given Actions to Operations and send to data and UndoController.

Overrides mitk::PointSetInteractor::ExecuteAction() so that for any operation the display position is modified to be in the middle of a pixel.

niftk::PointSetInteractor::mitkClassMacro ( PointSetInteractor  ,
mitk::PointSetInteractor   
)

Member Data Documentation

niftk::PointSetInteractor::~PointSetInteractor

Constructor with Param n for limited Set of Points.

If no n is set, then the number of points is unlimited n=0 is not supported. In this case, n is set to 1. Default Destructor


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