Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmitkNumberPropertyEditor.h>
Public Member Functions | |
QmitkNumberPropertyEditor (mitk::IntProperty *, QWidget *parent) | |
QmitkNumberPropertyEditor (mitk::FloatProperty *, QWidget *parent) | |
QmitkNumberPropertyEditor (mitk::DoubleProperty *, QWidget *parent) | |
virtual | ~QmitkNumberPropertyEditor () |
short | getDecimalPlaces () const |
void | setDecimalPlaces (short) |
bool | getShowPercent () const |
void | setShowPercent (bool) |
int | minValue () const |
void | setMinValue (int) |
int | maxValue () const |
void | setMaxValue (int) |
double | doubleValue () const |
void | setDoubleValue (double) |
Public Member Functions inherited from mitk::PropertyEditor | |
PropertyEditor (mitk::BaseProperty *) | |
virtual | ~PropertyEditor () |
void | OnModified (const itk::EventObject &e) |
void | OnDelete (const itk::EventObject &e) |
Public Member Functions inherited from mitk::PropertyObserver | |
PropertyObserver () | |
virtual | ~PropertyObserver () |
Protected Slots | |
void | onValueChanged (int) |
Protected Member Functions | |
void | initialize () |
virtual QString | textFromValue (int) const override |
virtual int | valueFromText (const QString &) const override |
virtual void | PropertyChanged () override |
virtual void | PropertyRemoved () override |
void | DisplayNumber () |
Protected Member Functions inherited from mitk::PropertyObserver | |
void | BeginModifyProperty () |
void | EndModifyProperty () |
Protected Attributes | |
union { | |
mitk::GenericProperty< int > * m_IntProperty | |
mitk::GenericProperty< float > * m_FloatProperty | |
mitk::GenericProperty< double > * m_DoubleProperty | |
}; | |
const int | m_DataType |
short | m_DecimalPlaces |
double | m_FactorPropertyToSpinbox |
double | m_FactorSpinboxToDisplay |
bool | m_ShowPercents |
Protected Attributes inherited from mitk::PropertyEditor | |
mitk::BaseProperty * | m_Property |
Protected Attributes inherited from mitk::PropertyObserver | |
unsigned long | m_ModifiedTag |
unsigned long | m_DeleteTag |
bool | m_SelfCall |
Properties | |
short decimalPlaces | READ |
bool | showPercent |
int | minValue |
int | maxValue |
Definition at line 25 of file QmitkNumberPropertyEditor.h.
QmitkNumberPropertyEditor::QmitkNumberPropertyEditor | ( | mitk::IntProperty * | property, |
QWidget * | parent | ||
) |
Definition at line 28 of file QmitkNumberPropertyEditor.cpp.
References initialize().
QmitkNumberPropertyEditor::QmitkNumberPropertyEditor | ( | mitk::FloatProperty * | property, |
QWidget * | parent | ||
) |
Definition at line 34 of file QmitkNumberPropertyEditor.cpp.
References initialize().
QmitkNumberPropertyEditor::QmitkNumberPropertyEditor | ( | mitk::DoubleProperty * | property, |
QWidget * | parent | ||
) |
Definition at line 40 of file QmitkNumberPropertyEditor.cpp.
References initialize().
|
virtual |
Definition at line 46 of file QmitkNumberPropertyEditor.cpp.
|
protected |
Definition at line 250 of file QmitkNumberPropertyEditor.cpp.
References DT_DOUBLE, DT_FLOAT, DT_INT, mitk::GenericProperty< T >::GetValue(), m_DataType, m_DoubleProperty, m_FloatProperty, m_IntProperty, mitk::PropertyEditor::m_Property, and setDoubleValue().
Referenced by initialize(), PropertyChanged(), setDecimalPlaces(), and setShowPercent().
double QmitkNumberPropertyEditor::doubleValue | ( | ) | const |
Definition at line 164 of file QmitkNumberPropertyEditor.cpp.
References m_FactorPropertyToSpinbox.
short QmitkNumberPropertyEditor::getDecimalPlaces | ( | ) | const |
Definition at line 96 of file QmitkNumberPropertyEditor.cpp.
References m_DecimalPlaces.
bool QmitkNumberPropertyEditor::getShowPercent | ( | ) | const |
Definition at line 117 of file QmitkNumberPropertyEditor.cpp.
References m_ShowPercents.
|
protected |
Definition at line 50 of file QmitkNumberPropertyEditor.cpp.
References DisplayNumber(), m_DecimalPlaces, m_FactorPropertyToSpinbox, m_FactorSpinboxToDisplay, m_ShowPercents, and onValueChanged().
Referenced by QmitkNumberPropertyEditor().
int QmitkNumberPropertyEditor::maxValue | ( | ) | const |
int QmitkNumberPropertyEditor::minValue | ( | ) | const |
|
protectedslot |
Definition at line 199 of file QmitkNumberPropertyEditor.cpp.
References mitk::PropertyObserver::BeginModifyProperty(), DT_DOUBLE, DT_FLOAT, DT_INT, mitk::PropertyObserver::EndModifyProperty(), mitk::RenderingManager::GetInstance(), m_DataType, m_DoubleProperty, m_FactorPropertyToSpinbox, m_FloatProperty, m_IntProperty, mitk::RenderingManager::RequestUpdateAll(), ROUND, and mitk::GenericProperty< T >::SetValue().
Referenced by initialize().
|
overrideprotectedvirtual |
Implements mitk::PropertyObserver.
Definition at line 239 of file QmitkNumberPropertyEditor.cpp.
References DisplayNumber(), mitk::RenderingManager::GetInstance(), and mitk::RenderingManager::RequestUpdateAll().
|
overrideprotectedvirtual |
Implements mitk::PropertyObserver.
Definition at line 245 of file QmitkNumberPropertyEditor.cpp.
References mitk::PropertyEditor::m_Property.
void QmitkNumberPropertyEditor::setDecimalPlaces | ( | short | places | ) |
Definition at line 101 of file QmitkNumberPropertyEditor.cpp.
References DisplayNumber(), DT_DOUBLE, DT_FLOAT, m_DataType, and m_ShowPercents.
void QmitkNumberPropertyEditor::setDoubleValue | ( | double | value | ) |
Definition at line 169 of file QmitkNumberPropertyEditor.cpp.
References m_FactorPropertyToSpinbox, and ROUND.
Referenced by DisplayNumber().
void QmitkNumberPropertyEditor::setMaxValue | ( | int | value | ) |
Definition at line 159 of file QmitkNumberPropertyEditor.cpp.
References m_FactorPropertyToSpinbox, and ROUND.
void QmitkNumberPropertyEditor::setMinValue | ( | int | value | ) |
Definition at line 149 of file QmitkNumberPropertyEditor.cpp.
References m_FactorPropertyToSpinbox, and ROUND.
void QmitkNumberPropertyEditor::setShowPercent | ( | bool | showPercent | ) |
Definition at line 122 of file QmitkNumberPropertyEditor.cpp.
References DisplayNumber(), DT_DOUBLE, DT_FLOAT, m_DataType, m_DecimalPlaces, and m_ShowPercents.
|
overrideprotectedvirtual |
Definition at line 174 of file QmitkNumberPropertyEditor.cpp.
References m_DecimalPlaces, m_FactorSpinboxToDisplay, and ROUND.
|
overrideprotectedvirtual |
Definition at line 194 of file QmitkNumberPropertyEditor.cpp.
References m_FactorSpinboxToDisplay, and ROUND.
union { ... } |
|
protected |
Definition at line 70 of file QmitkNumberPropertyEditor.h.
Referenced by DisplayNumber(), onValueChanged(), setDecimalPlaces(), and setShowPercent().
|
protected |
Definition at line 72 of file QmitkNumberPropertyEditor.h.
Referenced by getDecimalPlaces(), initialize(), setShowPercent(), and textFromValue().
mitk::GenericProperty<double>* QmitkNumberPropertyEditor::m_DoubleProperty |
Definition at line 67 of file QmitkNumberPropertyEditor.h.
Referenced by DisplayNumber(), and onValueChanged().
|
protected |
Definition at line 73 of file QmitkNumberPropertyEditor.h.
Referenced by doubleValue(), initialize(), onValueChanged(), setDoubleValue(), setMaxValue(), and setMinValue().
|
protected |
Definition at line 74 of file QmitkNumberPropertyEditor.h.
Referenced by initialize(), textFromValue(), and valueFromText().
mitk::GenericProperty<float>* QmitkNumberPropertyEditor::m_FloatProperty |
Definition at line 66 of file QmitkNumberPropertyEditor.h.
Referenced by DisplayNumber(), and onValueChanged().
mitk::GenericProperty<int>* QmitkNumberPropertyEditor::m_IntProperty |
Definition at line 65 of file QmitkNumberPropertyEditor.h.
Referenced by DisplayNumber(), and onValueChanged().
|
protected |
Definition at line 75 of file QmitkNumberPropertyEditor.h.
Referenced by getShowPercent(), initialize(), setDecimalPlaces(), and setShowPercent().
|
readwrite |
Definition at line 31 of file QmitkNumberPropertyEditor.h.
|
readwrite |
Definition at line 30 of file QmitkNumberPropertyEditor.h.
|
write |
Definition at line 28 of file QmitkNumberPropertyEditor.h.
|
readwrite |
Definition at line 29 of file QmitkNumberPropertyEditor.h.