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

#include <HeightSource.h>

+ Inheritance diagram for DebugHeightSource:
+ Collaboration diagram for DebugHeightSource:

Static Public Attributes

static constexpr double kAmplitude = 200.0
 peak height (m)
 
static constexpr double kWavelength = 4000.0
 hill spacing (world m)
 
- Static Public Attributes inherited from ProceduralHeightSource
static constexpr int kSynthGridSize = 33
 samples per edge of a synthesized tile
 

Protected Member Functions

float heightAtWorld (const QPointF &world) const override
 Height in meters at a world-space ground position.
 
- Protected Member Functions inherited from HeightSource
int _nextRequestId ()
 

Additional Inherited Members

- Signals inherited from HeightSource
void patchHeightsReady (int requestId, const QList< float > &heights)
 heights has (gridSize+1)^2 entries, row-major from the north-west corner
 
void patchHeightsFailed (int requestId)
 
- Public Member Functions inherited from ProceduralHeightSource
int requestPatchHeights (const TileMath::TileKey &key, int gridSize) final
 Request the vertex height grid for a patch. Returns a request id (> 0).
 
void cancelRequest (int requestId) final
 Cancel a pending request. No signal is emitted for a cancelled request.
 
bool requestTile (const TileMath::TileKey &key) override
 
 HeightSource (QObject *parent=nullptr)
 
- Public Member Functions inherited from HeightSource
 HeightSource (QObject *parent=nullptr)
 
void setHeightField (HeightField *field)
 Field that receives whole tiles requested via requestTile (not owned)
 
- Protected Attributes inherited from HeightSource
HeightField_heightField = nullptr
 tile delivery target for requestTile (not owned)
 

Detailed Description

Deterministic analytic hills for visually verifying mesh displacement and LOD without terrain data or network access

Definition at line 117 of file HeightSource.h.

Member Function Documentation

◆ heightAtWorld()

float DebugHeightSource::heightAtWorld ( const QPointF &  world) const
overrideprotectedvirtual

Height in meters at a world-space ground position.

Implements ProceduralHeightSource.

Definition at line 108 of file HeightSource.cc.

References kAmplitude, and kWavelength.

Member Data Documentation

◆ kAmplitude

constexpr double DebugHeightSource::kAmplitude = 200.0
staticconstexpr

peak height (m)

Definition at line 124 of file HeightSource.h.

Referenced by heightAtWorld().

◆ kWavelength

constexpr double DebugHeightSource::kWavelength = 4000.0
staticconstexpr

hill spacing (world m)

Definition at line 125 of file HeightSource.h.

Referenced by heightAtWorld().


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