Medical Imaging Interaction Toolkit  2016.11.0
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)
 
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::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 25 of file QmitkNumberPropertyView.h.

Constructor & Destructor Documentation

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

QmitkNumberPropertyView::~QmitkNumberPropertyView ( )
virtual

Definition at line 42 of file QmitkNumberPropertyView.cpp.

Member Function Documentation

short QmitkNumberPropertyView::decimalPlaces ( ) const

Definition at line 53 of file QmitkNumberPropertyView.cpp.

References m_DecimalPlaces.

void QmitkNumberPropertyView::DisplayNumber ( )
protected
void QmitkNumberPropertyView::initialize ( )
protected

Definition at line 46 of file QmitkNumberPropertyView.cpp.

References m_DisplayFactor, m_Suffix, and setDecimalPlaces().

Referenced by QmitkNumberPropertyView().

void QmitkNumberPropertyView::PropertyChanged ( )
overrideprotectedvirtual
void QmitkNumberPropertyView::PropertyRemoved ( )
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().

Member Data Documentation

union { ... }
const int QmitkNumberPropertyView::m_DataType
protected

Definition at line 62 of file QmitkNumberPropertyView.h.

Referenced by DisplayNumber().

short QmitkNumberPropertyView::m_DecimalPlaces
protected

Definition at line 64 of file QmitkNumberPropertyView.h.

Referenced by decimalPlaces(), DisplayNumber(), and setDecimalPlaces().

double QmitkNumberPropertyView::m_DisplayFactor
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().

QString QmitkNumberPropertyView::m_Suffix
protected

-1 indicates "no limit to decimal places"

Definition at line 65 of file QmitkNumberPropertyView.h.

Referenced by initialize(), and setSuffix().

Property Documentation

short decimalPlaces QmitkNumberPropertyView::READ
write

Definition at line 28 of file QmitkNumberPropertyView.h.

bool QmitkNumberPropertyView::showPercent
readwrite

Definition at line 30 of file QmitkNumberPropertyView.h.

QString QmitkNumberPropertyView::suffix
readwrite

Definition at line 29 of file QmitkNumberPropertyView.h.


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