Medical Imaging Interaction Toolkit  2023.12.99-bb1d0334
Medical Imaging Interaction Toolkit
QmitkSliceNavigationWidget Class Reference

#include <QmitkSliceNavigationWidget.h>

Inheritance diagram for QmitkSliceNavigationWidget:
Collaboration diagram for QmitkSliceNavigationWidget:

Public Slots

void Refetch ()
 Update the slider with the recent changes applied to the navigation widget. More...
 
void SetStepper (mitk::Stepper *stepper)
 Set the stepper that should be represented and modified. More...
 
void ShowLabels (bool show)
 Enable / disable displaying of the minimum and maximum labels. More...
 
void ShowLabelUnit (bool show)
 Enable / disable displaying of the unit label (range will be displayed without unit if enabled). More...
 
void SetPos (int val)
 
void SetInverseDirection (bool inverseDirection)
 
void SetInvertedControls (bool invertedControls)
 

Public Member Functions

 QmitkSliceNavigationWidget (QWidget *parent=nullptr, Qt::WindowFlags f={})
 
QString ClippedValueToString (float value)
 Convert the passed value to a QString representation. More...
 
QString GetLabelUnit ()
 
QString GetMinValueLabel ()
 
QString GetMaxValueLabel ()
 
int GetPos ()
 
bool GetInverseDirection () const
 
bool GetInvertedControls () const
 

Protected Slots

void SliderChanged (double)
 React on changes of the slider. More...
 
void SpinBoxChanged (double)
 React on changes of the spinbox. More...
 
void SetLabelValues (float min, float max)
 Set label values for the range minimum and maximum. More...
 
void SetLabelValuesValid (bool minValid, bool maxValid)
 Enable / disable labels for the range minimum or maximum. More...
 
void SetLabelUnit (const char *unit)
 Set the range unit (e.g. mm or ms). More...
 
void SetLabels ()
 Configure slider with labels according to range and unit settings. More...
 

Protected Attributes

mitk::Stepper::Pointer m_Stepper
 
bool m_InRefetch
 
QString m_LabelUnit
 
bool m_HasLabelUnit
 
bool m_MaxValueValid
 
bool m_MinValueValid
 
bool m_HasLabels
 
float m_MinValue
 
float m_MaxValue
 
bool m_InverseDirection
 
bool m_InvertedControls
 

Detailed Description

Definition at line 24 of file QmitkSliceNavigationWidget.h.

Constructor & Destructor Documentation

◆ QmitkSliceNavigationWidget()

QmitkSliceNavigationWidget::QmitkSliceNavigationWidget ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = {} 
)

Member Function Documentation

◆ ClippedValueToString()

QString QmitkSliceNavigationWidget::ClippedValueToString ( float  value)

Convert the passed value to a QString representation.

If the value exceeds a certain maximum, "INF" (for "infinity") is displayed instead.

◆ GetInverseDirection()

bool QmitkSliceNavigationWidget::GetInverseDirection ( ) const

◆ GetInvertedControls()

bool QmitkSliceNavigationWidget::GetInvertedControls ( ) const

◆ GetLabelUnit()

QString QmitkSliceNavigationWidget::GetLabelUnit ( )

◆ GetMaxValueLabel()

QString QmitkSliceNavigationWidget::GetMaxValueLabel ( )

◆ GetMinValueLabel()

QString QmitkSliceNavigationWidget::GetMinValueLabel ( )

◆ GetPos()

int QmitkSliceNavigationWidget::GetPos ( )

◆ Refetch

void QmitkSliceNavigationWidget::Refetch ( )
slot

Update the slider with the recent changes applied to the navigation widget.

Intended to be called via event mechanism, e.g. if the connected mitk::Stepper is modified.

◆ SetInverseDirection

void QmitkSliceNavigationWidget::SetInverseDirection ( bool  inverseDirection)
slot

◆ SetInvertedControls

void QmitkSliceNavigationWidget::SetInvertedControls ( bool  invertedControls)
slot

