Eaagles::BasicGL::Translator Class Reference

Inherits Eaagles::BasicGL::LcGraphic.

Inheritance diagram for Eaagles::BasicGL::Translator:

Inheritance graph
[legend]
Collaboration diagram for Eaagles::BasicGL::Translator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Translator ()
LCreal getXPos () const
LCreal getYPos () const
bool setXPos (const LCreal xPos)
bool setYPos (const LCreal yPos)
virtual void draw ()
virtual bool event (const int event, LcObject *const obj=0)

Private Member Functions

bool onUpdateX (const Basic::LcNumber *const newX)
bool onUpdateY (const Basic::LcNumber *const newY)

Private Attributes

LCreal myXPos
LCreal myYPos

Detailed Description

This is a basic graphic object which will translate any graphic
        given to it according to X and Y positioning.  Z is default to 0.0.
    Inputs:
         UPDATE_VALUE  -> moves x
         UPDATE_VALUE2 -> moves y
    


Constructor & Destructor Documentation

Eaagles::BasicGL::Translator::Translator (  ) 

Constructor. Initializes the x and y co-ordinate positions to 0.0.


Member Function Documentation

LCreal Eaagles::BasicGL::Translator::getXPos (  )  const [inline]

Returns the X position (world coord).

LCreal Eaagles::BasicGL::Translator::getYPos (  )  const [inline]

Returns the Y position (world coord).

bool Eaagles::BasicGL::Translator::setXPos ( const LCreal  xPos  ) 

Sets the X position (world coord).

bool Eaagles::BasicGL::Translator::setYPos ( const LCreal  yPos  ) 

Sets the Y position (world coord).

void Eaagles::BasicGL::Translator::draw (  )  [virtual]

LcGraphic interface. Draws the object(s).

Reimplemented from Eaagles::BasicGL::LcGraphic.

virtual bool Eaagles::BasicGL::Translator::event ( const int  event,
LcObject *const  obj = 0 
) [virtual]

LcComponent interface.

Reimplemented from Eaagles::BasicGL::LcGraphic.

bool Eaagles::BasicGL::Translator::onUpdateX ( const Basic::LcNumber *const  newX  )  [private]

Event function. Updates the x position in inches.

bool Eaagles::BasicGL::Translator::onUpdateY ( const Basic::LcNumber *const  newY  )  [private]

Event function. Updates the y position in inches.


Member Data Documentation

LCreal Eaagles::BasicGL::Translator::myXPos [private]

LCreal Eaagles::BasicGL::Translator::myYPos [private]


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