1 #ifndef QCEPVECTOR3DPROPERTY_H
2 #define QCEPVECTOR3DPROPERTY_H
35 #define QCEP_VECTOR3D_PROPERTY(propname) \
37 QcepVector3D get_##propname() const \
39 return m_##propname.value(); \
42 void set_##propname(QcepVector3D val) \
44 m_##propname.setValue(val); \
47 QcepVector3D def_##propname() const \
49 return m_##propname.defaultValue(); \
52 void setdef_##propname(QcepVector3D val) \
54 m_##propname.setDefaultValue(val); \
57 void reset_##propname() \
59 m_##propname.resetValue(); \
62 QcepVector3DProperty *prop_##propname() { \
63 return &m_##propname; \
67 QcepVector3DProperty m_##propname;
69 #endif // QCEPVECTOR3DPROPERTY_H
QcepVector3D defaultValue() const
void setValue(QcepVector3D val, int index)
QcepVector3D value() const
void incValue(QcepVector3D step)
static void registerMetaTypes()
QString toString(const QcepVector3D &mat)
QcepVector3DProperty(QcepSettingsSaverWPtr saver, QObject *parent, const char *name, QcepVector3D value, QString toolTip)
QWeakPointer< QcepSettingsSaver > QcepSettingsSaverWPtr
void valueChanged(QcepVector3D val, int index)
void setDefaultValue(QcepVector3D val)