|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
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;
107 virtual QString getHelp()
const
115 virtual double convertInternal2Display(
double internal)
119 virtual double convertDisplay2Internal(
double display)
123 virtual int getValueDecimals()
const
virtual QString getUid() const
virtual DoubleRange getValueRange() const
virtual void setValueFromVariant(QVariant val)
virtual QString getDisplayName() const
name of data entity. Used for display to user.
Namespace for all CustusX production code.
virtual void setGuiRepresentation(GuiRepresentation type)
virtual ~DoublePropertyNull()
virtual ~DoublePropertyBase()
virtual double getValue() const
get the data value.
virtual void connectValueSignals(bool on)
GuiRepresentation mGuiRepresentation
virtual bool setValue(double value)
set the data value.
boost::shared_ptr< class DoublePropertyBase > DoublePropertyBasePtr
Superclass for all data adapters.
virtual QVariant getValueAsVariant() const
Utility class for describing a bounded numeric range.
virtual GuiRepresentation getGuiRepresentation()