16 #ifndef QGSDEMTERRAINTILEGEOMETRY_P_H 17 #define QGSDEMTERRAINTILEGEOMETRY_P_H 30 #include <Qt3DExtras/qt3dextras_global.h> 31 #include <Qt3DRender/qgeometry.h> 44 namespace QgsRayCastingUtils
54 class DemTerrainTileGeometry :
public Qt3DRender::QGeometry
62 explicit DemTerrainTileGeometry(
int resolution,
float side,
float vertScale,
float skirtHeight,
const QByteArray &heightMap, QNode *parent =
nullptr );
64 bool rayIntersection(
const QgsRayCastingUtils::Ray3D &ray,
const QMatrix4x4 &worldTransform, QVector3D &intersectionPoint );
73 QByteArray mHeightMap;
74 Qt3DRender::QAttribute *mPositionAttribute =
nullptr;
75 Qt3DRender::QAttribute *mNormalAttribute =
nullptr;
76 Qt3DRender::QAttribute *mTexCoordAttribute =
nullptr;
77 Qt3DRender::QAttribute *mIndexAttribute =
nullptr;
78 Qt3DRender::QBuffer *mVertexBuffer =
nullptr;
79 Qt3DRender::QBuffer *mIndexBuffer =
nullptr;
84 #endif // QGSDEMTERRAINTILEGEOMETRY_P_H