36 #ifndef DISP3DLIB_GEOMETRYMULTIPLIER_H
37 #define DISP3DLIB_GEOMETRYMULTIPLIER_H
43 #include "../../../disp3D_global.h"
49 #include <QSharedPointer>
51 #include <Qt3DRender/QGeometryRenderer>
61 namespace Qt3DRender {
99 typedef QSharedPointer<GeometryMultiplier>
SPtr;
100 typedef QSharedPointer<const GeometryMultiplier>
ConstSPtr;
107 Qt3DCore::QNode *tParent =
nullptr);
134 void setTransforms(
const QVector<QMatrix4x4> &tInstanceTansform);
142 void setColors(
const QVector<QColor> &tInstanceColors);
158 QByteArray buildTransformBuffer(
const QVector<QMatrix4x4> &tInstanceTransform);
167 QByteArray buildColorBuffer(
const QVector<QColor> &tInstanceColor);
169 QSharedPointer<Qt3DRender::QGeometry> m_pGeometry;
171 QPointer<Qt3DRender::QBuffer> m_pTransformBuffer;
173 QPointer<Qt3DRender::QBuffer> m_pColorBuffer;
175 QPointer<Qt3DRender::QAttribute> m_pTransformAttribute;
177 QPointer<Qt3DRender::QAttribute> m_pColorAttribute;
185 #endif // DISP3DLIB_GEOMETRYMULTIPLIER_H