Class Qf3DGeometry
#include <qf3dgeometry.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 float | extrusion Extrusion in scene units; when > 0, polygons are rendered as volumetric solids with walls and a roof cap. |
| 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 Qf3DTerrainProvider * | 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 | extrusionChanged |
| signal void | fillPolygonsChanged |
| signal void | heightOffsetChanged |
| signal void | lineWidthChanged |
| signal void | qgsGeometryChanged |
| signal void | terrainProviderChanged |
Public Functions
| Type | Name |
|---|---|
| Qf3DGeometry (QQuick3DObject * parent=nullptr) |
|
| AltitudeClamping | altitudeClamping () const |
| QColor | color () const |
| QgsCoordinateReferenceSystem | crs () const |
| float | extrusion () 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 | setExtrusion (float extrusion) |
| void | setFillPolygons (bool fill) |
| void | setHeightOffset (float offset) |
| void | setLineWidth (float width) |
| void | setQgsGeometry (const QgsGeometry & geometry) |
| void | setTerrainProvider (Qf3DTerrainProvider * provider) |
| Qf3DTerrainProvider * | 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: Qf3DGeometry
Public Types Documentation
enum AltitudeClamping
enum Qf3DGeometry::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 Qf3DGeometry::altitudeClamping;
property color [1/2]
Per-vertex color applied to the highlight mesh.
QColor Qf3DGeometry::color;
property crs [1/2]
Coordinate reference system the geometry is expressed in.
QgsCoordinateReferenceSystem Qf3DGeometry::crs;
property extrusion [1/2]
Extrusion in scene units; when > 0, polygons are rendered as volumetric solids with walls and a roof cap.
float Qf3DGeometry::extrusion;
property fillPolygons [1/2]
Whether polygons get a semi-transparent fill in addition to the outline.
bool Qf3DGeometry::fillPolygons;
property heightOffset [1/2]
Extra vertical offset added on top of the elevation chosen by altitudeClamping.
float Qf3DGeometry::heightOffset;
property lineWidth [1/2]
Outline tube thickness in scene units.
float Qf3DGeometry::lineWidth;
property qgsGeometry [1/2]
The geometry to highlight.
QgsGeometry Qf3DGeometry::qgsGeometry;
property terrainProvider [1/2]
The terrain provider used for geo-to-3D coordinate conversion.
Qf3DTerrainProvider * Qf3DGeometry::terrainProvider;
Public Signals Documentation
signal altitudeClampingChanged
void Qf3DGeometry::altitudeClampingChanged;
signal colorChanged
void Qf3DGeometry::colorChanged;
signal crsChanged
void Qf3DGeometry::crsChanged;
signal extrusionChanged
void Qf3DGeometry::extrusionChanged;
signal fillPolygonsChanged
void Qf3DGeometry::fillPolygonsChanged;
signal heightOffsetChanged
void Qf3DGeometry::heightOffsetChanged;
signal lineWidthChanged
void Qf3DGeometry::lineWidthChanged;
signal qgsGeometryChanged
void Qf3DGeometry::qgsGeometryChanged;
signal terrainProviderChanged
void Qf3DGeometry::terrainProviderChanged;
Public Functions Documentation
function Qf3DGeometry
explicit Qf3DGeometry::Qf3DGeometry (
QQuick3DObject * parent=nullptr
)
function altitudeClamping [2/2]
inline AltitudeClamping Qf3DGeometry::altitudeClamping () const
function color [2/2]
inline QColor Qf3DGeometry::color () const
function crs [2/2]
inline QgsCoordinateReferenceSystem Qf3DGeometry::crs () const
function extrusion [2/2]
inline float Qf3DGeometry::extrusion () const
function fillPolygons [2/2]
inline bool Qf3DGeometry::fillPolygons () const
function heightOffset [2/2]
inline float Qf3DGeometry::heightOffset () const
function lineWidth [2/2]
inline float Qf3DGeometry::lineWidth () const
function qgsGeometry [2/2]
inline QgsGeometry Qf3DGeometry::qgsGeometry () const
function setAltitudeClamping
void Qf3DGeometry::setAltitudeClamping (
AltitudeClamping clamping
)
function setColor
void Qf3DGeometry::setColor (
const QColor & color
)
function setCrs
void Qf3DGeometry::setCrs (
const QgsCoordinateReferenceSystem & crs
)
function setExtrusion
void Qf3DGeometry::setExtrusion (
float extrusion
)
function setFillPolygons
void Qf3DGeometry::setFillPolygons (
bool fill
)
function setHeightOffset
void Qf3DGeometry::setHeightOffset (
float offset
)
function setLineWidth
void Qf3DGeometry::setLineWidth (
float width
)
function setQgsGeometry
void Qf3DGeometry::setQgsGeometry (
const QgsGeometry & geometry
)
function setTerrainProvider
void Qf3DGeometry::setTerrainProvider (
Qf3DTerrainProvider * provider
)
function terrainProvider [2/2]
inline Qf3DTerrainProvider * Qf3DGeometry::terrainProvider () const
The documentation for this class was generated from the following file src/3d/qf3dgeometry.h