XPMP2
X-Plane multiplayer library 2 - using instancing
Public Member Functions | Public Attributes | List of all members
XPMP2::RmtAcCacheTy Struct Reference

Holds a copy of some aircraft data as was sent out last. More...

#include <Remote.h>

Public Member Functions

 RmtAcCacheTy (const Aircraft &ac, double _lat, double _lon, double _alt_ft)
 Constructor copies relevant values from the passed-in aircraft. More...
 
void UpdateFrom (const Aircraft &ac, double _lat, double _lon, double _alt_ft)
 Updates current values from given aircraft. More...
 

Public Attributes

const unsigned fullUpdGrp
 full update group, with which planes are distributed to load balance sending XPMP2::RMT_MSG_AC_DETAILED messages More...
 
float ts
 timestamp this position was valid (XP network time) More...
 
double lat
 degree latitude More...
 
double lon
 degree longitude More...
 
double alt_ft
 feet altitude More...
 
XPLMDrawInfo_t drawInfo
 position and orientation last sent More...
 
std::vector< float > v
 dataRef values More...
 
bool bValid: 1
 is this object valid? (Will be reset in case of exceptions) More...
 
bool bVisible: 1
 Shall this plane be drawn at the moment? More...
 
bool bRender: 1
 Shall the CSL model be drawn in 3D world? More...
 
const CSLModelpCSLMdl
 the CSL model in use More...
 

Detailed Description

Holds a copy of some aircraft data as was sent out last.

Constructor & Destructor Documentation

◆ RmtAcCacheTy()

XPMP2::RmtAcCacheTy::RmtAcCacheTy ( const Aircraft ac,
double  _lat,
double  _lon,
double  _alt_ft 
)

Constructor copies relevant values from the passed-in aircraft.

Member Function Documentation

◆ UpdateFrom()

void XPMP2::RmtAcCacheTy::UpdateFrom ( const Aircraft ac,
double  _lat,
double  _lon,
double  _alt_ft 
)

Updates current values from given aircraft.

Member Data Documentation

◆ alt_ft

double XPMP2::RmtAcCacheTy::alt_ft

feet altitude

◆ bRender

bool XPMP2::RmtAcCacheTy::bRender

Shall the CSL model be drawn in 3D world?

◆ bValid

bool XPMP2::RmtAcCacheTy::bValid

is this object valid? (Will be reset in case of exceptions)

◆ bVisible

bool XPMP2::RmtAcCacheTy::bVisible

Shall this plane be drawn at the moment?

◆ drawInfo

XPLMDrawInfo_t XPMP2::RmtAcCacheTy::drawInfo

position and orientation last sent

◆ fullUpdGrp

const unsigned XPMP2::RmtAcCacheTy::fullUpdGrp

full update group, with which planes are distributed to load balance sending XPMP2::RMT_MSG_AC_DETAILED messages

◆ lat

double XPMP2::RmtAcCacheTy::lat

degree latitude

◆ lon

double XPMP2::RmtAcCacheTy::lon

degree longitude

◆ pCSLMdl

const CSLModel* XPMP2::RmtAcCacheTy::pCSLMdl

the CSL model in use

◆ ts

float XPMP2::RmtAcCacheTy::ts

timestamp this position was valid (XP network time)

◆ v

std::vector<float> XPMP2::RmtAcCacheTy::v

dataRef values


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