QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
FenceWallGeometry Class Reference

#include <FenceWallGeometry.h>

+ Inheritance diagram for FenceWallGeometry:
+ Collaboration diagram for FenceWallGeometry:

Signals

void sceneChanged ()
 
void surfaceModelChanged ()
 
void coordinatesChanged ()
 
void heightAglMetersChanged ()
 
void anchorCoordinateChanged ()
 

Public Member Functions

 FenceWallGeometry (QQuick3DObject *parent=nullptr)
 
GeoScene * scene () const
 
void setScene (GeoScene *scene)
 
SurfacePatchModel * surfaceModel () const
 
void setSurfaceModel (SurfacePatchModel *surfaceModel)
 
QVariantList coordinates () const
 
void setCoordinates (const QVariantList &coordinates)
 
qreal heightAglMeters () const
 
void setHeightAglMeters (qreal heightAglMeters)
 
QGeoCoordinate anchorCoordinate () const
 

Detailed Description

Vertical fence curtain for the GeoMap 3D scene: a triangle strip extruded upward from the terrain to heightAglMeters along a closed coordinate ring (geofence walls). Edges are subdivided so the bottom edge drapes over terrain and the top edge stays a constant AGL height above it, matching how firmwares evaluate AGL fences.

Positions are scene-unit offsets relative to anchorCoordinate (the first ring vertex, at its terrain altitude). z offsets are pre-scaled by the scene's verticalScale but NOT terrainScale: parent the model under a node whose z-scale tracks GeoScene::terrainScale so the wall flattens away during the 3D->2D transition.

Definition at line 37 of file FenceWallGeometry.h.

Constructor & Destructor Documentation

◆ FenceWallGeometry()

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

Definition at line 28 of file FenceWallGeometry.cc.

Member Function Documentation

◆ anchorCoordinate()

QGeoCoordinate FenceWallGeometry::anchorCoordinate ( ) const
inline

First ring vertex at its terrain altitude (invalid while the ring is empty). Place the wall's node at this coordinate; z offsets in the buffer are relative to its altitude.

Definition at line 71 of file FenceWallGeometry.h.

◆ anchorCoordinateChanged

void FenceWallGeometry::anchorCoordinateChanged ( )
signal

◆ coordinates()

QVariantList FenceWallGeometry::coordinates ( ) const
inline

Ring vertices (QGeoCoordinate variants). A trailing duplicate of the first vertex is tolerated; the ring is closed internally either way.

Definition at line 60 of file FenceWallGeometry.h.

Referenced by setCoordinates().

◆ coordinatesChanged

void FenceWallGeometry::coordinatesChanged ( )
signal

Referenced by setCoordinates().

◆ heightAglMeters()

qreal FenceWallGeometry::heightAglMeters ( ) const
inline

Definition at line 64 of file FenceWallGeometry.h.

Referenced by setHeightAglMeters().

◆ heightAglMetersChanged

void FenceWallGeometry::heightAglMetersChanged ( )
signal

Referenced by setHeightAglMeters().

◆ scene()

GeoScene * FenceWallGeometry::scene ( ) const
inline

Definition at line 50 of file FenceWallGeometry.h.

Referenced by setScene().

◆ sceneChanged

void FenceWallGeometry::sceneChanged ( )
signal

Referenced by setScene().

◆ setCoordinates()

void FenceWallGeometry::setCoordinates ( const QVariantList &  coordinates)

Definition at line 76 of file FenceWallGeometry.cc.

References coordinates(), and coordinatesChanged().

◆ setHeightAglMeters()

void FenceWallGeometry::setHeightAglMeters ( qreal  heightAglMeters)

Definition at line 98 of file FenceWallGeometry.cc.

References heightAglMeters(), and heightAglMetersChanged().

◆ setScene()

void FenceWallGeometry::setScene ( GeoScene *  scene)

Definition at line 33 of file FenceWallGeometry.cc.

References scene(), sceneChanged(), and GeoScene::sceneOriginChanged().

◆ setSurfaceModel()

void FenceWallGeometry::setSurfaceModel ( SurfacePatchModel *  surfaceModel)

◆ surfaceModel()

SurfacePatchModel * FenceWallGeometry::surfaceModel ( ) const
inline

Definition at line 54 of file FenceWallGeometry.h.

Referenced by setSurfaceModel().

◆ surfaceModelChanged

void FenceWallGeometry::surfaceModelChanged ( )
signal

Referenced by setSurfaceModel().


The documentation for this class was generated from the following files: