42 #include <Qt3DRender/QCamera>
96 const QString &outputDirectory,
97 const QString &fileNameTemplate,
98 const QSize &outputSize,
107 static int maxZoomLevel(
double tile0width,
double tileResolution,
double maxError );
132 static QString matrix4x4toString(
const QMatrix4x4 &m );
134 static QMatrix4x4 stringToMatrix4x4(
const QString &
str );
143 static bool isCullable(
const QgsAABB &bbox,
const QMatrix4x4 &viewProjectionMatrix );
185 static void estimateVectorLayerZRange(
QgsVectorLayer *layer,
double &zMin,
double &zMax );
194 static QgsRay3D rayFromScreenPoint(
const QPoint &point,
const QSize &windowSize, Qt3DRender::QCamera *camera );
200 static QVector3D screenPointToWorldPos(
const QPoint &screenPoint,
double depth,
const QSize &screenSize, Qt3DRender::QCamera *camera );
206 static void pitchAndYawFromViewVector( QVector3D vect,
double &pitch,
double &yaw );
214 static QVector2D screenToTextureCoordinates( QVector2D screenXY, QSize winSize );
222 static QVector2D textureToScreenCoordinates( QVector2D textureXY, QSize winSize );
232 return ( ( qRed( pixel ) / 255.0 + qGreen( pixel ) ) / 255.0 + qBlue( pixel ) ) / 255.0;
240 static std::unique_ptr< QgsPointCloudLayer3DRenderer > convert2DPointCloudRendererTo3D(
QgsPointCloudRenderer *renderer );
243 #endif // QGS3DUTILS_H