Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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:

Signals

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.

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

Member Function Documentation

◆ Refetch

void QmitkStepperAdapter::Refetch ( )
signal

◆ SendStepper

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

◆ SetStepper()

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

Member Data Documentation

◆ m_ObserverTag

long QmitkStepperAdapter::m_ObserverTag
protected

Definition at line 51 of file QmitkStepperAdapter.h.

◆ m_Stepper

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

Definition at line 50 of file QmitkStepperAdapter.h.


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