Skip to content

Class MapToView3D

ClassList > MapToView3D

More...

  • #include <maptoview3d.h>

Inherits the following classes: QObject

Public Properties

Type Name
property float heightOffset
Additional vertical offset above the terrain surface.
property QgsPoint mapPoint
The point in map coordinates.
property QML_ELEMENT Quick3DTerrainProvider * terrainProvider
The terrain provider used for geo-to-3D coordinate conversion.
property QVector3D viewPoint
The point in 3D coordinates.

Public Signals

Type Name
signal void heightOffsetChanged
signal void mapPointChanged
signal void terrainProviderChanged
signal void viewPointChanged

Public Functions

Type Name
MapToView3D (QObject * parent=nullptr)
float heightOffset () const
QgsPoint mapPoint () const
void setHeightOffset (float offset)
void setMapPoint (const QgsPoint & point)
void setTerrainProvider (Quick3DTerrainProvider * provider)
Quick3DTerrainProvider * terrainProvider () const
QVector3D viewPoint () const

Detailed Description

Transforms a map point to a 3D position using a terrain provider.

The 3D point is automatically updated when the map point or terrain provider extent changes, enabling dynamic positioning of 3D elements.

Note:

QML Type: MapToView3D

Public Properties Documentation

property heightOffset [1/2]

Additional vertical offset above the terrain surface.

float MapToView3D::heightOffset;

property mapPoint [1/2]

The point in map coordinates.

QgsPoint MapToView3D::mapPoint;

property terrainProvider [1/2]

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

QML_ELEMENT Quick3DTerrainProvider * MapToView3D::terrainProvider;

property viewPoint [1/2]

The point in 3D coordinates.

QVector3D MapToView3D::viewPoint;

Public Signals Documentation

signal heightOffsetChanged

void MapToView3D::heightOffsetChanged;

signal mapPointChanged

void MapToView3D::mapPointChanged;

signal terrainProviderChanged

void MapToView3D::terrainProviderChanged;

signal viewPointChanged

void MapToView3D::viewPointChanged;

Public Functions Documentation

function MapToView3D

explicit MapToView3D::MapToView3D (
    QObject * parent=nullptr
) 

function heightOffset [2/2]

float MapToView3D::heightOffset () const

function mapPoint [2/2]

QgsPoint MapToView3D::mapPoint () const

function setHeightOffset

void MapToView3D::setHeightOffset (
    float offset
) 

function setMapPoint

void MapToView3D::setMapPoint (
    const QgsPoint & point
) 

function setTerrainProvider

void MapToView3D::setTerrainProvider (
    Quick3DTerrainProvider * provider
) 

function terrainProvider [2/2]

Quick3DTerrainProvider * MapToView3D::terrainProvider () const

function viewPoint [2/2]

QVector3D MapToView3D::viewPoint () const


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