|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
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());
63 virtual QString getHelp()
const
71 virtual double convertInternal2Display(
double internal)
75 virtual double convertDisplay2Internal(
double display)
79 virtual int getValueDecimals()
const
virtual ~Vector3DPropertyNull()
Namespace for all CustusX production code.
virtual QString getDisplayName() const
name of data entity. Used for display to user.
Abstract interface for interaction with internal Vector3D-valued data.
virtual Vector3D getValue() const
get the data value.
virtual QVariant getValueAsVariant() const
virtual DoubleRange getValueRange() const
virtual void setValueFromVariant(QVariant value)
boost::shared_ptr< Vector3DPropertyBase > Vector3DPropertyBasePtr
Superclass for all data adapters.
virtual bool setValue(const Vector3D &value)
set the data value.
virtual ~Vector3DPropertyBase()
Utility class for describing a bounded numeric range.
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
virtual void connectValueSignals(bool on)
QString prettyFormat(Vector3D val, int decimals, int fieldWidth)