19 #ifndef CXDOUBLEPROPERTYBASE_H_ 20 #define CXDOUBLEPROPERTYBASE_H_ 22 #include "cxResourceExport.h" 24 #include <boost/shared_ptr.hpp> 86 virtual QString getDisplayName()
const = 0;
90 return QVariant(this->getValue());
94 this->setValue(val.toDouble());
98 virtual QString
getUid()
const {
return this->getDisplayName()+
"_uid"; }
99 virtual bool setValue(
double value) = 0;
100 virtual double getValue()
const = 0;
virtual void connectValueSignals(bool on)
virtual void setGuiRepresentation(GuiRepresentation type)
virtual ~DoublePropertyBase()
virtual void setValueFromVariant(QVariant val)
virtual DoubleRange getValueRange() const
virtual GuiRepresentation getGuiRepresentation()
virtual QVariant getValueAsVariant() const
virtual QString getDisplayName() const
name of data entity. Used for display to user.
Utility class for describing a bounded numeric range.
Superclass for all data adapters.
virtual ~DoublePropertyNull()
virtual double 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 double convertInternal2Display(double internal)
range of value
virtual int getValueDecimals() const
number of relevant decimals in value
boost::shared_ptr< class DoublePropertyBase > DoublePropertyBasePtr
GuiRepresentation mGuiRepresentation
virtual bool setValue(double value)
set the data value.
virtual double convertDisplay2Internal(double display)
conversion from internal value to display value
virtual QString getUid() const
Namespace for all CustusX production code.