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

#include <FlightPathSegment.h>

Inheritance diagram for FlightPathSegment:
Collaboration diagram for FlightPathSegment:

Public Types

enum  SegmentType { SegmentTypeTakeoff , SegmentTypeGeneric , SegmentTypeLand , SegmentTypeTerrainFrame }

Public Slots

void setCoordinate1 (const QGeoCoordinate &coordinate)
void setCoordinate2 (const QGeoCoordinate &coordinate)
void setCoord1AMSLAlt (double alt)
void setCoord2AMSLAlt (double alt)

Signals

void coordinate1Changed (QGeoCoordinate coordinate)
void coordinate2Changed (QGeoCoordinate coordinate)
void coord1AMSLAltChanged (void)
void coord2AMSLAltChanged (void)
void specialVisualChanged (bool specialVisual)
void amslTerrainHeightsChanged (void)
void distanceBetweenChanged (double distanceBetween)
void finalDistanceBetweenChanged (double finalDistanceBetween)
void totalDistanceChanged (double totalDistance)
void terrainCollisionChanged (bool terrainCollision)

Public Member Functions

 FlightPathSegment (SegmentType segmentType, const QGeoCoordinate &coord1, double coord1AMSLAlt, const QGeoCoordinate &coord2, double coord2AMSLAlt, bool queryTerrainData, QObject *parent)
QGeoCoordinate coordinate1 (void) const
QGeoCoordinate coordinate2 (void) const
double coord1AMSLAlt (void) const
double coord2AMSLAlt (void) const
const QVariantList & amslTerrainHeights (void) const
double distanceBetween (void) const
double finalDistanceBetween (void) const
double totalDistance (void) const
bool specialVisual (void) const
bool terrainCollision (void) const
SegmentType segmentType (void) const
void setSpecialVisual (bool specialVisual)

Detailed Description

Definition at line 13 of file FlightPathSegment.h.

Member Enumeration Documentation

◆ SegmentType

Enumerator
SegmentTypeTakeoff 
SegmentTypeGeneric 
SegmentTypeLand 
SegmentTypeTerrainFrame 

Definition at line 19 of file FlightPathSegment.h.

Constructor & Destructor Documentation

◆ FlightPathSegment()

FlightPathSegment::FlightPathSegment ( SegmentType segmentType,
const QGeoCoordinate & coord1,
double coord1AMSLAlt,
const QGeoCoordinate & coord2,
double coord2AMSLAlt,
bool queryTerrainData,
QObject * parent )

Definition at line 8 of file FlightPathSegment.cc.

References FlightPathSegment(), and segmentType().

Referenced by FlightPathSegment().

Member Function Documentation

◆ amslTerrainHeights()

const QVariantList & FlightPathSegment::amslTerrainHeights ( void ) const
inline

Definition at line 45 of file FlightPathSegment.h.

Referenced by ComplexMissionItem::_appendFlightPathSegment().

◆ amslTerrainHeightsChanged

void FlightPathSegment::amslTerrainHeightsChanged ( void )
signal

◆ coord1AMSLAlt()

double FlightPathSegment::coord1AMSLAlt ( void ) const
inline

Definition at line 43 of file FlightPathSegment.h.

◆ coord1AMSLAltChanged

void FlightPathSegment::coord1AMSLAltChanged ( void )
signal

Referenced by setCoord1AMSLAlt().

◆ coord2AMSLAlt()

double FlightPathSegment::coord2AMSLAlt ( void ) const
inline

Definition at line 44 of file FlightPathSegment.h.

◆ coord2AMSLAltChanged

void FlightPathSegment::coord2AMSLAltChanged ( void )
signal

Referenced by setCoord2AMSLAlt().

◆ coordinate1()

QGeoCoordinate FlightPathSegment::coordinate1 ( void ) const
inline

Definition at line 41 of file FlightPathSegment.h.

References coordinate1().

Referenced by coordinate1().

◆ coordinate1Changed

void FlightPathSegment::coordinate1Changed ( QGeoCoordinate coordinate)
signal

Referenced by setCoordinate1().

◆ coordinate2()

QGeoCoordinate FlightPathSegment::coordinate2 ( void ) const
inline

Definition at line 42 of file FlightPathSegment.h.

◆ coordinate2Changed

void FlightPathSegment::coordinate2Changed ( QGeoCoordinate coordinate)
signal

Referenced by setCoordinate2().

◆ distanceBetween()

double FlightPathSegment::distanceBetween ( void ) const
inline

Definition at line 46 of file FlightPathSegment.h.

Referenced by distanceBetweenChanged().

◆ distanceBetweenChanged

void FlightPathSegment::distanceBetweenChanged ( double distanceBetween)
signal

References distanceBetween().

◆ finalDistanceBetween()

double FlightPathSegment::finalDistanceBetween ( void ) const
inline

Definition at line 47 of file FlightPathSegment.h.

Referenced by finalDistanceBetweenChanged().

◆ finalDistanceBetweenChanged

void FlightPathSegment::finalDistanceBetweenChanged ( double finalDistanceBetween)
signal

◆ segmentType()

SegmentType FlightPathSegment::segmentType ( void ) const
inline

Definition at line 51 of file FlightPathSegment.h.

Referenced by FlightPathSegment().

◆ setCoord1AMSLAlt

void FlightPathSegment::setCoord1AMSLAlt ( double alt)
slot

Definition at line 47 of file FlightPathSegment.cc.

References coord1AMSLAltChanged(), and QGC::fuzzyCompare().

◆ setCoord2AMSLAlt

void FlightPathSegment::setCoord2AMSLAlt ( double alt)
slot

Definition at line 56 of file FlightPathSegment.cc.

References coord2AMSLAltChanged(), and QGC::fuzzyCompare().

◆ setCoordinate1

void FlightPathSegment::setCoordinate1 ( const QGeoCoordinate & coordinate)
slot

Definition at line 27 of file FlightPathSegment.cc.

References coordinate1Changed().

◆ setCoordinate2

void FlightPathSegment::setCoordinate2 ( const QGeoCoordinate & coordinate)
slot

Definition at line 37 of file FlightPathSegment.cc.

References coordinate2Changed().

◆ setSpecialVisual()

void FlightPathSegment::setSpecialVisual ( bool specialVisual)

Definition at line 65 of file FlightPathSegment.cc.

References specialVisual(), and specialVisualChanged().

◆ specialVisual()

bool FlightPathSegment::specialVisual ( void ) const
inline

Definition at line 49 of file FlightPathSegment.h.

Referenced by setSpecialVisual(), and specialVisualChanged().

◆ specialVisualChanged

void FlightPathSegment::specialVisualChanged ( bool specialVisual)
signal

References specialVisual().

Referenced by setSpecialVisual().

◆ terrainCollision()

bool FlightPathSegment::terrainCollision ( void ) const
inline

◆ terrainCollisionChanged

void FlightPathSegment::terrainCollisionChanged ( bool terrainCollision)
signal

◆ totalDistance()

double FlightPathSegment::totalDistance ( void ) const
inline

Definition at line 48 of file FlightPathSegment.h.

Referenced by totalDistanceChanged(), and TerrainProfile::updateSeries().

◆ totalDistanceChanged

void FlightPathSegment::totalDistanceChanged ( double totalDistance)
signal

References totalDistance().


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