Medical Imaging Interaction Toolkit  2024.06.00
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)
 
 ~QmitkNumberPropertyEditor () override
 
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 *)
 
 ~PropertyEditor () override
 
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 ()
 
QString textFromValue (int) const override
 
int valueFromText (const QString &) const override
 
void PropertyChanged () override
 
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 21 of file QmitkNumberPropertyEditor.h.

Constructor & Destructor Documentation

◆ QmitkNumberPropertyEditor() [1/3]

QmitkNumberPropertyEditor::QmitkNumberPropertyEditor ( mitk::IntProperty ,
QWidget *  parent 
)

◆ QmitkNumberPropertyEditor() [2/3]

QmitkNumberPropertyEditor::QmitkNumberPropertyEditor ( mitk::FloatProperty ,
QWidget *  parent 
)

◆ QmitkNumberPropertyEditor() [3/3]

QmitkNumberPropertyEditor::QmitkNumberPropertyEditor ( mitk::DoubleProperty ,
QWidget *  parent 
)

◆ ~QmitkNumberPropertyEditor()

QmitkNumberPropertyEditor::~QmitkNumberPropertyEditor ( )
override

Member Function Documentation

◆ DisplayNumber()

void QmitkNumberPropertyEditor::DisplayNumber ( )
protected

◆ doubleValue()

double QmitkNumberPropertyEditor::doubleValue ( ) const

◆ getDecimalPlaces()

short QmitkNumberPropertyEditor::getDecimalPlaces ( ) const

◆ getShowPercent()

bool QmitkNumberPropertyEditor::getShowPercent ( ) const

◆ initialize()

void QmitkNumberPropertyEditor::initialize ( )
protected

◆ maxValue()

int QmitkNumberPropertyEditor::maxValue ( ) const

◆ minValue()

int QmitkNumberPropertyEditor::minValue ( ) const

◆ onValueChanged

void QmitkNumberPropertyEditor::onValueChanged ( int  )
protectedslot

◆ PropertyChanged()

void QmitkNumberPropertyEditor::PropertyChanged ( )
overrideprotectedvirtual

◆ PropertyRemoved()

void QmitkNumberPropertyEditor::PropertyRemoved ( )
overrideprotectedvirtual

◆ setDecimalPlaces()

void QmitkNumberPropertyEditor::setDecimalPlaces ( short  )

◆ setDoubleValue()

void QmitkNumberPropertyEditor::setDoubleValue ( double  )

◆ setMaxValue()

void QmitkNumberPropertyEditor::setMaxValue ( int  )

◆ setMinValue()

void QmitkNumberPropertyEditor::setMinValue ( int  )

◆ setShowPercent()

void QmitkNumberPropertyEditor::setShowPercent ( bool  )

◆ textFromValue()

QString QmitkNumberPropertyEditor::textFromValue ( int  ) const
overrideprotected

◆ valueFromText()

int QmitkNumberPropertyEditor::valueFromText ( const QString &  ) const
overrideprotected

Member Data Documentation

◆ @12

union { ... }

◆ m_DataType

const int QmitkNumberPropertyEditor::m_DataType
protected

Definition at line 66 of file QmitkNumberPropertyEditor.h.

◆ m_DecimalPlaces

short QmitkNumberPropertyEditor::m_DecimalPlaces
protected

Definition at line 68 of file QmitkNumberPropertyEditor.h.

◆ m_DoubleProperty

mitk::GenericProperty<double>* QmitkNumberPropertyEditor::m_DoubleProperty

Definition at line 63 of file QmitkNumberPropertyEditor.h.

◆ m_FactorPropertyToSpinbox

double QmitkNumberPropertyEditor::m_FactorPropertyToSpinbox
protected

Definition at line 69 of file QmitkNumberPropertyEditor.h.

◆ m_FactorSpinboxToDisplay

double QmitkNumberPropertyEditor::m_FactorSpinboxToDisplay
protected

Definition at line 70 of file QmitkNumberPropertyEditor.h.

◆ m_FloatProperty

mitk::GenericProperty<float>* QmitkNumberPropertyEditor::m_FloatProperty

Definition at line 62 of file QmitkNumberPropertyEditor.h.

◆ m_IntProperty

mitk::GenericProperty<int>* QmitkNumberPropertyEditor::m_IntProperty

Definition at line 61 of file QmitkNumberPropertyEditor.h.

◆ m_ShowPercents

bool QmitkNumberPropertyEditor::m_ShowPercents
protected

Definition at line 71 of file QmitkNumberPropertyEditor.h.

Property Documentation

◆ maxValue

int QmitkNumberPropertyEditor::maxValue
readwrite

Definition at line 27 of file QmitkNumberPropertyEditor.h.

◆ minValue

int QmitkNumberPropertyEditor::minValue
readwrite

Definition at line 26 of file QmitkNumberPropertyEditor.h.

◆ READ

short decimalPlaces QmitkNumberPropertyEditor::READ
write

Definition at line 24 of file QmitkNumberPropertyEditor.h.

◆ showPercent

bool QmitkNumberPropertyEditor::showPercent
readwrite

Definition at line 25 of file QmitkNumberPropertyEditor.h.


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