Medical Imaging Interaction Toolkit  2018.4.99-0a90f175
Medical Imaging Interaction Toolkit

Helper class to connect Qt-based navigators to instances of Stepper. More...

#include <QmitkStepperAdapter.h>

Inheritance diagram for QmitkStepperAdapter:
Collaboration diagram for QmitkStepperAdapter:

Classes

class  ItkEventListener
 

Signals

void signal_dummy ()
 
void Refetch ()
 
void SendStepper (mitk::Stepper *)
 

Public Member Functions

 QmitkStepperAdapter (QObject *navigator, mitk::Stepper *stepper, const char *name)
 
 ~QmitkStepperAdapter () override
 
void SetStepper (mitk::Stepper *stepper)
 

Protected Attributes

mitk::Stepper::Pointer m_Stepper
 
long m_ObserverTag
 
ItkEventListener::Pointer m_ItkEventListener
 

Detailed Description

Helper class to connect Qt-based navigators to instances of Stepper.

The constructor has to be provided with the Navigator that wants to use the Stepper. The Navigator has to define the slots Refetch() and SetStepper(mitk::Stepper *). SetStepper will be called only once to pass the Stepper to the Navigator. When the values of the Stepper changes, Refetch() will be called. The Navigator can than ask the Stepper for its new values.

Warning
The Navigator has to be aware that it might have caused the changes of the Stepper itself. So take care that no infinite recursion is created!

Definition at line 34 of file QmitkStepperAdapter.h.

Constructor & Destructor Documentation

◆ QmitkStepperAdapter()

QmitkStepperAdapter::QmitkStepperAdapter ( QObject *  navigator,
mitk::Stepper stepper,
const char *  name 
)

◆ ~QmitkStepperAdapter()

QmitkStepperAdapter::~QmitkStepperAdapter ( )
override

Member Function Documentation

◆ Refetch

void QmitkStepperAdapter::Refetch ( )
signal

◆ SendStepper

void QmitkStepperAdapter::SendStepper ( mitk::Stepper )
signal

◆ SetStepper()

void QmitkStepperAdapter::SetStepper ( mitk::Stepper stepper)
inline

Definition at line 41 of file QmitkStepperAdapter.h.

◆ signal_dummy

void QmitkStepperAdapter::signal_dummy ( )
signal

Member Data Documentation

◆ m_ItkEventListener

ItkEventListener::Pointer QmitkStepperAdapter::m_ItkEventListener
protected

Definition at line 71 of file QmitkStepperAdapter.h.

◆ m_ObserverTag

long QmitkStepperAdapter::m_ObserverTag
protected

Definition at line 68 of file QmitkStepperAdapter.h.

◆ m_Stepper

mitk::Stepper::Pointer QmitkStepperAdapter::m_Stepper
protected

Definition at line 67 of file QmitkStepperAdapter.h.


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