|
NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
Go to the documentation of this file.
15 #include <QDomElement>
16 #include <QStringList>
30 retval->mName = name.isEmpty() ? uid : name;
32 retval->mRange = range;
34 retval->mValue = Vector3D::fromString(retval->mStore.readValue(
qstring_cast(
Vector3D(0, 0, 0))));
35 retval->mDecimals = decimals;
39 Vector3DProperty::Vector3DProperty()
void setInternal2Display(double factor)
QString qstring_cast(const T &val)
virtual Vector3D getValue() const
get the data value.
virtual QString getDisplayName() const
name of data entity. Used for display to user.
Namespace for all CustusX production code.
virtual void setValueRange(DoubleRange range)
range of value. Use if data is constrained to a set.
void changed()
emit when the underlying data value is changed: The user interface will be updated.
virtual DoubleRange getValueRange() const
virtual bool setValue(const Vector3D &value)
set the data value.
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
boost::shared_ptr< class Vector3DProperty > Vector3DPropertyPtr
virtual QString getUid() const
Helper class for storing one string value in an xml document.
virtual int getValueDecimals() const
number of relevant decimals in value
Represents one option of the double type.
void writeValue(const QString &val)
Utility class for describing a bounded numeric range.
bool similar(const CameraInfo &lhs, const CameraInfo &rhs, double tol)
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
static Vector3DPropertyPtr initialize(const QString &uid, QString name, QString help, Vector3D value, DoubleRange range, int decimals, QDomNode root=QDomNode())