Eaagles::Instruments::SlSymbol Class Reference

Inherits Eaagles::Basic::LcComponent.

Inheritance diagram for Eaagles::Instruments::SlSymbol:

Inheritance graph
[legend]
Collaboration diagram for Eaagles::Instruments::SlSymbol:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SlSymbol ()
bool isHeadingValid () const
bool isPositionLL () const
bool isPositionAC () const
bool isPositionXY () const
double getXPosition () const
double getYPosition () const
LCreal getHeadingDeg () const
LCreal getHeadingRad () const
Basic::LcDegrees * getHeadingObj () const
int getType () const
const char * getId () const
Basic::LcObjectgetValue () const
Basic::LcPairgetSymbolPair () const
SendData * getHeadingSendData ()
double getScreenXPos ()
double getScreenYPos ()
void setXPosition (const double v)
void setYPosition (const double v)
void setXScreenPos (const double v)
void setYScreenPos (const double v)
void setHeadingDeg (const LCreal h)
void setType (const int t)
void setId (const char *const v)
void setValue (Basic::LcObject *const v)
void setSymbolPair (Basic::LcPair *const p)
void setHeadingObj (Basic::LcDegrees *const p)
void setLatLonFlag (const bool flg)
void setACCoordFlag (const bool flg)

Static Public Attributes

static const int MAX_ID_SIZE = 8

Private Attributes

double xPos
double yPos
LCreal hdg
Basic::LcDegrees * hdgObj
SendData hdgSD
int type
char id [MAX_ID_SIZE+1]
Basic::LcObjectvalue
Basic::LcPairpntr
bool llFlg
double xScreenPos
double yScreenPos
bool acFlg

Detailed Description

General symbol used by SymbolLoader


Constructor & Destructor Documentation

Eaagles::Instruments::SlSymbol::SlSymbol (  ) 


Member Function Documentation

bool Eaagles::Instruments::SlSymbol::isHeadingValid (  )  const [inline]

Returns true if heading is being used.

bool Eaagles::Instruments::SlSymbol::isPositionLL (  )  const [inline]

Returns true if using at lat/lon position.

bool Eaagles::Instruments::SlSymbol::isPositionAC (  )  const [inline]

Returns true if using at aircraft nose/wing position.

bool Eaagles::Instruments::SlSymbol::isPositionXY (  )  const [inline]

Returns true if using X/Y position [+X->North, +Y->East}.

double Eaagles::Instruments::SlSymbol::getXPosition (  )  const [inline]

Returns X position ( latitude or NM north/south ).

double Eaagles::Instruments::SlSymbol::getYPosition (  )  const [inline]

Returns Y position { longitude or NM east/west ).

LCreal Eaagles::Instruments::SlSymbol::getHeadingDeg (  )  const [inline]

Returns heading (degs).

LCreal Eaagles::Instruments::SlSymbol::getHeadingRad (  )  const [inline]

heading (rads)

Basic::LcDegrees* Eaagles::Instruments::SlSymbol::getHeadingObj (  )  const [inline]

Returns the heading object (Basic::LcDegrees).

int Eaagles::Instruments::SlSymbol::getType (  )  const [inline]

Returns user defined type.

const char* Eaagles::Instruments::SlSymbol::getId (  )  const [inline]

Returns pointer to ID sting.

Basic::LcObject* Eaagles::Instruments::SlSymbol::getValue (  )  const [inline]

Returns user defined value.

Basic::LcPair* Eaagles::Instruments::SlSymbol::getSymbolPair (  )  const [inline]

Returns pointer to the graphical component.

SendData* Eaagles::Instruments::SlSymbol::getHeadingSendData (  )  [inline]

Returns the SendData for the heading.

double Eaagles::Instruments::SlSymbol::getScreenXPos (  )  [inline]

Returns our x position in screen coordinates.

double Eaagles::Instruments::SlSymbol::getScreenYPos (  )  [inline]

Returns our y position in screen coordinates.

void Eaagles::Instruments::SlSymbol::setXPosition ( const double  v  ) 

Sets the X position ( latitude or NM north/south ).

void Eaagles::Instruments::SlSymbol::setYPosition ( const double  v  ) 

Sets the Y position { longitude or NM east/west ).

void Eaagles::Instruments::SlSymbol::setXScreenPos ( const double  v  ) 

Sets the X screen pos (inches).

void Eaagles::Instruments::SlSymbol::setYScreenPos ( const double  v  ) 

Sets the Y screen pos (inches).

void Eaagles::Instruments::SlSymbol::setHeadingDeg ( const LCreal  h  ) 

Sets the (optional) heading (degrees).

void Eaagles::Instruments::SlSymbol::setType ( const int  t  ) 

Sets the user defined type (must match templates).

void Eaagles::Instruments::SlSymbol::setId ( const char *const  v  ) 

Sets the ID string.

void Eaagles::Instruments::SlSymbol::setValue ( Basic::LcObject *const   v  ) 

Sets the user defined value, which is set to the grahical component.

void Eaagles::Instruments::SlSymbol::setSymbolPair ( Basic::LcPair *const  p  ) 

Sets the graphical component.

void Eaagles::Instruments::SlSymbol::setHeadingObj ( Basic::LcDegrees *const   p  ) 

Sets the heading object (Basic::LcDegrees).

void Eaagles::Instruments::SlSymbol::setLatLonFlag ( const bool  flg  ) 

Sets the lat/lon flag (if true we're using lat/lon, else XY).

void Eaagles::Instruments::SlSymbol::setACCoordFlag ( const bool  flg  ) 

Sets the aircraft nose/wing flag (when using this instead of earth coordinates from aircraft).


Member Data Documentation

const int Eaagles::Instruments::SlSymbol::MAX_ID_SIZE = 8 [static]

max size of the symbol's ID

double Eaagles::Instruments::SlSymbol::xPos [private]

X position ( latitude or NM north/south ).

double Eaagles::Instruments::SlSymbol::yPos [private]

Y position { longitude or NM east/west ).

LCreal Eaagles::Instruments::SlSymbol::hdg [private]

symbol heading (degrees)

Basic::LcDegrees* Eaagles::Instruments::SlSymbol::hdgObj [private]

Object to hold symbol's heading.

SendData Eaagles::Instruments::SlSymbol::hdgSD [private]

SendData for heading.

int Eaagles::Instruments::SlSymbol::type [private]

numeric type (for looking up in slottable)

char Eaagles::Instruments::SlSymbol::id[MAX_ID_SIZE+1] [private]

ID (or name) sent to the '.

Basic::LcObject* Eaagles::Instruments::SlSymbol::value [private]

optional value (sent to the symbol as an UPDATE_VALUE event)

Basic::LcPair* Eaagles::Instruments::SlSymbol::pntr [private]

a pointer to the pair we want in the list

bool Eaagles::Instruments::SlSymbol::llFlg [private]

Position is Lat/lon (not X/Y).

double Eaagles::Instruments::SlSymbol::xScreenPos [private]

x position: Screen

double Eaagles::Instruments::SlSymbol::yScreenPos [private]

y position: Screen

bool Eaagles::Instruments::SlSymbol::acFlg [private]

aircraft nose/wing coordinate flag


Generated on Tue Dec 19 16:27:19 2006 for Eaagles by  doxygen 1.5.0