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

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

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

Public Member Functions

virtual mitkClassMacro(PointSetDataInteractor,
mitk::PointSetDataInteractor)
itkFactorylessNewMacro(Self)
itkCloneMacro(Self) protected 
~PointSetDataInteractor ()
 Constructor with Param n for limited Set of Points. More...
 
bool FilterEvents (mitk::InteractionEvent *event, mitk::DataNode *dataNode)
 Tells if this tool can handle the given event. More...
 
virtual bool CanHandle (mitk::InteractionEvent *event)
 
virtual bool ExecuteAction (mitk::StateMachineAction *action, mitk::InteractionEvent *event)
 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...
 

Additional Inherited Members

- Protected Member Functions inherited from niftk::FilteringStateMachine
virtual float CanHandle (const mitk::StateEvent *stateEvent) const
 

Detailed Description

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

Constructor & Destructor Documentation

niftk::PointSetDataInteractor::~PointSetDataInteractor ( )
virtual

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

Member Function Documentation

bool niftk::PointSetDataInteractor::CanHandle ( mitk::InteractionEvent *  event)
virtual

overwritten cause this class can handle it better!

Reimplemented from niftk::FilteringStateMachine.

bool niftk::PointSetDataInteractor::ExecuteAction ( mitk::StateMachineAction *  action,
mitk::InteractionEvent *  event 
)
virtual

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

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

TODO Disabled during the MITK upgrade.

bool niftk::PointSetDataInteractor::FilterEvents ( mitk::InteractionEvent *  event,
mitk::DataNode *  dataNode 
)

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.


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