Eaagles::Instruments::BearingPointer Class Reference

Inherits Eaagles::Instruments::CompassRose.

Inheritance diagram for Eaagles::Instruments::BearingPointer:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BearingPointer ()
LCreal getBearingRad ()
LCreal getBearingDeg ()
BasicGL::LcGraphicgetHeadGraphic ()
BasicGL::LcGraphicgetTailGraphic ()
bool setBearingRad (const LCreal newB)
bool setBearingDeg (const LCreal newB)
virtual void drawFunc ()
virtual void draw ()
virtual void updateData (const LCreal dt=0)
virtual bool event (const int key, Basic::LcObject *const obj=0)

Protected Member Functions

virtual bool setSlotHeadGraphic (const BasicGL::LcGraphic *const newH)
virtual bool setSlotTailGraphic (const BasicGL::LcGraphic *const newT)

Private Member Functions

bool onUpdateRadBearingPointer (const Basic::LcAngle *const msg)
bool onUpdateRadBearingPointer (const Basic::LcNumber *const msg)
bool onUpdateDegBearingPointer (const Basic::LcNumber *const msg)

Private Attributes

LCreal bearing
LCreal myRotation
LCreal myRadius
BasicGL::LcGraphichead
BasicGL::LcGraphictail

Constructor & Destructor Documentation

Eaagles::Instruments::BearingPointer::BearingPointer (  ) 


Member Function Documentation

LCreal Eaagles::Instruments::BearingPointer::getBearingRad (  )  [inline]

get function - returns the value of bearing in radians

LCreal Eaagles::Instruments::BearingPointer::getBearingDeg (  )  [inline]

get function - returns the value of bearing in degrees

BasicGL::LcGraphic* Eaagles::Instruments::BearingPointer::getHeadGraphic (  )  [inline]

Returns the head graphic if it exists else returns 0.

BasicGL::LcGraphic* Eaagles::Instruments::BearingPointer::getTailGraphic (  )  [inline]

Returns the tail graphic if it exists else returns 0.

bool Eaagles::Instruments::BearingPointer::setBearingRad ( const LCreal  newB  ) 

Set function - sets the bearing value in radians.

bool Eaagles::Instruments::BearingPointer::setBearingDeg ( const LCreal  newB  ) 

Set function - sets the bearing value in degrees.

void Eaagles::Instruments::BearingPointer::drawFunc (  )  [virtual]

BasicGL::LcGraphic interface.

Reimplemented from Eaagles::BasicGL::LcGraphic.

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

BasicGL::LcGraphic interface - draws the object(s) using the graphic matrix.

Reimplemented from Eaagles::Instruments::CompassRose.

void Eaagles::Instruments::BearingPointer::updateData ( const LCreal  dt = 0  )  [virtual]

Basic::LcComponent interface.

Reimplemented from Eaagles::Instruments::CompassRose.

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

Sends the 'event' message with optional argument 'obj'. Returns true if the 'event' has been received and used. Derived classes will provided event() handlers, as needed. Event() can be called from an updateTC() routines, therefore,the event message must be processed quickly (i.e., no waits)

Reimplemented from Eaagles::Instruments::CompassRose.

bool Eaagles::Instruments::BearingPointer::setSlotHeadGraphic ( const BasicGL::LcGraphic *const  newH  )  [protected, virtual]

slot function - sets the head graphic for the bearing pointer

bool Eaagles::Instruments::BearingPointer::setSlotTailGraphic ( const BasicGL::LcGraphic *const  newT  )  [protected, virtual]

slot function - sets the tail graphic for the bearing pointer

bool Eaagles::Instruments::BearingPointer::onUpdateRadBearingPointer ( const Basic::LcAngle *const  msg  )  [private]

event handler

bool Eaagles::Instruments::BearingPointer::onUpdateRadBearingPointer ( const Basic::LcNumber *const  msg  )  [private]

event handler for update bearing angle (radians)

bool Eaagles::Instruments::BearingPointer::onUpdateDegBearingPointer ( const Basic::LcNumber *const  msg  )  [private]

event handler for update bearing angle (degrees)


Member Data Documentation

LCreal Eaagles::Instruments::BearingPointer::bearing [private]

used for bearing pointer, or if anyone else needs it for calculations (radians)

LCreal Eaagles::Instruments::BearingPointer::myRotation [private]

how much we are going to rotate the compass

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

our radius (comes from dial radius)

BasicGL::LcGraphic* Eaagles::Instruments::BearingPointer::head [private]

our head graphic (if we have one)

BasicGL::LcGraphic* Eaagles::Instruments::BearingPointer::tail [private]

our tail graphic (if we have one)


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