Eaagles::Instruments::Instrument Class Reference

Inherits Eaagles::BasicGL::LcGraphic.

Inherited by Eaagles::Instruments::AltitudeDial, Eaagles::Instruments::AnalogDial, Eaagles::Instruments::AnalogGauge, Eaagles::Instruments::DigitalAoaGauge, and Eaagles::Instruments::LandingGear.

Inheritance diagram for Eaagles::Instruments::Instrument:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Instrument ()
virtual bool event (const int event, Basic::LcObject *const obj=0)
virtual void updateData (const LCreal dt=0.000000)
virtual bool setAllowValPass (const bool newVP)
virtual bool setInstVal (const LCreal newPos)
Basic::LcTable1getScalingTable ()
LCreal getInstValue ()
LCreal getPreScaleInstValue ()
bool isPassingAllowed ()

Protected Member Functions

bool setSlotScalingTable (Basic::LcTable1 *const newTable)
bool setSlotInstVal (const Basic::LcNumber *const newVal)
bool setSlotAllowValPass (const Basic::LcNumber *const newAVP)
bool onUpdateInstValInstrument (const Basic::LcNumber *const newPos)

Private Attributes

Basic::LcTable1myTable
LCreal instVal
LCreal preScaleInstVal
bool allowPassing

Constructor & Destructor Documentation

Eaagles::Instruments::Instrument::Instrument (  ) 


Member Function Documentation

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

Basic::LcComponent interface.

Reimplemented from Eaagles::Basic::LcComponent.

Reimplemented in Eaagles::Instruments::AnalogDial, and Eaagles::Instruments::GMeterDial.

void Eaagles::Instruments::Instrument::updateData ( const LCreal  dt = 0.000000  )  [virtual]

Update non time critical background stuff.

Reimplemented from Eaagles::Basic::LcComponent.

Reimplemented in Eaagles::Instruments::AltitudeDial, Eaagles::Instruments::DialArcSegment, Eaagles::Instruments::DigitalAoaGauge, and Eaagles::Instruments::LandingGear.

virtual bool Eaagles::Instruments::Instrument::setAllowValPass ( const bool  newVP  )  [inline, virtual]

Sets flag if we want to pass our instrument value down to our components to newVP.

bool Eaagles::Instruments::Instrument::setInstVal ( const LCreal  newPos  )  [virtual]

Set function for determining how far to translate our gauge.

Basic::LcTable1* Eaagles::Instruments::Instrument::getScalingTable (  )  [inline]

Returns table holding the scaling data.

LCreal Eaagles::Instruments::Instrument::getInstValue (  )  [inline]

Returns the instrument value.

LCreal Eaagles::Instruments::Instrument::getPreScaleInstValue (  )  [inline]

Returns the pre-scaled instrument value (before linear interpolation).

bool Eaagles::Instruments::Instrument::isPassingAllowed (  )  [inline]

Returns value of flag allowPassing (indicating if we pass our instrument value down to our components).

bool Eaagles::Instruments::Instrument::setSlotScalingTable ( Basic::LcTable1 *const   newTable  )  [protected]

Slot function - sets the scaling table slot.

bool Eaagles::Instruments::Instrument::setSlotInstVal ( const Basic::LcNumber *const  newVal  )  [protected]

Slot table function - sets our instrument value slot.

bool Eaagles::Instruments::Instrument::setSlotAllowValPass ( const Basic::LcNumber *const  newAVP  )  [protected]

Slot table function to set allowComponentPass slot - if this is true, we will send all instrument values we receive down to our components.

bool Eaagles::Instruments::Instrument::onUpdateInstValInstrument ( const Basic::LcNumber *const  newPos  )  [protected]

Event function - Update our gauge if necessary, then send the event down to all of our graphic components who need it.


Member Data Documentation

Basic::LcTable1* Eaagles::Instruments::Instrument::myTable [private]

holds our scaling data

LCreal Eaagles::Instruments::Instrument::instVal [private]

our instrument value

LCreal Eaagles::Instruments::Instrument::preScaleInstVal [private]

our pre-scaled instrument value (before linear interpolation)

bool Eaagles::Instruments::Instrument::allowPassing [private]

do we pass our instrument value down to our components?


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