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()
QString qstring_cast(const T &val)
virtual int getValueDecimals() const
number of relevant decimals in value
Utility class for describing a bounded numeric range.
virtual bool setValue(const Vector3D &value)
set the data value.
Helper class for storing one string value in an xml document.
virtual Vector3D getValue() const
get the data value.
static Vector3DPropertyPtr initialize(const QString &uid, QString name, QString help, Vector3D value, DoubleRange range, int decimals, QDomNode root=QDomNode())
virtual QString getDisplayName() const
name of data entity. Used for display to user.
virtual DoubleRange getValueRange() const
void changed()
emit when the underlying data value is changed: The user interface will be updated.
void writeValue(const QString &val)
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
boost::shared_ptr< class Vector3DProperty > Vector3DPropertyPtr
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
void setInternal2Display(double factor)
bool similar(const CameraInfo &lhs, const CameraInfo &rhs, double tol)
virtual QString getUid() const
Represents one option of the double type.
virtual void setValueRange(DoubleRange range)
range of value. Use if data is constrained to a set.
Namespace for all CustusX production code.