Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkNumberPropertyEditor Class Reference

#include <QmitkNumberPropertyEditor.h>

Inheritance diagram for QmitkNumberPropertyEditor:
Collaboration diagram for QmitkNumberPropertyEditor:

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::BasePropertym_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
 

Detailed Description

Definition at line 25 of file QmitkNumberPropertyEditor.h.

Constructor & Destructor Documentation

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().

QmitkNumberPropertyEditor::~QmitkNumberPropertyEditor ( )
virtual

Definition at line 46 of file QmitkNumberPropertyEditor.cpp.

Member Function Documentation

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.

void QmitkNumberPropertyEditor::initialize ( )
protected
int QmitkNumberPropertyEditor::maxValue ( ) const
int QmitkNumberPropertyEditor::minValue ( ) const
void QmitkNumberPropertyEditor::PropertyChanged ( )
overrideprotectedvirtual
void QmitkNumberPropertyEditor::PropertyRemoved ( )
overrideprotectedvirtual
void QmitkNumberPropertyEditor::setDecimalPlaces ( short  places)
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)
QString QmitkNumberPropertyEditor::textFromValue ( int  value) const
overrideprotectedvirtual

Definition at line 174 of file QmitkNumberPropertyEditor.cpp.

References m_DecimalPlaces, m_FactorSpinboxToDisplay, and ROUND.

int QmitkNumberPropertyEditor::valueFromText ( const QString &  text) const
overrideprotectedvirtual

Definition at line 194 of file QmitkNumberPropertyEditor.cpp.

References m_FactorSpinboxToDisplay, and ROUND.

Member Data Documentation

union { ... }
const int QmitkNumberPropertyEditor::m_DataType
protected
short QmitkNumberPropertyEditor::m_DecimalPlaces
protected
mitk::GenericProperty<double>* QmitkNumberPropertyEditor::m_DoubleProperty

Definition at line 67 of file QmitkNumberPropertyEditor.h.

Referenced by DisplayNumber(), and onValueChanged().

double QmitkNumberPropertyEditor::m_FactorPropertyToSpinbox
protected
double QmitkNumberPropertyEditor::m_FactorSpinboxToDisplay
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().

bool QmitkNumberPropertyEditor::m_ShowPercents
protected

Property Documentation

int QmitkNumberPropertyEditor::maxValue
readwrite

Definition at line 31 of file QmitkNumberPropertyEditor.h.

int QmitkNumberPropertyEditor::minValue
readwrite

Definition at line 30 of file QmitkNumberPropertyEditor.h.

short decimalPlaces QmitkNumberPropertyEditor::READ
write

Definition at line 28 of file QmitkNumberPropertyEditor.h.

bool QmitkNumberPropertyEditor::showPercent
readwrite

Definition at line 29 of file QmitkNumberPropertyEditor.h.


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