33 #ifndef CXDOUBLEPAIRPROPERTYBASE_H_ 34 #define CXDOUBLEPAIRPROPERTYBASE_H_ 36 #include "cxResourceExport.h" 63 virtual QString getDisplayName()
const = 0;
65 virtual bool setValue(
const Eigen::Vector2d& value) = 0;
67 virtual Eigen::Vector2d getValue()
const = 0;
79 Eigen::Vector2d val =
fromString(value.toString());
123 virtual bool setValue(
const Eigen::Vector2d& value)
131 return Eigen::Vector2d(0, 0);
139 #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.