|
NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
Go to the documentation of this file.
16 #include <QDomElement>
17 #include <QStringList>
22 DoubleProperty::DoubleProperty()
35 retval->mName = name.isEmpty() ? uid : name;
37 retval->mRange = range;
39 retval->mValue = retval->mStore.readValue(QString::number(value)).toDouble();
40 retval->mDecimals = decimals;
Namespace for all CustusX production code.
virtual DoubleRange getValueRange() const
void changed()
emit when the underlying data value is changed: The user interface will be updated.
virtual void setValueRange(DoubleRange range)
range of value. Use if data is constrained to a set.
virtual double getValue() const
get the data value.
virtual int getValueDecimals() const
number of relevant decimals in value
virtual bool setValue(double value)
set the data value.
void setInternal2Display(double factor)
static DoublePropertyPtr initialize(const QString &uid, QString name, QString help, double value, DoubleRange range, int decimals, QDomNode root=QDomNode())
boost::shared_ptr< class DoubleProperty > DoublePropertyPtr
Helper class for storing one string value in an xml document.
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
void writeValue(const QString &val)
Utility class for describing a bounded numeric range.
virtual QString getDisplayName() const
name of data entity. Used for display to user.
virtual QString getUid() const