Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmlMitkSliderNavigatorItem.h>
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 |
Definition at line 25 of file QmlMitkSliderNavigatorItem.h.
QmlMitkSliderNavigatorItem::QmlMitkSliderNavigatorItem | ( | QQuickItem * | parent = nullptr | ) |
Definition at line 19 of file QmlMitkSliderNavigatorItem.cpp.
References m_HasLabels, m_HasLabelUnit, m_InRefetch, and m_InverseDirection.
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().
|
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 | ( | ) |
Definition at line 164 of file QmlMitkSliderNavigatorItem.cpp.
References ClippedValueToString(), m_MaxValue, and m_MaxValueValid.
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.
|
signal |
|
signal |
|
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().
|
slot |
Definition at line 189 of file QmlMitkSliderNavigatorItem.cpp.
References m_InverseDirection.
|
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.
|
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.
|
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.
|
slot |
Definition at line 181 of file QmlMitkSliderNavigatorItem.cpp.
References m_InRefetch, and m_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.
|
slot |
Definition at line 104 of file QmlMitkSliderNavigatorItem.cpp.
References m_HasLabels.
|
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.
|
signal |
Referenced by Refetch().
|
signal |
|
protected |
Definition at line 107 of file QmlMitkSliderNavigatorItem.h.
Referenced by QmlMitkSliderNavigatorItem(), and ShowLabels().
|
protected |
Definition at line 101 of file QmlMitkSliderNavigatorItem.h.
Referenced by QmlMitkSliderNavigatorItem(), and ShowLabelUnit().
|
protected |
Definition at line 106 of file QmlMitkSliderNavigatorItem.h.
Referenced by QmlMitkSliderNavigatorItem(), Refetch(), SetPos(), SetStepper(), and setValue().
|
protected |
Definition at line 110 of file QmlMitkSliderNavigatorItem.h.
Referenced by QmlMitkSliderNavigatorItem(), Refetch(), SetInverseDirection(), and setValue().
|
protected |
Definition at line 104 of file QmlMitkSliderNavigatorItem.h.
Referenced by GetLabelUnit(), and SetLabelUnit().
|
protected |
Definition at line 109 of file QmlMitkSliderNavigatorItem.h.
Referenced by GetMaxValueLabel(), and SetLabelValues().
|
protected |
Definition at line 102 of file QmlMitkSliderNavigatorItem.h.
Referenced by GetMaxValueLabel(), and SetLabelValuesValid().
|
protected |
Definition at line 108 of file QmlMitkSliderNavigatorItem.h.
Referenced by GetMinValueLabel(), and SetLabelValues().
|
protected |
Definition at line 103 of file QmlMitkSliderNavigatorItem.h.
Referenced by GetMinValueLabel(), and SetLabelValuesValid().
|
protected |
Definition at line 105 of file QmlMitkSliderNavigatorItem.h.
Referenced by GetPos(), Refetch(), SetPos(), SetStepper(), and setValue().
|
readwrite |
Definition at line 28 of file QmlMitkSliderNavigatorItem.h.
Referenced by SetLabelValues(), and setMax().
|
readwrite |
Definition at line 28 of file QmlMitkSliderNavigatorItem.h.
Referenced by SetLabelValues(), and setMin().
|
readwrite |
Definition at line 29 of file QmlMitkSliderNavigatorItem.h.
Referenced by setValue().