21 #ifndef VVECTOR3DPROPERTY_H
22 #define VVECTOR3DPROPERTY_H
24 #include <qcompilerdetection.h>
26 #include <QMetaObject>
33 #include "../../vproperty.h"
46 :
X(other.
X),
Y(other.
Y),
Z(other.
Z)
81 virtual QVariant
data (
int column =
DPC_Name,
int role = Qt::DisplayRole)
const Q_DECL_OVERRIDE;
84 virtual Qt::ItemFlags
flags(
int column =
DPC_Name)
const Q_DECL_OVERRIDE;
93 virtual void setVector(
double x,
double y,
double z);
96 virtual QString
type() const Q_DECL_OVERRIDE;
106 virtual
void setValue(const QVariant& value) Q_DECL_OVERRIDE;
109 virtual QVariant
getValue() const Q_DECL_OVERRIDE;
virtual Vector3D getVector() const
Returns the Vector3d.
virtual ~QVector3DProperty() Q_DECL_OVERRIDE
virtual Qt::ItemFlags flags(int column=DPC_Name) const Q_DECL_OVERRIDE
Returns item flags.
virtual void setValue(const QVariant &value) Q_DECL_OVERRIDE
Sets the value of the property.
virtual QVariant getValue() const Q_DECL_OVERRIDE
Returns the value of the property as a QVariant.
virtual void setVector(const Vector3D &vect)
Sets the Vector3d.
QVector3DProperty(const QString &name)
virtual VProperty * clone(bool include_children=true, VProperty *container=NULL) const Q_DECL_OVERRIDE
Clones this property.
virtual QString type() const Q_DECL_OVERRIDE
Returns a string containing the type of the property.
virtual QVariant data(int column=DPC_Name, int role=Qt::DisplayRole) const Q_DECL_OVERRIDE
Get the data how it should be displayed.
Vector3D(const Vector3D &other)
Vector3D & operator=(const Vector3D &other)