Eaagles::Instruments::MapPage Class Reference

Inherits Eaagles::Instruments::MfdPage.

Inherited by Eaagles::Instruments::SymbolLoader, and Eaagles::MovingMap::WorldImage.

Inheritance diagram for Eaagles::Instruments::MapPage:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MapPage ()
double getReferenceLatDeg ()
double getReferenceLonDeg ()
double getReferenceLatRad ()
double getReferenceLonRad ()
LCreal getCosRefLat ()
LCreal getHeadingDeg ()
LCreal getHeadingRad ()
LCreal getOuterRadius ()
LCreal getCurrentRadius ()
LCreal getOuterRadiusDC ()
LCreal getRange ()
LCreal getScale ()
LCreal getDisplacement ()
bool getCentered ()
LCreal getMapHeightRange ()
LCreal getMapWidthRange ()
LCreal getMapWidthIN ()
LCreal getMapHeightIN ()
LCreal getnmToInchesHeight ()
LCreal getnmToInchesWidth ()
virtual bool setRange (const LCreal newRange)
virtual bool setHeadingDeg (const LCreal newHeading)
virtual bool setHeadingRad (const LCreal newHeading)
virtual bool setReferenceLatDeg (const double newLat)
virtual bool setReferenceLonDeg (const double newLon)
virtual bool setReferenceLatRad (const double newLat)
virtual bool setReferenceLonRad (const double newLon)
virtual bool setCentered (const bool newC)
virtual bool toggleCentered ()
virtual bool setOuterRadius (const LCreal newRadius)
virtual bool setOuterRadiusDC (const LCreal newRadiusDC)
virtual bool setDisplacement (const LCreal newD)
virtual bool setDynamic (const bool x)
virtual bool setMapHeight (const LCreal newMH)
virtual bool setMapWidth (const LCreal newMW)
virtual bool setMapWidthRange (const LCreal newR)
virtual bool setMapHeightRange (const LCreal newR)
bool aircraft2Screen (const LCreal acX, const LCreal acY, LCreal *screenX, LCreal *screenY)
bool earth2Aircraft (const LCreal earthX, const LCreal earthY, LCreal *acX, LCreal *acY)
bool latLon2Earth (const double lat, const double lon, LCreal *earthX, LCreal *earthY)
virtual void updateData (const LCreal dt=0.0)
virtual bool event (const int event, Basic::LcObject *const obj=0)
bool isDynamic ()

Protected Member Functions

bool setSlotOuterRadius (const Basic::LcNumber *const newRadius)
bool setSlotOuterRadiusDC (const Basic::LcNumber *const newRadiusDC)
bool setSlotRange (const Basic::LcNumber *const newR)
bool setSlotDisplacement (const Basic::LcNumber *const newD)
bool setSlotCentered (const Basic::LcNumber *const newC)
bool setSlotDynamic (const Basic::LcNumber *const x)
bool setSlotMapHeight (const Basic::LcNumber *newH)
bool setSlotMapWidth (const Basic::LcNumber *newW)
bool setSlotMapHeightRange (const Basic::LcNumber *newHR)
bool setSlotMapWidthRange (const Basic::LcNumber *newWR)
bool setSlotRefLat (const Basic::LcNumber *const x)
bool setSlotRefLon (const Basic::LcNumber *const x)
bool setSlotRefHdg (const Basic::LcNumber *const x)

Private Member Functions

bool onUpdateRangeMapPage (const Basic::LcNumber *const newR)
bool onUpdateHeadingMapPage (const Basic::LcNumber *const newH)
bool onUpdateReferenceLatMapPage (const Basic::LcNumber *const newOL)
bool onUpdateReferenceLonMapPage (const Basic::LcNumber *const newOL)
bool onUpdateCenteredMapPage (const Basic::LcNumber *const newC)
bool onUpdateOuterRadiusMapPage (const Basic::LcNumber *const newR)
bool onUpdateOuterRadiusDCMapPage (const Basic::LcNumber *const newRDC)
bool onUpdateDisplacementMapPage (const Basic::LcNumber *const newD)

Private Attributes

