Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmlMitkSliderNavigatorItem Class Reference

#include <QmlMitkSliderNavigatorItem.h>

Inheritance diagram for QmlMitkSliderNavigatorItem:
Collaboration diagram for QmlMitkSliderNavigatorItem:

Public Slots

void Refetch ()
 Updates the slider with the recent changes applied to the navigator. More...
 
void SetStepper (mitk::Stepper *stepper)
 
void ShowLabels (bool show)
 
void ShowLabelUnit (bool show)
 En-/disables displaying of the unit label (range will be displayed without unit if enabled). More...
 
void SetPos (int val)
 
void SetInverseDirection (bool inverseDirection)
 

Signals

void minChanged ()
 
void maxChanged ()
 
void valueChanged ()
 
void sync ()
 

Public Member Functions

 QmlMitkSliderNavigatorItem (QQuickItem *parent=nullptr)
 
void setMin (double min)
 
void setMax (double max)
 
void setValue (double value)
 
double getMin ()
 
double getMax ()
 
double getValue ()
 
QString GetLabelUnit ()
 
QString ClippedValueToString (float value)
 Converts the passed value to a QString representation. More...
 
QString GetMinValueLabel ()
 Returns range-minimum (displayed as label left of slider if enabled) More...
 
QString GetMaxValueLabel ()
 
int GetPos ()
 

Static Public Member Functions

static void create ()
 

Protected Slots

void SetLabelValues (float min, float max)
 Set range minimum and maximum (displayed as labels left and right of slider if enabled) More...
 
void SetLabelValuesValid (bool minValid, bool maxValid)
 
void SetLabelUnit (const char *unit)
 Set range unit (e.g. mm or ms) which will be displayed below range labels if enabled. More...
 

Protected Attributes

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

Properties

double min
 
double max
 
double value
 

Detailed Description

Definition at line 25 of file QmlMitkSliderNavigatorItem.h.

Constructor & Destructor Documentation

QmlMitkSliderNavigatorItem::QmlMitkSliderNavigatorItem ( QQuickItem *  parent = nullptr)

Member Function Documentation

QString QmlMitkSliderNavigatorItem::ClippedValueToString ( float  value)

Converts the passed value to a QString representation.

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

Definition at line 136 of file QmlMitkSliderNavigatorItem.cpp.

Referenced by GetMaxValueLabel(), and GetMinValueLabel().

void QmlMitkSliderNavigatorItem::create ( )
static

Definition at line 194 of file QmlMitkSliderNavigatorItem.cpp.

Referenced by QmlMitkImageNavigator::create().

QString QmlMitkSliderNavigatorItem::GetLabelUnit ( )

Definition at line 131 of file QmlMitkSliderNavigatorItem.cpp.

References m_LabelUnit.

double QmlMitkSliderNavigatorItem::getMax ( )

Definition at line 59 of file QmlMitkSliderNavigatorItem.cpp.

QString QmlMitkSliderNavigatorItem::GetMaxValueLabel ( )
double QmlMitkSliderNavigatorItem::getMin ( )

Definition at line 64 of file QmlMitkSliderNavigatorItem.cpp.

QString QmlMitkSliderNavigatorItem::GetMinValueLabel ( )

Returns range-minimum (displayed as label left of slider if enabled)

Definition at line 152 of file QmlMitkSliderNavigatorItem.cpp.

References ClippedValueToString(), m_MinValue, and m_MinValueValid.

int QmlMitkSliderNavigatorItem::GetPos ( )

Definition at line 176 of file QmlMitkSliderNavigatorItem.cpp.

References m_Stepper.

double QmlMitkSliderNavigatorItem::getValue ( )

Definition at line 69 of file QmlMitkSliderNavigatorItem.cpp.

void QmlMitkSliderNavigatorItem::maxChanged ( )
signal
void QmlMitkSliderNavigatorItem::minChanged ( )
signal
void QmlMitkSliderNavigatorItem::Refetch ( )
slot

Updates the slider with the recent changes applied to the navigator.

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

Definition at line 74 of file QmlMitkSliderNavigatorItem.cpp.

References m_InRefetch, m_InverseDirection, m_Stepper, and sync().

Referenced by setValue().

void QmlMitkSliderNavigatorItem::SetInverseDirection ( bool  inverseDirection)
slot

Definition at line 189 of file QmlMitkSliderNavigatorItem.cpp.

References m_InverseDirection.

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

Set range unit (e.g. mm or ms) which will be displayed below range labels if enabled.

Definition at line 126 of file QmlMitkSliderNavigatorItem.cpp.

