Eaagles::Instruments::AnalogDial Class Reference

Inherits Eaagles::Instruments::Instrument.

Inherited by Eaagles::Instruments::DialArcSegment, Eaagles::Instruments::DialPointer, Eaagles::Instruments::DialTickMarks, and Eaagles::Instruments::GMeterDial.

Inheritance diagram for Eaagles::Instruments::AnalogDial:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AnalogDial ()
virtual bool event (const int event, Basic::LcObject *const obj=0)
virtual void drawFunc ()
virtual bool setOriginAngle (const LCreal na)
virtual bool setSweepAngle (const LCreal newSweepAngle)
virtual bool setRadius (const LCreal newR)
virtual bool setMobile (const bool newM)
virtual bool setSlices (const int x)
LCreal getStartAngle ()
LCreal getSweepAngle ()
bool getMobile ()
LCreal getRadius ()
int getSlices ()

Protected Member Functions

bool setSlotOriginAngle (const Basic::LcNumber *const newAngle)
bool setSlotMobile (const Basic::LcNumber *const newM)
bool setSlotSweepAngle (const Basic::LcNumber *const newSweepAngle)
bool setSlotRadius (const Basic::LcNumber *const newR)
bool setSlotSlices (const Basic::LcNumber *const x)

Private Member Functions

bool onEventSetRadiusAnalogDial (const Basic::LcNumber *const x)

Private Attributes

LCreal originAngle
LCreal positionAngle
LCreal sweepAngle
LCreal radius
bool isMobile
int slices

Constructor & Destructor Documentation

Eaagles::Instruments::AnalogDial::AnalogDial (  ) 


Member Function Documentation

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

Basic::LcComponent interface.

Reimplemented from Eaagles::Instruments::Instrument.

Reimplemented in Eaagles::Instruments::GMeterDial.

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

BasicGL::LcGraphic interface.

Reimplemented from Eaagles::BasicGL::LcGraphic.

Reimplemented in Eaagles::Instruments::DialArcSegment, Eaagles::Instruments::DialTickMarks, and Eaagles::Instruments::GMeterDial.

bool Eaagles::Instruments::AnalogDial::setOriginAngle ( const LCreal  na  )  [virtual]

sets the originAngle

bool Eaagles::Instruments::AnalogDial::setSweepAngle ( const LCreal  newSweepAngle  )  [virtual]

sets the sweep angle

bool Eaagles::Instruments::AnalogDial::setRadius ( const LCreal  newR  )  [virtual]

sets the radius of the background

bool Eaagles::Instruments::AnalogDial::setMobile ( const bool  newM  )  [virtual]

sets the flag if we are moving around on the dial

bool Eaagles::Instruments::AnalogDial::setSlices ( const int  x  )  [virtual]

sets the number of slices to use while drawing

LCreal Eaagles::Instruments::AnalogDial::getStartAngle (  )  [inline]

gets the originAngle (angle we start drawing ticks from (degrees, default is 0))

LCreal Eaagles::Instruments::AnalogDial::getSweepAngle (  )  [inline]

gets the sweep angle (how far around the circle we sweep)

bool Eaagles::Instruments::AnalogDial::getMobile (  )  [inline]

Returns if we are moving around on the dial, or just sending the value down (to our components).

LCreal Eaagles::Instruments::AnalogDial::getRadius (  )  [inline]

Returns the radius of background.

int Eaagles::Instruments::AnalogDial::getSlices (  )  [inline]

Returns the number of slices to use while drawing.

bool Eaagles::Instruments::AnalogDial::setSlotOriginAngle ( const Basic::LcNumber *const  newAngle  )  [protected]

slot functions

bool Eaagles::Instruments::AnalogDial::setSlotMobile ( const Basic::LcNumber *const  newM  )  [protected]

bool Eaagles::Instruments::AnalogDial::setSlotSweepAngle ( const Basic::LcNumber *const  newSweepAngle  )  [protected]

bool Eaagles::Instruments::AnalogDial::setSlotRadius ( const Basic::LcNumber *const  newR  )  [protected]

bool Eaagles::Instruments::AnalogDial::setSlotSlices ( const Basic::LcNumber *const  x  )  [protected]

bool Eaagles::Instruments::AnalogDial::onEventSetRadiusAnalogDial ( const Basic::LcNumber *const  x  )  [private]

event function


Member Data Documentation

LCreal Eaagles::Instruments::AnalogDial::originAngle [private]

angle we start drawing ticks from (degrees, default is 0)

LCreal Eaagles::Instruments::AnalogDial::positionAngle [private]

our position (if we are being rotated)

LCreal Eaagles::Instruments::AnalogDial::sweepAngle [private]

how far around the circle we sweep

LCreal Eaagles::Instruments::AnalogDial::radius [private]

radius of our background

bool Eaagles::Instruments::AnalogDial::isMobile [private]

are we moving around on the dial, or just sending the value down (to our components)

int Eaagles::Instruments::AnalogDial::slices [private]

number of slices to use while drawing


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