LCreal nM2Inches
LCreal range
LCreal outerRadius
LCreal outerRadiusDC
LCreal heading
double referenceLat
double referenceLon
LCreal cosineLatReference
LCreal headingCos
LCreal headingSin
LCreal displacement
bool isCentered
SendData headingSD
SendData isCenteredSD
LCreal myRadius
bool dynamic
LCreal mapHeight
LCreal mapWidth
LCreal widthRange
LCreal heightRange
LCreal nmToInchesHeight
LCreal nmToInchesWidth

Constructor & Destructor Documentation

Eaagles::Instruments::MapPage::MapPage (  ) 


Member Function Documentation

double Eaagles::Instruments::MapPage::getReferenceLatDeg (  )  [inline]

get function for reference latitude (degs)

double Eaagles::Instruments::MapPage::getReferenceLonDeg (  )  [inline]

get function for reference longitude (degs)

double Eaagles::Instruments::MapPage::getReferenceLatRad (  )  [inline]

get function for reference lat (rads)

double Eaagles::Instruments::MapPage::getReferenceLonRad (  )  [inline]

get function for reference longitude (rads)

LCreal Eaagles::Instruments::MapPage::getCosRefLat (  )  [inline]

get function for reference latitude cosine

LCreal Eaagles::Instruments::MapPage::getHeadingDeg (  )  [inline]

true heading (degrees)

LCreal Eaagles::Instruments::MapPage::getHeadingRad (  )  [inline]

true heading (radians)

LCreal Eaagles::Instruments::MapPage::getOuterRadius (  )  [inline]

outer radius (inches, centered)

LCreal Eaagles::Instruments::MapPage::getCurrentRadius (  )  [inline]

return our current radius (dependent on centered/decentered)

LCreal Eaagles::Instruments::MapPage::getOuterRadiusDC (  )  [inline]

outer radius (inches, decentered)

LCreal Eaagles::Instruments::MapPage::getRange (  )  [inline]

range (NM)

LCreal Eaagles::Instruments::MapPage::getScale (  )  [inline]

scale factor (inches/NM)

LCreal Eaagles::Instruments::MapPage::getDisplacement (  )  [inline]

de-centered displacement (inches)

bool Eaagles::Instruments::MapPage::getCentered (  )  [inline]

centered flag

LCreal Eaagles::Instruments::MapPage::getMapHeightRange (  )  [inline]

'dynamic' gets - gets the height range in nautical miles

LCreal Eaagles::Instruments::MapPage::getMapWidthRange (  )  [inline]

'dynamic' gets - gets the width range in nautical miles

LCreal Eaagles::Instruments::MapPage::getMapWidthIN (  )  [inline]

'dynamic' gets - gets the width of the map in inches

LCreal Eaagles::Instruments::MapPage::getMapHeightIN (  )  [inline]

'dynamic' gets - gets the height of the map in inches

LCreal Eaagles::Instruments::MapPage::getnmToInchesHeight (  )  [inline]

'dynamic' gets - returns nautical miles to inches for the height

LCreal Eaagles::Instruments::MapPage::getnmToInchesWidth (  )  [inline]

'dynamic' gets - returns nautical miles to inches for the width

bool Eaagles::Instruments::MapPage::setRange ( const LCreal  newRange  )  [virtual]

set function - sets the range to the outer radius (NM)

bool Eaagles::Instruments::MapPage::setHeadingDeg ( const LCreal  newHeading  )  [virtual]

set function - sets the true heading (degrees)

bool Eaagles::Instruments::MapPage::setHeadingRad ( const LCreal  newHeading  )  [virtual]

set function - sets the true heading (radians)

bool Eaagles::Instruments::MapPage::setReferenceLatDeg ( const double  newLat  )  [virtual]

set function - sets the reference latitude (degs)

bool Eaagles::Instruments::MapPage::setReferenceLonDeg ( const double  newLon  )  [virtual]

set function - sets the reference longitude (degs)

bool Eaagles::Instruments::MapPage::setReferenceLatRad ( const double  newLat  )  [virtual]

set function - sets the reference latitude (rads)

bool Eaagles::Instruments::MapPage::setReferenceLonRad ( const double  newLon  )  [virtual]

set function - sets the reference longitude (rads)

bool Eaagles::Instruments::MapPage::setCentered ( const bool  newC  )  [virtual]

set function - sets the 'centered' flag

bool Eaagles::Instruments::MapPage::toggleCentered (  )  [virtual]

toggles our centered value

bool Eaagles::Instruments::MapPage::setOuterRadius ( const LCreal  newRadius  )  [virtual]

