27 retval->mName = name.isEmpty() ? uid : name;
29 retval->mRange = range;
32 retval->mDecimals = decimals;
36 DoublePairProperty::DoublePairProperty()
QString qstring_cast(const T &val)
void setInternal2Display(double factor)
virtual QString getDisplayName() const
name of data entity. Used for display to user.
virtual DoubleRange getValueRange() const
Eigen::Vector2d fromString(const QString &text)
Utility class for describing a bounded numeric range.
virtual Eigen::Vector2d getValue() const
get the data value.
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
virtual void setValueRange(DoubleRange range)
range of value. Use if data is constrained to a set.
Helper class for storing one string value in an xml document.
virtual int getValueDecimals() const
number of relevant decimals in value
Implementation of DoublePairPropertyBase.
virtual bool setValue(const Eigen::Vector2d &value)
set the data value.
virtual QString getUid() const
void changed()
emit when the underlying data value is changed: The user interface will be updated.
void writeValue(const QString &val)
boost::shared_ptr< class DoublePairProperty > DoublePairPropertyPtr
static DoublePairPropertyPtr initialize(const QString &uid, QString name, QString help, DoubleRange range, int decimals, QDomNode root=QDomNode())
Namespace for all CustusX production code.