16 #ifndef QGSCHUNKBOUNDSENTITY_P_H
17 #define QGSCHUNKBOUNDSENTITY_P_H
30 #include <Qt3DCore/QEntity>
31 #include <Qt3DRender/QAttribute>
32 #include <Qt3DRender/QGeometry>
34 #include <Qt3DRender/QGeometryRenderer>
48 class QgsChunkBoundsEntity :
public Qt3DCore::QEntity
54 QgsChunkBoundsEntity( Qt3DCore::QNode *parent =
nullptr );
57 void setBoxes(
const QList<QgsAABB> &bboxes );
60 AABBMesh *mAabbMesh =
nullptr;
64 class LineMeshGeometry :
public Qt3DRender::QGeometry
69 LineMeshGeometry( Qt3DCore::QNode *parent =
nullptr );
76 void setVertices(
const QList<QVector3D> &vertices );
79 Qt3DRender::QAttribute *mPositionAttribute =
nullptr;
80 Qt3DRender::QBuffer *mVertexBuffer =
nullptr;
87 class AABBMesh :
public Qt3DRender::QGeometryRenderer
92 AABBMesh( Qt3DCore::QNode *parent =
nullptr );
94 void setBoxes(
const QList<QgsAABB> &bboxes );
97 LineMeshGeometry *mLineMeshGeo =
nullptr;
102 #endif // QGSCHUNKBOUNDSENTITY_P_H