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

Observer that manages the interaction with the thumbnail window. More...

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

Public Member Functions

 mitkClassMacro (ThumbnailInteractor, mitk::DisplayInteractor) mitkNewMacro1Param(Self
 
ThumbnailRenderWindow *virtual void Notify (mitk::InteractionEvent *interactionEvent, bool isHandled) override
 

Protected Member Functions

 ThumbnailInteractor (ThumbnailRenderWindow *thumbnailWindow)
 
virtual ~ThumbnailInteractor ()
 
virtual void ConnectActionsAndFunctions () override
 
virtual bool Init (mitk::StateMachineAction *action, mitk::InteractionEvent *event) override
 
virtual bool Move (mitk::StateMachineAction *action, mitk::InteractionEvent *event) override
 
virtual bool Zoom (mitk::StateMachineAction *action, mitk::InteractionEvent *event) override
 

Detailed Description

Observer that manages the interaction with the thumbnail window.

Constructor & Destructor Documentation

niftk::ThumbnailInteractor::ThumbnailInteractor ( ThumbnailRenderWindow thumbnailWindow)
protected
niftk::ThumbnailInteractor::~ThumbnailInteractor ( )
protectedvirtual

Member Function Documentation

void niftk::ThumbnailInteractor::ConnectActionsAndFunctions ( )
overrideprotectedvirtual

Note: We do not delegate the call to the superclass because do not want mouse wheel interactions for changing slice.

bool niftk::ThumbnailInteractor::Init ( mitk::StateMachineAction *  action,
mitk::InteractionEvent *  event 
)
overrideprotectedvirtual
niftk::ThumbnailInteractor::mitkClassMacro ( ThumbnailInteractor  ,
mitk::DisplayInteractor   
)
bool niftk::ThumbnailInteractor::Move ( mitk::StateMachineAction *  action,
mitk::InteractionEvent *  event 
)
overrideprotectedvirtual
void niftk::ThumbnailInteractor::Notify ( mitk::InteractionEvent *  interactionEvent,
bool  isHandled 
)
overridevirtual

By this function the Observer gets notifier about new events. Here it is adapted to pass the events to the state machine in order to use its infrastructure. It also checks if event is to be accepted when i already has been processed by a DataInteractor.

bool niftk::ThumbnailInteractor::Zoom ( mitk::StateMachineAction *  action,
mitk::InteractionEvent *  event 
)
overrideprotectedvirtual

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