Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkNumberPropertyView Class Reference

#include <QmitkNumberPropertyView.h>

Inheritance diagram for QmitkNumberPropertyView:
Collaboration diagram for QmitkNumberPropertyView:

Public Member Functions

 QmitkNumberPropertyView (const mitk::IntProperty *, QWidget *parent)
 
 QmitkNumberPropertyView (const mitk::FloatProperty *, QWidget *parent)
 
 QmitkNumberPropertyView (const mitk::DoubleProperty *, QWidget *parent)
 
 ~QmitkNumberPropertyView () override
 
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 *)
 
 ~PropertyView () override
 
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 ()
 
void PropertyChanged () override
 
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::BasePropertym_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
 

Detailed Description

Definition at line 21 of file QmitkNumberPropertyView.h.

Constructor & Destructor Documentation

◆ QmitkNumberPropertyView() [1/3]

QmitkNumberPropertyView::QmitkNumberPropertyView ( const mitk::IntProperty ,
QWidget *  parent 
)

◆ QmitkNumberPropertyView() [2/3]

QmitkNumberPropertyView::QmitkNumberPropertyView ( const mitk::FloatProperty ,
QWidget *  parent 
)

◆ QmitkNumberPropertyView() [3/3]

QmitkNumberPropertyView::QmitkNumberPropertyView ( const mitk::DoubleProperty ,
QWidget *  parent 
)

◆ ~QmitkNumberPropertyView()

QmitkNumberPropertyView::~QmitkNumberPropertyView ( )
override

Member Function Documentation

◆ decimalPlaces()

short QmitkNumberPropertyView::decimalPlaces ( ) const

◆ DisplayNumber()

void QmitkNumberPropertyView::DisplayNumber ( )
protected

◆ initialize()

void QmitkNumberPropertyView::initialize ( )
protected

◆ PropertyChanged()

void QmitkNumberPropertyView::PropertyChanged ( )
overrideprotectedvirtual

◆ PropertyRemoved()

void QmitkNumberPropertyView::PropertyRemoved ( )
overrideprotectedvirtual

◆ setDecimalPlaces()

void QmitkNumberPropertyView::setDecimalPlaces ( short  )

◆ setShowPercent()

void QmitkNumberPropertyView::setShowPercent ( bool  )

◆ setSuffix()

void QmitkNumberPropertyView::setSuffix ( const QString &  )

◆ showPercent()

bool QmitkNumberPropertyView::showPercent ( ) const

◆ suffix()

QString QmitkNumberPropertyView::suffix ( ) const

Member Data Documentation

◆ @14

union { ... }

◆ m_DataType

const int QmitkNumberPropertyView::m_DataType
protected

Definition at line 58 of file QmitkNumberPropertyView.h.

◆ m_DecimalPlaces

short QmitkNumberPropertyView::m_DecimalPlaces
protected

Definition at line 60 of file QmitkNumberPropertyView.h.

◆ m_DisplayFactor

double QmitkNumberPropertyView::m_DisplayFactor
protected

Definition at line 62 of file QmitkNumberPropertyView.h.

◆ m_DoubleProperty

const mitk::GenericProperty<double>* QmitkNumberPropertyView::m_DoubleProperty

Definition at line 55 of file QmitkNumberPropertyView.h.

◆ m_FloatProperty

const mitk::GenericProperty<float>* QmitkNumberPropertyView::m_FloatProperty

Definition at line 54 of file QmitkNumberPropertyView.h.

◆ m_IntProperty

const mitk::GenericProperty<int>* QmitkNumberPropertyView::m_IntProperty

Definition at line 53 of file QmitkNumberPropertyView.h.

◆ m_Suffix

QString QmitkNumberPropertyView::m_Suffix
protected

-1 indicates "no limit to decimal places"

Definition at line 61 of file QmitkNumberPropertyView.h.

Property Documentation

◆ READ

short decimalPlaces QmitkNumberPropertyView::READ
write

Definition at line 24 of file QmitkNumberPropertyView.h.

◆ showPercent

bool QmitkNumberPropertyView::showPercent
readwrite

Definition at line 26 of file QmitkNumberPropertyView.h.

◆ suffix

QString QmitkNumberPropertyView::suffix
readwrite

Definition at line 25 of file QmitkNumberPropertyView.h.


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