◆ SetLabels

void QmitkSliceNavigationWidget::SetLabels ( )
protectedslot

Configure slider with labels according to range and unit settings.

◆ SetLabelUnit

void QmitkSliceNavigationWidget::SetLabelUnit ( const char *  unit)
protectedslot

Set the range unit (e.g. mm or ms).

Displayed below the range labels, if enabled.

◆ SetLabelValues

void QmitkSliceNavigationWidget::SetLabelValues ( float  min,
float  max 
)
protectedslot

Set label values for the range minimum and maximum.

Displayed as labels to the left and the right of the slider, if enabled.

◆ SetLabelValuesValid

void QmitkSliceNavigationWidget::SetLabelValuesValid ( bool  minValid,
bool  maxValid 
)
protectedslot

Enable / disable labels for the range minimum or maximum.

Displayed as labels to the left and the right of the slider, if enabled.

◆ SetPos

void QmitkSliceNavigationWidget::SetPos ( int  val)
slot

◆ SetStepper

void QmitkSliceNavigationWidget::SetStepper ( mitk::Stepper stepper)
slot

Set the stepper that should be represented and modified.

◆ ShowLabels

void QmitkSliceNavigationWidget::ShowLabels ( bool  show)
slot

Enable / disable displaying of the minimum and maximum labels.

◆ ShowLabelUnit

void QmitkSliceNavigationWidget::ShowLabelUnit ( bool  show)
slot

Enable / disable displaying of the unit label (range will be displayed without unit if enabled).

◆ SliderChanged

void QmitkSliceNavigationWidget::SliderChanged ( double  )
protectedslot

React on changes of the slider.

The position of the stepper (class member) is set according to the current slider value. This will also update the value labels.

◆ SpinBoxChanged

void QmitkSliceNavigationWidget::SpinBoxChanged ( double  )
protectedslot

React on changes of the spinbox.

The position of the stepper (class member) is set according to the current spinbox value. This will also update the value labels.

Member Data Documentation

◆ m_HasLabels

bool QmitkSliceNavigationWidget::m_HasLabels
protected

Definition at line 142 of file QmitkSliceNavigationWidget.h.

◆ m_HasLabelUnit

bool QmitkSliceNavigationWidget::m_HasLabelUnit
protected

Definition at line 138 of file QmitkSliceNavigationWidget.h.

◆ m_InRefetch

bool QmitkSliceNavigationWidget::m_InRefetch
protected

Definition at line 134 of file QmitkSliceNavigationWidget.h.

◆ m_InverseDirection

bool QmitkSliceNavigationWidget::m_InverseDirection
protected

Definition at line 146 of file QmitkSliceNavigationWidget.h.

◆ m_InvertedControls

bool QmitkSliceNavigationWidget::m_InvertedControls
protected

Definition at line 147 of file QmitkSliceNavigationWidget.h.

◆ m_LabelUnit

QString QmitkSliceNavigationWidget::m_LabelUnit
protected

Definition at line 136 of file QmitkSliceNavigationWidget.h.

◆ m_MaxValue

float QmitkSliceNavigationWidget::m_MaxValue
protected

Definition at line 144 of file QmitkSliceNavigationWidget.h.

◆ m_MaxValueValid

bool QmitkSliceNavigationWidget::m_MaxValueValid
protected

Definition at line 139 of file QmitkSliceNavigationWidget.h.

◆ m_MinValue

float QmitkSliceNavigationWidget::m_MinValue
protected

Definition at line 143 of file QmitkSliceNavigationWidget.h.

◆ m_MinValueValid

bool QmitkSliceNavigationWidget::m_MinValueValid
protected

Definition at line 140 of file QmitkSliceNavigationWidget.h.

◆ m_Stepper

mitk::Stepper::Pointer QmitkSliceNavigationWidget::m_Stepper
protected

Definition at line 133 of file QmitkSliceNavigationWidget.h.


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