References m_LabelUnit.

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

Set range minimum and maximum (displayed as labels left and right of slider if enabled)

Definition at line 114 of file QmlMitkSliderNavigatorItem.cpp.

References m_MaxValue, m_MinValue, max, and min.

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

Definition at line 120 of file QmlMitkSliderNavigatorItem.cpp.

References m_MaxValueValid, and m_MinValueValid.

void QmlMitkSliderNavigatorItem::setMax ( double  max)

Definition at line 36 of file QmlMitkSliderNavigatorItem.cpp.

References max.

void QmlMitkSliderNavigatorItem::setMin ( double  min)

Definition at line 31 of file QmlMitkSliderNavigatorItem.cpp.

References min.

void QmlMitkSliderNavigatorItem::SetPos ( int  val)
slot

Definition at line 181 of file QmlMitkSliderNavigatorItem.cpp.

References m_InRefetch, and m_Stepper.

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

Definition at line 95 of file QmlMitkSliderNavigatorItem.cpp.

References m_InRefetch, and m_Stepper.

void QmlMitkSliderNavigatorItem::setValue ( double  value)

Definition at line 41 of file QmlMitkSliderNavigatorItem.cpp.

References m_InRefetch, m_InverseDirection, m_Stepper, Refetch(), and value.

void QmlMitkSliderNavigatorItem::ShowLabels ( bool  show)
slot

Definition at line 104 of file QmlMitkSliderNavigatorItem.cpp.

References m_HasLabels.

void QmlMitkSliderNavigatorItem::ShowLabelUnit ( bool  show)
slot

En-/disables displaying of the unit label (range will be displayed without unit if enabled).

Definition at line 109 of file QmlMitkSliderNavigatorItem.cpp.

References m_HasLabelUnit.

void QmlMitkSliderNavigatorItem::sync ( )
signal

Referenced by Refetch().

void QmlMitkSliderNavigatorItem::valueChanged ( )
signal

Member Data Documentation

bool QmlMitkSliderNavigatorItem::m_HasLabels
protected

Definition at line 107 of file QmlMitkSliderNavigatorItem.h.

Referenced by QmlMitkSliderNavigatorItem(), and ShowLabels().

bool QmlMitkSliderNavigatorItem::m_HasLabelUnit
protected

Definition at line 101 of file QmlMitkSliderNavigatorItem.h.

Referenced by QmlMitkSliderNavigatorItem(), and ShowLabelUnit().

bool QmlMitkSliderNavigatorItem::m_InRefetch
protected
bool QmlMitkSliderNavigatorItem::m_InverseDirection
protected
QString QmlMitkSliderNavigatorItem::m_LabelUnit
protected

Definition at line 104 of file QmlMitkSliderNavigatorItem.h.

Referenced by GetLabelUnit(), and SetLabelUnit().

float QmlMitkSliderNavigatorItem::m_MaxValue
protected

Definition at line 109 of file QmlMitkSliderNavigatorItem.h.

Referenced by GetMaxValueLabel(), and SetLabelValues().

bool QmlMitkSliderNavigatorItem::m_MaxValueValid
protected

Definition at line 102 of file QmlMitkSliderNavigatorItem.h.

Referenced by GetMaxValueLabel(), and SetLabelValuesValid().

float QmlMitkSliderNavigatorItem::m_MinValue
protected

Definition at line 108 of file QmlMitkSliderNavigatorItem.h.

Referenced by GetMinValueLabel(), and SetLabelValues().

bool QmlMitkSliderNavigatorItem::m_MinValueValid
protected

Definition at line 103 of file QmlMitkSliderNavigatorItem.h.

Referenced by GetMinValueLabel(), and SetLabelValuesValid().

mitk::Stepper::Pointer QmlMitkSliderNavigatorItem::m_Stepper
protected

Definition at line 105 of file QmlMitkSliderNavigatorItem.h.

Referenced by GetPos(), Refetch(), SetPos(), SetStepper(), and setValue().

Property Documentation

double QmlMitkSliderNavigatorItem::max
readwrite

Definition at line 28 of file QmlMitkSliderNavigatorItem.h.

Referenced by SetLabelValues(), and setMax().

double QmlMitkSliderNavigatorItem::min
readwrite

Definition at line 28 of file QmlMitkSliderNavigatorItem.h.

Referenced by SetLabelValues(), and setMin().

double QmlMitkSliderNavigatorItem::value
readwrite

Definition at line 29 of file QmlMitkSliderNavigatorItem.h.

Referenced by setValue().


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