Eaagles::Instruments::SymbolLoader Class Reference

Inherits Eaagles::Instruments::MapPage.

Inheritance diagram for Eaagles::Instruments::SymbolLoader:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SymbolLoader ()
int getMaxSymbols () const
int getSymbolIndex (const BasicGL::LcGraphic *const mySymbol) const
bool clearLoader ()
int getSymbolType (const int idx) const
int getNumberOfActiveSymbols () const
SlSymbolgetSymbol (const int idx)
virtual int addSymbol (const int nType, const char *const id, int specName=-1)
virtual bool updateSymbolPositionXY (const int idx, const double xPos, const double yPos)
virtual bool updateSymbolPositionXYAircraft (const int idx, const double xPos, const double yPos)
virtual bool updateSymbolPositionLL (const int idx, const double lat, const double lon)
virtual bool updateSymbolHeading (const int idx, const LCreal hdg)
virtual bool updateSymbolValue (const int idx, Basic::LcObject *const value)
virtual bool updateSymbolSelectName (const int idx, const int newSN)
virtual bool removeSymbol (const int idx)
virtual bool setShowInRangeOnly (const bool x)
virtual bool updateSymbolText (const int idx, const char *name, const char newString[])
virtual bool updateSymbolText (const int idx, const char *name, const LCreal newVal)
virtual bool setSymbolFlashRate (const int idx, const char *name, const LCreal flashRate)
virtual bool setSymbolVisible (const int idx, const char *name, bool visibility)
virtual bool setSymbolScale (const int idx, const char *name, const LCreal scale)
virtual bool changeSymbolType (const int nType, const int idx)
virtual bool changeSymbolColor (const int idx, const char *name=0, const Basic::LcColor *cobj=0)
virtual bool changeSymbolColor (const int idx, const char *name=0, const Basic::LcIdent *cobj=0)
virtual void draw ()
virtual void updateData (const LCreal dt=0.0f)
virtual void updateTC (const LCreal dt=0.0f)

Static Public Attributes

static const int MAX_SYMBOLS = 300

Protected Member Functions

bool setSlotTemplates (const Basic::LcPairStream *myTemps)
bool setSlotShowInRangeOnly (const Basic::LcNumber *const x)
virtual SlSymbolsymbolFactory ()
int getSymbols (SPtr< SlSymbol > *const newSyms, const int max)

Private Attributes

Basic::LcPairStreamtemplates
SlSymbolsymbols [MAX_SYMBOLS]
bool showInRangeOnly

Constructor & Destructor Documentation

Eaagles::Instruments::SymbolLoader::SymbolLoader (  ) 


Member Function Documentation

int Eaagles::Instruments::SymbolLoader::getMaxSymbols (  )  const [inline]

Get the maximum number of symbols.

int Eaagles::Instruments::SymbolLoader::getSymbolIndex ( const BasicGL::LcGraphic *const  mySymbol  )  const

symbol index is one based, so we have to use the n-1 position in the array

bool Eaagles::Instruments::SymbolLoader::clearLoader (  ) 

Clears all of our symbols out.

int Eaagles::Instruments::SymbolLoader::getSymbolType ( const int  idx  )  const

return the numeric id for this symbol

int Eaagles::Instruments::SymbolLoader::getNumberOfActiveSymbols (  )  const

returns the count of active symbols

SlSymbol * Eaagles::Instruments::SymbolLoader::getSymbol ( const int  idx  ) 

gets a symbol pointer based on the index passed

int Eaagles::Instruments::SymbolLoader::addSymbol ( const int  nType,
const char *const  id,
int  specName = -1 
) [virtual]

or zero if not added.

adds a symbol to our array list; returns the symbol's index; range [ 1 .. getMaxSymbols() ]

bool Eaagles::Instruments::SymbolLoader::updateSymbolPositionXY ( const int  idx,
const double  xPos,
const double  yPos 
) [virtual]

actual X Y from the ownship instead of from the reference, you must subtract ownship's xy (NED) from the track's xy (NED) before using this function.

bool Eaagles::Instruments::SymbolLoader::updateSymbolPositionXYAircraft ( const int  idx,
const double  xPos,
const double  yPos 
) [virtual]

Does the same as updateSymbolXY, only here we do not rotate our symbol before drawing, because we are assuming we are getting an aircraft off-the-nose, off-the-wing set of values.

bool Eaagles::Instruments::SymbolLoader::updateSymbolPositionLL ( const int  idx,
const double  lat,
const double  lon 
) [virtual]

