16#ifndef QGSCHUNKBOUNDSENTITY_P_H
17#define QGSCHUNKBOUNDSENTITY_P_H
30#include <Qt3DCore/QEntity>
32#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
33#include <Qt3DRender/QAttribute>
34#include <Qt3DRender/QGeometry>
38#include <Qt3DCore/QAttribute>
39#include <Qt3DCore/QGeometry>
44#include <Qt3DRender/QGeometryRenderer>
58class QgsChunkBoundsEntity :
public Qt3DCore::QEntity
64 QgsChunkBoundsEntity( Qt3DCore::QNode *parent =
nullptr );
67 void setBoxes(
const QList<QgsAABB> &bboxes );
70 AABBMesh *mAabbMesh =
nullptr;
79 LineMeshGeometry( Qt3DCore::QNode *parent =
nullptr );
86 void setVertices(
const QList<QVector3D> &vertices );
90#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
91 Qt3DRender::QBuffer *mVertexBuffer =
nullptr;
93 Qt3DCore::QBuffer *mVertexBuffer =
nullptr;
101class AABBMesh :
public Qt3DRender::QGeometryRenderer
106 AABBMesh( Qt3DCore::QNode *parent =
nullptr );
108 void setBoxes(
const QList<QgsAABB> &bboxes );
111 LineMeshGeometry *mLineMeshGeo =
nullptr;
Qt3DCore::QAttribute Qt3DQAttribute
Qt3DCore::QGeometry Qt3DQGeometry