Inheritance diagram for Eaagles::BasicGL::Translator:


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 |
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
| Eaagles::BasicGL::Translator::Translator | ( | ) |
Constructor. Initializes the x and y co-ordinate positions to 0.0.
| 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] |
| virtual bool Eaagles::BasicGL::Translator::event | ( | const int | event, | |
| LcObject *const | obj = 0 | |||
| ) | [virtual] |
| 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.
LCreal Eaagles::BasicGL::Translator::myXPos [private] |
LCreal Eaagles::BasicGL::Translator::myYPos [private] |
1.5.0