36 #ifndef DISP3DLIB_RENDERABLE3DENTITY_H
37 #define DISP3DLIB_RENDERABLE3DENTITY_H
43 #include "../../../disp3D_global.h"
49 #include <Qt3DCore/QEntity>
91 Q_PROPERTY(
float scale READ scaleValue WRITE applyScale NOTIFY scaleChanged)
92 Q_PROPERTY(
float rotX READ rotX WRITE setRotX NOTIFY rotXChanged)
93 Q_PROPERTY(
float rotY READ rotY WRITE setRotY NOTIFY rotYChanged)
94 Q_PROPERTY(
float rotZ READ rotZ WRITE setRotZ NOTIFY rotZChanged)
95 Q_PROPERTY(QVector3D position READ position WRITE applyPosition NOTIFY positionChanged)
98 typedef QSharedPointer<Renderable3DEntity>
SPtr;
99 typedef QSharedPointer<const Renderable3DEntity>
ConstSPtr;
127 virtual void setTransform(
const Qt3DCore::QTransform &transform);
137 bool bApplyInverse =
false);
145 virtual void applyTransform(
const Qt3DCore::QTransform& transform);
155 bool bApplyInverse =
false);
163 virtual float scaleValue()
const;
171 virtual float rotX()
const;
179 virtual float rotY()
const;
187 virtual float rotZ()
const;
195 virtual QVector3D position()
const;
203 virtual void applyRotX(
float rotX);
211 virtual void setRotX(
float rotX);
219 virtual void applyRotY(
float rotY);
227 virtual void setRotY(
float rotY);
235 virtual void applyRotZ(
float rotZ);
243 virtual void setRotZ(
float rotZ);
251 virtual void applyPosition(
const QVector3D& position);
259 virtual void setPosition(
const QVector3D& position);
267 virtual void applyScale(
float scale);
275 virtual void setScale(
float scale);
283 virtual void setVisible(
bool state);
292 virtual void setMaterialParameter(
const QVariant &data,
293 const QString &sParameterName);
303 virtual QVariant getMaterialParameter(
const QString &sParameterName);
314 virtual void setMaterialParameterRecursive(QObject * pObject,
315 const QVariant &data,
316 const QString &sParameterName);
327 virtual QPair<bool, QVariant> getMaterialParameterRecursive(QObject * pObject,
328 const QString &sParameterName);
345 void scaleChanged(
float scale);
353 void rotXChanged(
float rotX);
361 void rotYChanged(
float rotY);
369 void rotZChanged(
float rotZ);
377 void positionChanged(QVector3D position);
381 #endif // DISP3DLIB_RENDERABLE3DENTITY_H