12 #ifndef CXDOUBLEPAIRPROPERTY_H_ 13 #define CXDOUBLEPAIRPROPERTY_H_ 15 #include "cxResourceExport.h" 47 static DoublePairPropertyPtr initialize(
const QString& uid, QString name, QString help,
48 DoubleRange range,
int decimals, QDomNode root = QDomNode());
49 void setInternal2Display(
double factor);
53 virtual QString getDisplayName()
const;
54 virtual QString getUid()
const;
55 virtual bool setValue(
const Eigen::Vector2d& value);
56 virtual Eigen::Vector2d getValue()
const;
57 virtual QString getHelp()
const;
60 virtual int getValueDecimals()
const;
63 return mFactor *
internal;
67 return display / mFactor;
79 Eigen::Vector2d mValue;
87 #endif // CXDOUBLEPAIRPROPERTY_H_ Utility class for describing a bounded numeric range.
virtual double convertDisplay2Internal(double display)
conversion from internal value to display value
Helper class for storing one string value in an xml document.
Implementation of DoublePairPropertyBase.
boost::shared_ptr< class DoublePairProperty > DoublePairPropertyPtr
Abstract interface for interaction with internal data structure: A pair of doubles.
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.