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

z=0 everywhere (Milestone 1 default) More...

#include <HeightSource.h>

Inheritance diagram for FlatHeightSource:
Collaboration diagram for FlatHeightSource:

Public Member Functions

bool requestTile (const TileMath::TileKey &key) override
Public Member Functions inherited from ProceduralHeightSource
int requestPatchHeights (const TileMath::TileKey &key, int gridSize) final
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 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)
Static Public Attributes inherited from ProceduralHeightSource
static constexpr int kSynthGridSize = 33
 samples per edge of a synthesized tile
Protected Attributes inherited from HeightSource
HeightField * _heightField = nullptr
 tile delivery target for requestTile (not owned)

Detailed Description

z=0 everywhere (Milestone 1 default)

Definition at line 97 of file HeightSource.h.

Member Function Documentation

◆ heightAtWorld()

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

Height in meters at a world-space ground position.

Implements ProceduralHeightSource.

Definition at line 102 of file HeightSource.cc.

◆ requestTile()

bool FlatHeightSource::requestTile ( const TileMath::TileKey & key)
inlineoverridevirtual

z=0 everywhere is already the empty field's estimate: inserting all-zero tiles would only churn the pyramid working set

Reimplemented from HeightSource.

Definition at line 106 of file HeightSource.h.


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