set function - sets the outer radius (centered mode) (inches)

bool Eaagles::Instruments::MapPage::setOuterRadiusDC ( const LCreal  newRadiusDC  )  [virtual]

set function - sets the outer radius (de-centered mode) (inches)

bool Eaagles::Instruments::MapPage::setDisplacement ( const LCreal  newD  )  [virtual]

set function - sets the de-centered displacement (inches)

bool Eaagles::Instruments::MapPage::setDynamic ( const bool  x  )  [virtual]

set function - sets the flag if we are using dynamic maps or just regular maps

bool Eaagles::Instruments::MapPage::setMapHeight ( const LCreal  newMH  )  [virtual]

dynamic set - sets the map height to newMH

bool Eaagles::Instruments::MapPage::setMapWidth ( const LCreal  newMW  )  [virtual]

dynamic set - sets the map width to newMW

bool Eaagles::Instruments::MapPage::setMapWidthRange ( const LCreal  newR  )  [virtual]

dynamic set - sets the map width range to newR

bool Eaagles::Instruments::MapPage::setMapHeightRange ( const LCreal  newR  )  [virtual]

dynamic set - sets the map height range to newR

bool Eaagles::Instruments::MapPage::aircraft2Screen ( const LCreal  acX,
const LCreal  acY,
LCreal screenX,
LCreal screenY 
)

converts A/C coordinates to inches

bool Eaagles::Instruments::MapPage::earth2Aircraft ( const LCreal  earthX,
const LCreal  earthY,
LCreal acX,
LCreal acY 
)

earth coordinates to AC coordinates (NED - meters)

bool Eaagles::Instruments::MapPage::latLon2Earth ( const double  lat,
const double  lon,
LCreal earthX,
LCreal earthY 
)

lat/lon (deg) to earth (NED - meters)

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

Basic::LcComponent interface.

Reimplemented from Eaagles::Instruments::MfdPage.

Reimplemented in Eaagles::Instruments::SymbolLoader, and Eaagles::MovingMap::MovingMapImage.

virtual bool Eaagles::Instruments::MapPage::event ( const int  event,
Basic::LcObject *const   obj = 0 
) [virtual]

Basic::LcComponent interface.

Reimplemented from Eaagles::Instruments::MfdPage.

bool Eaagles::Instruments::MapPage::isDynamic (  )  [inline]

returns our dynamic flag

bool Eaagles::Instruments::MapPage::setSlotOuterRadius ( const Basic::LcNumber *const  newRadius  )  [protected]

slot function - sets the non-dynamic slot 'outerRadius' (radius of our outer circle, if we are centered)

bool Eaagles::Instruments::MapPage::setSlotOuterRadiusDC ( const Basic::LcNumber *const  newRadiusDC  )  [protected]

slot function - sets the non-dynamic slot 'outerRadiusDecentered' (radius of our outer circle, if we are de-centered. If no value, it defaults to the outerRadius value)

bool Eaagles::Instruments::MapPage::setSlotRange ( const Basic::LcNumber *const  newR  )  [protected]

slot function - sets the non-dynamic slot 'range' (range, in nautical miles, of the viewing area)

bool Eaagles::Instruments::MapPage::setSlotDisplacement ( const Basic::LcNumber *const  newD  )  [protected]

slot function - sets the non-dynamic slot 'displacement' (how far to translate when we are decentered)

bool Eaagles::Instruments::MapPage::setSlotCentered ( const Basic::LcNumber *const  newC  )  [protected]

slot function - sets the non-dynamic slot 'centered' (are we centered, or de-centered - defaults to centered)

bool Eaagles::Instruments::MapPage::setSlotDynamic ( const Basic::LcNumber *const  x  )  [protected]

slot function - sets the non-dynamic slot 'dynamic' (set the dynamic flag)

bool Eaagles::Instruments::MapPage::setSlotMapHeight ( const Basic::LcNumber newH  )  [protected]

slot function - sets the dynamic slot 'mapHeight' (height, in inches, we are drawing in)

bool Eaagles::Instruments::MapPage::setSlotMapWidth ( const Basic::LcNumber newW  )  [protected]

slot function - sets the dynamic slot 'mapWidth' (width)

bool Eaagles::Instruments::MapPage::setSlotMapHeightRange ( const Basic::LcNumber newHR  )  [protected]

