41 #ifndef CXDOUBLEPROPERTY_H_ 42 #define CXDOUBLEPROPERTY_H_ 44 #include "cxResourceExport.h" 46 #include <QDomElement> 47 #include <QStringList> 77 static DoublePropertyPtr initialize(
const QString& uid, QString name, QString help,
double value,
DoubleRange range,
int decimals, QDomNode root = QDomNode());
78 void setInternal2Display(
double factor);
82 virtual QString getDisplayName()
const;
83 virtual QString getUid()
const;
84 virtual bool setValue(
double value);
85 virtual double getValue()
const;
86 virtual QString getHelp()
const;
89 virtual int getValueDecimals()
const;
92 return mFactor *
internal;
96 return display / mFactor;
Utility class for describing a bounded numeric range.
Helper class for storing one string value in an xml document.
boost::shared_ptr< class DoubleProperty > DoublePropertyPtr
virtual double convertDisplay2Internal(double display)
conversion from internal value to display value
virtual double convertInternal2Display(double internal)
conversion from internal value to display value (for example between 0..1 and percent) ...
Namespace for all CustusX production code.