16 #ifndef QGSDEMTERRAINTILEGEOMETRY_P_H
17 #define QGSDEMTERRAINTILEGEOMETRY_P_H
32 #include <Qt3DExtras/qt3dextras_global.h>
33 #include <Qt3DRender/qgeometry.h>
46 namespace QgsRayCastingUtils
56 class DemTerrainTileGeometry :
public Qt3DRender::QGeometry
66 explicit DemTerrainTileGeometry(
int resolution,
float side,
float vertScale,
float skirtHeight,
const QByteArray &heightMap, QNode *parent =
nullptr );
68 bool rayIntersection(
const QgsRayCastingUtils::Ray3D &ray,
const QMatrix4x4 &worldTransform, QVector3D &intersectionPoint );
77 QByteArray mHeightMap;
78 Qt3DRender::QAttribute *mPositionAttribute =
nullptr;
79 Qt3DRender::QAttribute *mNormalAttribute =
nullptr;
80 Qt3DRender::QAttribute *mTexCoordAttribute =
nullptr;
81 Qt3DRender::QAttribute *mIndexAttribute =
nullptr;
82 Qt3DRender::QBuffer *mVertexBuffer =
nullptr;
83 Qt3DRender::QBuffer *mIndexBuffer =
nullptr;
88 #endif // QGSDEMTERRAINTILEGEOMETRY_P_H