42#include <Qt3DRender/QCamera>
97 const QString &outputDirectory,
98 const QString &fileNameTemplate,
99 const QSize &outputSize,
108 static int maxZoomLevel(
double tile0width,
double tileResolution,
double maxError );
133 static QString matrix4x4toString(
const QMatrix4x4 &m );
135 static QMatrix4x4 stringToMatrix4x4(
const QString &
str );
144 static bool isCullable(
const QgsAABB &bbox,
const QMatrix4x4 &viewProjectionMatrix );
186 static void estimateVectorLayerZRange(
QgsVectorLayer *layer,
double &zMin,
double &zMax );
195 static QgsRay3D rayFromScreenPoint(
const QPoint &point,
const QSize &windowSize, Qt3DRender::QCamera *camera );
201 static QVector3D screenPointToWorldPos(
const QPoint &screenPoint,
double depth,
const QSize &screenSize, Qt3DRender::QCamera *camera );
207 static void pitchAndYawFromViewVector( QVector3D vect,
double &pitch,
double &yaw );
215 static QVector2D screenToTextureCoordinates( QVector2D screenXY, QSize winSize );
223 static QVector2D textureToScreenCoordinates( QVector2D textureXY, QSize winSize );
233 return ( ( qRed( pixel ) / 255.0 + qGreen( pixel ) ) / 255.0 + qBlue( pixel ) ) / 255.0;
241 static std::unique_ptr< QgsPointCloudLayer3DRenderer > convert2DPointCloudRendererTo3D(
QgsPointCloudRenderer *renderer );
250 static QHash<QgsMapLayer *, QVector<QgsRayCastingUtils::RayHit>> castRay(
Qgs3DMapScene *scene,
const QgsRay3D &ray,
const QgsRayCastingUtils::RayCastContext &context );
276 static float screenSpaceError(
float epsilon,
float distance,
float screenSize,
float fov );
AltitudeClamping
Altitude clamping.
AltitudeBinding
Altitude binding.
CullingMode
Triangle culling mode.
static double decodeDepth(const QRgb &pixel)
Decodes the depth value from the pixel's color value The depth value is encoded from OpenGL side (the...
This class represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Line string geometry type, with support for z-dimension and m-values.
3D renderer that renders all points from a point cloud layer
Abstract base class for 2d point cloud renderers.
Point geometry type, with support for z-dimension and m-values.
A representation of a ray in 3D.
A rectangle specified with double values.
Represents a vector layer which manages a vector based data sets.
CORE_EXPORT QgsMeshVertex centroid(const QgsMeshFace &face, const QVector< QgsMeshVertex > &vertices)
Returns the centroid of the face.