update Lat lon position of symbol

bool Eaagles::Instruments::SymbolLoader::updateSymbolHeading ( const int  idx,
const LCreal  hdg 
) [virtual]

update the symbol's heading

bool Eaagles::Instruments::SymbolLoader::updateSymbolValue ( const int  idx,
Basic::LcObject *const   value 
) [virtual]

update the symbol's value

bool Eaagles::Instruments::SymbolLoader::updateSymbolSelectName ( const int  idx,
const int  newSN 
) [virtual]

update the symbol's select name

bool Eaagles::Instruments::SymbolLoader::removeSymbol ( const int  idx  )  [virtual]

removes a symbol from the array list

bool Eaagles::Instruments::SymbolLoader::setShowInRangeOnly ( const bool  x  )  [virtual]

determines if we show our symbols outside the range ring

bool Eaagles::Instruments::SymbolLoader::updateSymbolText ( const int  idx,
const char *  name,
const char  newString[] 
) [virtual]

update the symbol's text. You specify which name you wish for the symbol loader to look for (const char* name), and it will find that asciiText and change the text accordingly. If you do not supply a valid name, or if the name is not found, it will return false For example, if you wish to update a symbol with a "lower" text name to the word "hello", you would call updateSymbolText(1, "lower", "hello"); If no component exists with the name "hello", then false is returned. '1' is the symbol index number.

bool Eaagles::Instruments::SymbolLoader::updateSymbolText ( const int  idx,
const char *  name,
const LCreal  newVal 
) [virtual]

Update symbol text with an LCreal.

bool Eaagles::Instruments::SymbolLoader::setSymbolFlashRate ( const int  idx,
const char *  name,
const LCreal  flashRate 
) [virtual]

set symbol and child components flashing

bool Eaagles::Instruments::SymbolLoader::setSymbolVisible ( const int  idx,
const char *  name,
bool  visibility 
) [virtual]

set symbol visible / invisible

bool Eaagles::Instruments::SymbolLoader::setSymbolScale ( const int  idx,
const char *  name,
const LCreal  scale 
) [virtual]

set symbol and child components scale

bool Eaagles::Instruments::SymbolLoader::changeSymbolType ( const int  nType,
const int  idx 
) [virtual]

change an existing symbol type to another type

bool Eaagles::Instruments::SymbolLoader::changeSymbolColor ( const int  idx,
const char *  name = 0,
const Basic::LcColor cobj = 0 
) [virtual]

update the symbol's color

bool Eaagles::Instruments::SymbolLoader::changeSymbolColor ( const int  idx,
const char *  name = 0,
const Basic::LcIdent cobj = 0 
) [virtual]

update the symbol's color based on Ident

void Eaagles::Instruments::SymbolLoader::draw (  )  [virtual]

BasicGL::LcGraphic interface.

Reimplemented from Eaagles::BasicGL::LcPage.

void Eaagles::Instruments::SymbolLoader::updateData ( const LCreal  dt = 0.0f  )  [virtual]

Basic::LcComponent interface.

Reimplemented from Eaagles::Instruments::MapPage.

void Eaagles::Instruments::SymbolLoader::updateTC ( const LCreal  dt = 0.0f  )  [virtual]

update time critical data

Reimplemented from Eaagles::BasicGL::LcPage.

bool Eaagles::Instruments::SymbolLoader::setSlotTemplates ( const Basic::LcPairStream myTemps  )  [protected]

bool Eaagles::Instruments::SymbolLoader::setSlotShowInRangeOnly ( const Basic::LcNumber *const  x  )  [protected]

SlSymbol * Eaagles::Instruments::SymbolLoader::symbolFactory (  )  [protected, virtual]

Creates symbols objects.

int Eaagles::Instruments::SymbolLoader::getSymbols ( SPtr< SlSymbol > *const   newSyms,
const int  max 
) [protected]

Gets our list of symbols, and returns the number of symbols.


Member Data Documentation

const int Eaagles::Instruments::SymbolLoader::MAX_SYMBOLS = 300 [static]

Basic::LcPairStream* Eaagles::Instruments::SymbolLoader::templates [private]

holds our pairstream of templates

SlSymbol* Eaagles::Instruments::SymbolLoader::symbols[MAX_SYMBOLS] [private]

holds our array of symbols

bool Eaagles::Instruments::SymbolLoader::showInRangeOnly [private]

only show the symbols within our range, else draw all the symbols if false


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