Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmitkNumberPropertyView.h>
Public Member Functions | |
QmitkNumberPropertyView (const mitk::IntProperty *, QWidget *parent) | |
QmitkNumberPropertyView (const mitk::FloatProperty *, QWidget *parent) | |
QmitkNumberPropertyView (const mitk::DoubleProperty *, QWidget *parent) | |
virtual | ~QmitkNumberPropertyView () |
short | decimalPlaces () const |
void | setDecimalPlaces (short) |
QString | suffix () const |
void | setSuffix (const QString &) |
bool | showPercent () const |
void | setShowPercent (bool) |
Public Member Functions inherited from mitk::PropertyView | |
PropertyView (const mitk::BaseProperty *) | |
virtual | ~PropertyView () |
void | OnModified (const itk::EventObject &e) |
void | OnDelete (const itk::EventObject &e) |
Public Member Functions inherited from mitk::PropertyObserver | |
PropertyObserver () | |
virtual | ~PropertyObserver () |
Protected Member Functions | |
void | initialize () |
virtual void | PropertyChanged () override |
virtual void | PropertyRemoved () override |
void | DisplayNumber () |
Protected Member Functions inherited from mitk::PropertyObserver | |
void | BeginModifyProperty () |
void | EndModifyProperty () |
Protected Attributes | |
union { | |
const mitk::GenericProperty< int > * m_IntProperty | |
const mitk::GenericProperty< float > * m_FloatProperty | |
const mitk::GenericProperty< double > * m_DoubleProperty | |
}; | |
const int | m_DataType |
short | m_DecimalPlaces |
QString | m_Suffix |
-1 indicates "no limit to decimal places" More... | |
double | m_DisplayFactor |
Protected Attributes inherited from mitk::PropertyView | |
const 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 |
QString | suffix |
bool | showPercent |
Definition at line 25 of file QmitkNumberPropertyView.h.
QmitkNumberPropertyView::QmitkNumberPropertyView | ( | const mitk::IntProperty * | property, |
QWidget * | parent | ||
) |
Definition at line 24 of file QmitkNumberPropertyView.cpp.
References initialize().
QmitkNumberPropertyView::QmitkNumberPropertyView | ( | const mitk::FloatProperty * | property, |
QWidget * | parent | ||
) |
Definition at line 30 of file QmitkNumberPropertyView.cpp.
References initialize().
QmitkNumberPropertyView::QmitkNumberPropertyView | ( | const mitk::DoubleProperty * | property, |
QWidget * | parent | ||
) |
Definition at line 36 of file QmitkNumberPropertyView.cpp.
References initialize().
|
virtual |
Definition at line 42 of file QmitkNumberPropertyView.cpp.
short QmitkNumberPropertyView::decimalPlaces | ( | ) | const |
Definition at line 53 of file QmitkNumberPropertyView.cpp.
References m_DecimalPlaces.
|
protected |
Definition at line 110 of file QmitkNumberPropertyView.cpp.
References DT_DOUBLE, DT_FLOAT, DT_INT, mitk::GenericProperty< T >::GetValue(), m_DataType, m_DecimalPlaces, m_DisplayFactor, m_DoubleProperty, m_FloatProperty, and m_IntProperty.
Referenced by PropertyChanged(), setDecimalPlaces(), and setSuffix().
|
protected |
Definition at line 46 of file QmitkNumberPropertyView.cpp.
References m_DisplayFactor, m_Suffix, and setDecimalPlaces().
Referenced by QmitkNumberPropertyView().
|
overrideprotectedvirtual |
Implements mitk::PropertyObserver.
Definition at line 98 of file QmitkNumberPropertyView.cpp.
References DisplayNumber(), and mitk::PropertyView::m_Property.
|
overrideprotectedvirtual |
Implements mitk::PropertyObserver.
Definition at line 104 of file QmitkNumberPropertyView.cpp.
References mitk::PropertyView::m_Property.
void QmitkNumberPropertyView::setDecimalPlaces | ( | short | places | ) |
Definition at line 58 of file QmitkNumberPropertyView.cpp.
References DisplayNumber(), and m_DecimalPlaces.
Referenced by initialize().
void QmitkNumberPropertyView::setShowPercent | ( | bool | show | ) |
Definition at line 84 of file QmitkNumberPropertyView.cpp.
References m_DisplayFactor, and setSuffix().
void QmitkNumberPropertyView::setSuffix | ( | const QString & | suffix | ) |
Definition at line 72 of file QmitkNumberPropertyView.cpp.
References DisplayNumber(), m_Suffix, and suffix().
Referenced by setShowPercent().
bool QmitkNumberPropertyView::showPercent | ( | ) | const |
QString QmitkNumberPropertyView::suffix | ( | ) | const |
Referenced by setSuffix().
union { ... } |
|
protected |
Definition at line 62 of file QmitkNumberPropertyView.h.
Referenced by DisplayNumber().
|
protected |
Definition at line 64 of file QmitkNumberPropertyView.h.
Referenced by decimalPlaces(), DisplayNumber(), and setDecimalPlaces().
|
protected |
Definition at line 66 of file QmitkNumberPropertyView.h.
Referenced by DisplayNumber(), initialize(), and setShowPercent().
const mitk::GenericProperty<double>* QmitkNumberPropertyView::m_DoubleProperty |
Definition at line 59 of file QmitkNumberPropertyView.h.
Referenced by DisplayNumber().
const mitk::GenericProperty<float>* QmitkNumberPropertyView::m_FloatProperty |
Definition at line 58 of file QmitkNumberPropertyView.h.
Referenced by DisplayNumber().
const mitk::GenericProperty<int>* QmitkNumberPropertyView::m_IntProperty |
Definition at line 57 of file QmitkNumberPropertyView.h.
Referenced by DisplayNumber().
|
protected |
-1 indicates "no limit to decimal places"
Definition at line 65 of file QmitkNumberPropertyView.h.
Referenced by initialize(), and setSuffix().
|
write |
Definition at line 28 of file QmitkNumberPropertyView.h.
|
readwrite |
Definition at line 30 of file QmitkNumberPropertyView.h.
|
readwrite |
Definition at line 29 of file QmitkNumberPropertyView.h.