20 #ifndef CXDOUBLEPROPERTY_H_ 21 #define CXDOUBLEPROPERTY_H_ 23 #include "cxResourceExport.h" 25 #include <QDomElement> 26 #include <QStringList> 56 static DoublePropertyPtr initialize(
const QString& uid, QString name, QString help,
double value,
DoubleRange range,
int decimals, QDomNode root = QDomNode());
57 void setInternal2Display(
double factor);
61 virtual QString getDisplayName()
const;
62 virtual QString getUid()
const;
63 virtual bool setValue(
double value);
64 virtual double getValue()
const;
65 virtual QString getHelp()
const;
68 virtual int getValueDecimals()
const;
71 return mFactor *
internal;
75 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.