Inheritance diagram for Eaagles::Instruments::BearingPointer:


Public Member Functions | |
| BearingPointer () | |
| LCreal | getBearingRad () |
| LCreal | getBearingDeg () |
| BasicGL::LcGraphic * | getHeadGraphic () |
| BasicGL::LcGraphic * | getTailGraphic () |
| 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::LcGraphic * | head |
| BasicGL::LcGraphic * | tail |
| Eaagles::Instruments::BearingPointer::BearingPointer | ( | ) |
| 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] |
| 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] |
| 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)
used for bearing pointer, or if anyone else needs it for calculations (radians)
how much we are going to rotate the compass
our radius (comes from dial radius)
our head graphic (if we have one)
our tail graphic (if we have one)
1.5.0