|
NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
Go to the documentation of this file.
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());
64 virtual QString getHelp()
const
72 virtual double convertInternal2Display(
double internal)
76 virtual double convertDisplay2Internal(
double display)
80 virtual int getValueDecimals()
const
102 virtual bool setValue(
const Eigen::Vector2d& value)
110 return Eigen::Vector2d(0, 0);
118 #endif // CXDOUBLEPAIRPROPERTYBASE_H_
boost::shared_ptr< DoublePairPropertyBase > DoublePairPropertyBasePtr
QString qstring_cast(const T &val)
virtual void setValueFromVariant(QVariant value)
Namespace for all CustusX production code.
virtual QString getDisplayName() const
name of data entity. Used for display to user.
virtual Eigen::Vector2d getValue() const
get the data value.
virtual DoubleRange getValueRange() const
virtual ~DoublePairPropertyBase()
Abstract interface for interaction with internal data structure: A pair of doubles.
virtual bool setValue(const Eigen::Vector2d &value)
set the data value.
virtual QVariant getValueAsVariant() const
Superclass for all data adapters.
virtual ~DoubleSpanSliderAdapterNull()
Utility class for describing a bounded numeric range.
virtual void connectValueSignals(bool on)
Eigen::Vector2d fromString(const QString &text)