Medical Imaging Interaction Toolkit  2016.11.0
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)
 
virtual ~QmitkStepperAdapter ()
 
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 38 of file QmitkStepperAdapter.h.

Constructor & Destructor Documentation

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

Definition at line 32 of file QmitkStepperAdapter.cpp.

References m_ItkEventListener, m_ObserverTag, and m_Stepper.

Member Function Documentation

void QmitkStepperAdapter::Refetch ( )
signal

Referenced by QmitkStepperAdapter().

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

Referenced by QmitkStepperAdapter().

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

Definition at line 45 of file QmitkStepperAdapter.h.

Referenced by QmitkStepperAdapter().

void QmitkStepperAdapter::signal_dummy ( )
signal

Member Data Documentation

ItkEventListener::Pointer QmitkStepperAdapter::m_ItkEventListener
protected

Definition at line 75 of file QmitkStepperAdapter.h.

Referenced by QmitkStepperAdapter(), and ~QmitkStepperAdapter().

long QmitkStepperAdapter::m_ObserverTag
protected

Definition at line 72 of file QmitkStepperAdapter.h.

Referenced by QmitkStepperAdapter(), and ~QmitkStepperAdapter().

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

Definition at line 71 of file QmitkStepperAdapter.h.

Referenced by QmitkStepperAdapter(), and ~QmitkStepperAdapter().


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