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> 45 class QgsChunkBoundsEntity :
public Qt3DCore::QEntity
51 QgsChunkBoundsEntity( Qt3DCore::QNode *parent =
nullptr );
54 void setBoxes(
const QList<QgsAABB> &bboxes );
57 AABBMesh *mAabbMesh =
nullptr;
61 class LineMeshGeometry :
public Qt3DRender::QGeometry
66 LineMeshGeometry( Qt3DCore::QNode *parent =
nullptr );
73 void setVertices(
const QList<QVector3D> &vertices );
76 Qt3DRender::QAttribute *mPositionAttribute =
nullptr;
77 Qt3DRender::QBuffer *mVertexBuffer =
nullptr;
84 class AABBMesh :
public Qt3DRender::QGeometryRenderer
89 AABBMesh( Qt3DCore::QNode *parent =
nullptr );
91 void setBoxes(
const QList<QgsAABB> &bboxes );
94 LineMeshGeometry *mLineMeshGeo =
nullptr;
99 #endif // QGSCHUNKBOUNDSENTITY_P_H 3 Axis-aligned bounding box - in world coords.