12 #ifndef CXDOUBLEPAIRPROPERTYBASE_H_ 13 #define CXDOUBLEPAIRPROPERTYBASE_H_ 15 #include "cxResourceExport.h" 42 virtual QString getDisplayName()
const = 0;
44 virtual bool setValue(
const Eigen::Vector2d& value) = 0;
46 virtual Eigen::Vector2d getValue()
const = 0;
58 Eigen::Vector2d val =
fromString(value.toString());
102 virtual bool setValue(
const Eigen::Vector2d& value)
110 return Eigen::Vector2d(0, 0);
118 #endif // CXDOUBLEPAIRPROPERTYBASE_H_ QString qstring_cast(const T &val)
virtual double convertDisplay2Internal(double display)
conversion from internal value to display value
virtual int getValueDecimals() const
number of relevant decimals in value
virtual double convertInternal2Display(double internal)
range of value
Eigen::Vector2d fromString(const QString &text)
virtual ~DoublePairPropertyBase()
Utility class for describing a bounded numeric range.
virtual QVariant getValueAsVariant() const
Superclass for all data adapters.
virtual ~DoubleSpanSliderAdapterNull()
boost::shared_ptr< DoublePairPropertyBase > DoublePairPropertyBasePtr
virtual void setValueFromVariant(QVariant value)
virtual bool setValue(const Eigen::Vector2d &value)
set the data value.
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
virtual void connectValueSignals(bool on)
virtual DoubleRange getValueRange() const
virtual Eigen::Vector2d getValue() const
get the data value.
Abstract interface for interaction with internal data structure: A pair of doubles.
virtual QString getDisplayName() const
name of data entity. Used for display to user.
Namespace for all CustusX production code.