slot function - sets the dynamic slot 'heightRange' (the range we cover (nm) from the south to north)

bool Eaagles::Instruments::MapPage::setSlotMapWidthRange ( const Basic::LcNumber newWR  )  [protected]

slot function - sets the dynamic slot 'widthRange' (the range we cover (nm) from the west to east)

bool Eaagles::Instruments::MapPage::setSlotRefLat ( const Basic::LcNumber *const  x  )  [protected]

slot function - sets the dynamic slot 'refLat' (reference latitude (degs))

bool Eaagles::Instruments::MapPage::setSlotRefLon ( const Basic::LcNumber *const  x  )  [protected]

slot function - sets the dynamic slot 'refLon' (reference longitude (degs))

bool Eaagles::Instruments::MapPage::setSlotRefHdg ( const Basic::LcNumber *const  x  )  [protected]

slot function - sets the dynamic slot 'refHdg' (reference heading (degs))

bool Eaagles::Instruments::MapPage::onUpdateRangeMapPage ( const Basic::LcNumber *const  newR  )  [private]

event functions

bool Eaagles::Instruments::MapPage::onUpdateHeadingMapPage ( const Basic::LcNumber *const  newH  )  [private]

bool Eaagles::Instruments::MapPage::onUpdateReferenceLatMapPage ( const Basic::LcNumber *const  newOL  )  [private]

bool Eaagles::Instruments::MapPage::onUpdateReferenceLonMapPage ( const Basic::LcNumber *const  newOL  )  [private]

bool Eaagles::Instruments::MapPage::onUpdateCenteredMapPage ( const Basic::LcNumber *const  newC  )  [private]

bool Eaagles::Instruments::MapPage::onUpdateOuterRadiusMapPage ( const Basic::LcNumber *const  newR  )  [private]

bool Eaagles::Instruments::MapPage::onUpdateOuterRadiusDCMapPage ( const Basic::LcNumber *const  newRDC  )  [private]

bool Eaagles::Instruments::MapPage::onUpdateDisplacementMapPage ( const Basic::LcNumber *const  newD  )  [private]


Member Data Documentation

LCreal Eaagles::Instruments::MapPage::nM2Inches [private]

inches to nautical miles scale

LCreal Eaagles::Instruments::MapPage::range [private]

range scale of the system (nautical miles)

LCreal Eaagles::Instruments::MapPage::outerRadius [private]

radius of the outer circle's ring

LCreal Eaagles::Instruments::MapPage::outerRadiusDC [private]

radius if we are de-centered (we keep these seperate because we need both of them)

LCreal Eaagles::Instruments::MapPage::heading [private]

heading

double Eaagles::Instruments::MapPage::referenceLat [private]

our latitude from center (reference)

double Eaagles::Instruments::MapPage::referenceLon [private]

our longitude from center (reference)

LCreal Eaagles::Instruments::MapPage::cosineLatReference [private]

cosine of our lat (for mathematical purposes)

LCreal Eaagles::Instruments::MapPage::headingCos [private]

cosine of heading

LCreal Eaagles::Instruments::MapPage::headingSin [private]

sine of heading

LCreal Eaagles::Instruments::MapPage::displacement [private]

how far to translate up or down when centered/decentered

bool Eaagles::Instruments::MapPage::isCentered [private]

flag for centering our map page

SendData Eaagles::Instruments::MapPage::headingSD [private]

compass rose data

SendData Eaagles::Instruments::MapPage::isCenteredSD [private]

compass rose data

LCreal Eaagles::Instruments::MapPage::myRadius [private]

current radius being used (outer or decentered)

bool Eaagles::Instruments::MapPage::dynamic [private]

are we using the dynamic maps? Or just regular?

LCreal Eaagles::Instruments::MapPage::mapHeight [private]

inches

LCreal Eaagles::Instruments::MapPage::mapWidth [private]

inches

LCreal Eaagles::Instruments::MapPage::widthRange [private]

nautical miles

LCreal Eaagles::Instruments::MapPage::heightRange [private]

nautical miles

LCreal Eaagles::Instruments::MapPage::nmToInchesHeight [private]

nautical miles to inches for the height

LCreal Eaagles::Instruments::MapPage::nmToInchesWidth [private]

nautical miles to inches for the width


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