13 #ifndef CXVECTOR3DPROPERTYBASE_H_ 14 #define CXVECTOR3DPROPERTYBASE_H_ 16 #include "cxResourceExport.h" 18 #include <boost/shared_ptr.hpp> 44 virtual QString getDisplayName()
const = 0;
45 virtual bool setValue(
const Vector3D& value) = 0;
46 virtual Vector3D getValue()
const = 0;
50 QString val =
prettyFormat(this->getValue(), this->getValueDecimals());
57 Vector3D val = Vector3D::fromString(value.toString());
virtual int getValueDecimals() const
number of relevant decimals in value
virtual ~Vector3DPropertyNull()
virtual double convertDisplay2Internal(double display)
conversion from internal value to display value
virtual DoubleRange getValueRange() const
Utility class for describing a bounded numeric range.
Superclass for all data adapters.
QString prettyFormat(Vector3D val, int decimals, int fieldWidth)
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
virtual Vector3D getValue() const
get the data value.
virtual QString getDisplayName() const
name of data entity. Used for display to user.
boost::shared_ptr< Vector3DPropertyBase > Vector3DPropertyBasePtr
Abstract interface for interaction with internal Vector3D-valued data.
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
virtual double convertInternal2Display(double internal)
range of value
virtual ~Vector3DPropertyBase()
virtual void connectValueSignals(bool on)
virtual bool setValue(const Vector3D &value)
set the data value.
virtual void setValueFromVariant(QVariant value)
virtual QVariant getValueAsVariant() const
Namespace for all CustusX production code.