Medical Imaging Interaction Toolkit  2022.04.99-2e1e005b
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:


class  ItkEventListener


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.

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 ( )

Member Function Documentation

◆ Refetch

void QmitkStepperAdapter::Refetch ( )

◆ SendStepper

void QmitkStepperAdapter::SendStepper ( mitk::Stepper )

◆ SetStepper()

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

Definition at line 41 of file QmitkStepperAdapter.h.

◆ signal_dummy

void QmitkStepperAdapter::signal_dummy ( )

Member Data Documentation

◆ m_ItkEventListener

ItkEventListener::Pointer QmitkStepperAdapter::m_ItkEventListener

Definition at line 71 of file QmitkStepperAdapter.h.

◆ m_ObserverTag

long QmitkStepperAdapter::m_ObserverTag

Definition at line 68 of file QmitkStepperAdapter.h.

◆ m_Stepper

mitk::Stepper::Pointer QmitkStepperAdapter::m_Stepper

Definition at line 67 of file QmitkStepperAdapter.h.

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