FlightGear next
FGFlightHistory Class Reference

record the history of the aircraft's movements, making it available as a contiguous block. More...

#include <FlightHistory.hxx>

Inherits SGSubsystem.

Public Member Functions

 FGFlightHistory ()
 
virtual ~FGFlightHistory ()
 
void init () override
 
void reinit () override
 
void shutdown () override
 
void update (double dt) override
 
PagedPathForHistory_ptr pagedPathForHistory (size_t max_entries, size_t newerThan=0) const
 
SGGeodVec pathForHistory (double minEdgeLengthM=50.0) const
 retrieve the path, collapsing segments shorter than the specified minimum length
 
void clear ()
 clear the history
 

Static Public Member Functions

static const char * staticSubsystemClassId ()
 

Detailed Description

record the history of the aircraft's movements, making it available as a contiguous block.

This can be used to show the historical flight-path over a long period of time (unlike the replay system), but only a small, fixed set of properties are recorded. (Positioned and orientation, but not velocity, acceleration, control inputs, or so on)

Definition at line 37 of file FlightHistory.hxx.

Constructor & Destructor Documentation

◆ FGFlightHistory()

FGFlightHistory::FGFlightHistory ( )

Definition at line 41 of file FlightHistory.cxx.

◆ ~FGFlightHistory()

FGFlightHistory::~FGFlightHistory ( )
virtual

Definition at line 47 of file FlightHistory.cxx.

Member Function Documentation

◆ clear()

void FGFlightHistory::clear ( )

clear the history

Definition at line 213 of file FlightHistory.cxx.

◆ init()

void FGFlightHistory::init ( )
override

Definition at line 51 of file FlightHistory.cxx.

◆ pagedPathForHistory()

PagedPathForHistory_ptr FGFlightHistory::pagedPathForHistory ( size_t max_entries,
size_t newerThan = 0 ) const

Definition at line 151 of file FlightHistory.cxx.

◆ pathForHistory()

SGGeodVec FGFlightHistory::pathForHistory ( double minEdgeLengthM = 50.0) const

retrieve the path, collapsing segments shorter than the specified minimum length

Definition at line 185 of file FlightHistory.cxx.

◆ reinit()

void FGFlightHistory::reinit ( )
override

Definition at line 80 of file FlightHistory.cxx.

◆ shutdown()

void FGFlightHistory::shutdown ( )
override

Definition at line 75 of file FlightHistory.cxx.

◆ staticSubsystemClassId()

static const char * FGFlightHistory::staticSubsystemClassId ( )
inlinestatic

Definition at line 50 of file FlightHistory.hxx.

◆ update()

void FGFlightHistory::update ( double dt)
override

Definition at line 86 of file FlightHistory.cxx.


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