34 #ifndef CXVECTOR3DPROPERTYBASE_H_ 35 #define CXVECTOR3DPROPERTYBASE_H_ 37 #include "cxResourceExport.h" 39 #include <boost/shared_ptr.hpp> 65 virtual QString getDisplayName()
const = 0;
66 virtual bool setValue(
const Vector3D& value) = 0;
67 virtual Vector3D getValue()
const = 0;
71 QString val =
prettyFormat(this->getValue(), this->getValueDecimals());
78 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.