FlightGear next
|
This class provides callback slots to get ground specific data. More...
#include <FGGroundCallback.h>
Inherited by FGFSGroundCallback, and JSBSim::FGDefaultGroundCallback.
Public Member Functions | |
FGGroundCallback () | |
virtual | ~FGGroundCallback () |
virtual double | GetAGLevel (double t, const FGLocation &location, FGLocation &contact, FGColumnVector3 &normal, FGColumnVector3 &v, FGColumnVector3 &w) const =0 |
Compute the altitude above ground. | |
virtual double | GetAGLevel (const FGLocation &location, FGLocation &contact, FGColumnVector3 &normal, FGColumnVector3 &v, FGColumnVector3 &w) const |
Compute the altitude above ground. | |
virtual void | SetTerrainElevation (double h) |
Set the terrain elevation. | |
virtual void | SetEllipse (double semimajor, double semiminor) |
Set the planet semimajor and semiminor axes. | |
void | SetTime (double _time) |
Set the simulation time. | |
Protected Attributes | |
double | time |
This class provides callback slots to get ground specific data.
The default implementation returns values for a ball formed earth with an adjustable terrain elevation.
Definition at line 62 of file FGGroundCallback.h.
|
inline |
Definition at line 66 of file FGGroundCallback.h.
|
inlinevirtual |
Definition at line 67 of file FGGroundCallback.h.
|
inlinevirtual |
Compute the altitude above ground.
The altitude depends on location l.
l | location |
contact | Contact point location below the location l |
normal | Normal vector at the contact point |
v | Linear velocity at the contact point |
w | Angular velocity at the contact point |
Definition at line 93 of file FGGroundCallback.h.
|
pure virtual |
Compute the altitude above ground.
The altitude depends on time t and location l.
t | simulation time |
l | location |
contact | Contact point location below the location l |
normal | Normal vector at the contact point |
v | Linear velocity at the contact point |
w | Angular velocity at the contact point |
Implemented in FGFSGroundCallback, and JSBSim::FGDefaultGroundCallback.
|
inlinevirtual |
Set the planet semimajor and semiminor axes.
Only needs to be implemented if JSBSim should be allowed to modify the planet dimensions.
Reimplemented in JSBSim::FGDefaultGroundCallback.
Definition at line 108 of file FGGroundCallback.h.
|
inlinevirtual |
Set the terrain elevation.
Only needs to be implemented if JSBSim should be allowed to modify the local terrain radius (see the default implementation)
Reimplemented in JSBSim::FGDefaultGroundCallback.
Definition at line 102 of file FGGroundCallback.h.
|
inline |
Set the simulation time.
The elapsed time can be used by the ground callbck to assess the planet rotation or the movement of objects.
_time | elapsed time in seconds since the simulation started. |
Definition at line 115 of file FGGroundCallback.h.
|
protected |
Definition at line 118 of file FGGroundCallback.h.