Medical Imaging Interaction Toolkit  2024.06.99-5f7b36e7
Medical Imaging Interaction Toolkit
QmitkStepperAdapter Class Reference

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

#include <QmitkStepperAdapter.h>

Inheritance diagram for QmitkStepperAdapter:
Collaboration diagram for QmitkStepperAdapter:


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

Public Member Functions

 QmitkStepperAdapter (QObject *navigationWidget, mitk::Stepper *stepper)
 ~QmitkStepperAdapter () override
void SetStepper (mitk::Stepper *stepper)

Protected Attributes

mitk::Stepper::Pointer m_Stepper
long m_ObserverTag

Detailed Description

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

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

The navigation widget 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 32 of file QmitkStepperAdapter.h.

Constructor & Destructor Documentation

◆ QmitkStepperAdapter()

QmitkStepperAdapter::QmitkStepperAdapter ( QObject *  navigationWidget,
mitk::Stepper stepper 

◆ ~QmitkStepperAdapter()

QmitkStepperAdapter::~QmitkStepperAdapter ( )

Member Function Documentation

◆ Refetch

void QmitkStepperAdapter::Refetch ( )

◆ SendStepper

void QmitkStepperAdapter::SendStepper ( mitk::Stepper )

◆ SetStepper()

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

Member Data Documentation

◆ m_ObserverTag

long QmitkStepperAdapter::m_ObserverTag

Definition at line 51 of file QmitkStepperAdapter.h.

◆ m_Stepper

mitk::Stepper::Pointer QmitkStepperAdapter::m_Stepper

Definition at line 50 of file QmitkStepperAdapter.h.

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