Skip to content

Class Quick3DGeometry

ClassList > Quick3DGeometry

More...

  • #include <quick3dgeometry.h>

Inherits the following classes: QQuick3DGeometry

Public Types

Type Name
enum AltitudeClamping

Public Properties

Type Name
property AltitudeClamping altitudeClamping
How the geometry's Z values are combined with the terrain elevation.
property QColor color
Per-vertex color applied to the highlight mesh.
property QgsCoordinateReferenceSystem crs
Coordinate reference system the geometry is expressed in.
property bool fillPolygons
Whether polygons get a semi-transparent fill in addition to the outline.
property float heightOffset
Extra vertical offset added on top of the elevation chosen by altitudeClamping.
property float lineWidth
Outline tube thickness in scene units.
property QgsGeometry qgsGeometry
The geometry to highlight.
property Quick3DTerrainProvider * terrainProvider
The terrain provider used for geo-to-3D coordinate conversion.

Public Signals

Type Name
signal void altitudeClampingChanged
signal void colorChanged
signal void crsChanged
signal void fillPolygonsChanged
signal void heightOffsetChanged
signal void lineWidthChanged
signal void qgsGeometryChanged
signal void terrainProviderChanged

Public Functions

Type Name
Quick3DGeometry (QQuick3DObject * parent=nullptr)
AltitudeClamping altitudeClamping () const
QColor color () const
QgsCoordinateReferenceSystem crs () const
bool fillPolygons () const
float heightOffset () const
float lineWidth () const
QgsGeometry qgsGeometry () const
void setAltitudeClamping (AltitudeClamping clamping)
void setColor (const QColor & color)
void setCrs (const QgsCoordinateReferenceSystem & crs)
void setFillPolygons (bool fill)
void setHeightOffset (float offset)
void setLineWidth (float width)
void setQgsGeometry (const QgsGeometry & geometry)
void setTerrainProvider (Quick3DTerrainProvider * provider)
Quick3DTerrainProvider * terrainProvider () const

Detailed Description

Generates 3D geometry for an identified or selected feature on top of the terrain mesh.

Points become spheres, lines become extruded tubes with sphere joints, and polygons get both an outline and a semi-transparent triangulated fill. The geometry is reprojected from the source CRS to the map CRS before being draped on the terrain surface.

Note:

QML Type: Quick3DGeometry

Public Types Documentation

enum AltitudeClamping

enum Quick3DGeometry::AltitudeClamping {
    Ignore,
    ClampToGround,
    Absolute
};

How the geometry's Z values interact with the terrain elevation when computing the vertical position of every emitted vertex.


Public Properties Documentation

property altitudeClamping [1/2]

How the geometry's Z values are combined with the terrain elevation.

AltitudeClamping Quick3DGeometry::altitudeClamping;

property color [1/2]

Per-vertex color applied to the highlight mesh.

QColor Quick3DGeometry::color;

property crs [1/2]

Coordinate reference system the geometry is expressed in.

QgsCoordinateReferenceSystem Quick3DGeometry::crs;

property fillPolygons [1/2]

Whether polygons get a semi-transparent fill in addition to the outline.

bool Quick3DGeometry::fillPolygons;

property heightOffset [1/2]

Extra vertical offset added on top of the elevation chosen by altitudeClamping.

float Quick3DGeometry::heightOffset;

property lineWidth [1/2]

Outline tube thickness in scene units.

float Quick3DGeometry::lineWidth;

property qgsGeometry [1/2]

The geometry to highlight.

QgsGeometry Quick3DGeometry::qgsGeometry;

property terrainProvider [1/2]

The terrain provider used for geo-to-3D coordinate conversion.

Quick3DTerrainProvider * Quick3DGeometry::terrainProvider;

Public Signals Documentation

signal altitudeClampingChanged

void Quick3DGeometry::altitudeClampingChanged;

signal colorChanged

void Quick3DGeometry::colorChanged;

signal crsChanged

void Quick3DGeometry::crsChanged;

signal fillPolygonsChanged

void Quick3DGeometry::fillPolygonsChanged;

signal heightOffsetChanged

void Quick3DGeometry::heightOffsetChanged;

signal lineWidthChanged

void Quick3DGeometry::lineWidthChanged;

signal qgsGeometryChanged

void Quick3DGeometry::qgsGeometryChanged;

signal terrainProviderChanged

void Quick3DGeometry::terrainProviderChanged;

Public Functions Documentation

function Quick3DGeometry

explicit Quick3DGeometry::Quick3DGeometry (
    QQuick3DObject * parent=nullptr
) 

function altitudeClamping [2/2]

inline AltitudeClamping Quick3DGeometry::altitudeClamping () const

function color [2/2]

inline QColor Quick3DGeometry::color () const

function crs [2/2]

inline QgsCoordinateReferenceSystem Quick3DGeometry::crs () const

function fillPolygons [2/2]

inline bool Quick3DGeometry::fillPolygons () const

function heightOffset [2/2]

inline float Quick3DGeometry::heightOffset () const

function lineWidth [2/2]

inline float Quick3DGeometry::lineWidth () const

function qgsGeometry [2/2]

inline QgsGeometry Quick3DGeometry::qgsGeometry () const

function setAltitudeClamping

void Quick3DGeometry::setAltitudeClamping (
    AltitudeClamping clamping
) 

function setColor

void Quick3DGeometry::setColor (
    const QColor & color
) 

function setCrs

void Quick3DGeometry::setCrs (
    const QgsCoordinateReferenceSystem & crs
) 

function setFillPolygons

void Quick3DGeometry::setFillPolygons (
    bool fill
) 

function setHeightOffset

void Quick3DGeometry::setHeightOffset (
    float offset
) 

function setLineWidth

void Quick3DGeometry::setLineWidth (
    float width
) 

function setQgsGeometry

void Quick3DGeometry::setQgsGeometry (
    const QgsGeometry & geometry
) 

function setTerrainProvider

void Quick3DGeometry::setTerrainProvider (
    Quick3DTerrainProvider * provider
) 

function terrainProvider [2/2]

inline Quick3DTerrainProvider * Quick3DGeometry::terrainProvider () const


The documentation for this class was generated from the following file src/core/3d/quick3dgeometry.h