#include <GLWTracker.h>
Public Member Functions | |
| GLWTracker (float x=0.0f, float y=0.0f, float w=0.0f, float range=0.0f) | |
| virtual | ~GLWTracker () |
| void | setHandler (GLWTrackerI *handler) |
| float | getCurrentX () |
| float | getCurrentY () |
| void | setCurrentX (float currentx) |
| void | setCurrentY (float currenty) |
| virtual void | mouseDown (int button, float x, float y, bool &skipRest) |
| virtual void | mouseUp (int button, float x, float y, bool &skipRest) |
| virtual void | mouseDrag (int button, float mx, float my, float x, float y, bool &skipRest) |
| REGISTER_CLASS_HEADER (GLWTracker) | |
Protected Attributes | |
| GLWTrackerI * | handler_ |
| bool | dragging_ |
| float | currentX_ |
| float | currentY_ |
| float | range_ |
Definition at line 32 of file GLWTracker.h.
| GLWTracker::GLWTracker | ( | float | x = 0.0f, |
|
| float | y = 0.0f, |
|||
| float | w = 0.0f, |
|||
| float | range = 0.0f | |||
| ) |
Definition at line 36 of file GLWTracker.cpp.
| GLWTracker::~GLWTracker | ( | ) | [virtual] |
Definition at line 44 of file GLWTracker.cpp.
| void GLWTracker::setHandler | ( | GLWTrackerI * | handler | ) | [inline] |
Definition at line 39 of file GLWTracker.h.
References handler_.
Referenced by GLWTankTracker::GLWTankTracker().
| float GLWTracker::getCurrentX | ( | ) | [inline] |
| float GLWTracker::getCurrentY | ( | ) | [inline] |
| void GLWTracker::setCurrentX | ( | float | currentx | ) | [inline] |
Definition at line 43 of file GLWTracker.h.
References currentX_.
Referenced by GLWTankTracker::draw().
| void GLWTracker::setCurrentY | ( | float | currenty | ) | [inline] |
Definition at line 44 of file GLWTracker.h.
References currentY_.
Referenced by GLWTankTracker::draw().
| void GLWTracker::mouseDown | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 49 of file GLWTracker.cpp.
References dragging_, GLWidget::h_, GLWidget::inBox(), GLWidget::w_, GLWidget::x_, and GLWidget::y_.
| void GLWTracker::mouseUp | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
| void GLWTracker::mouseDrag | ( | int | button, | |
| float | mx, | |||
| float | my, | |||
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 63 of file GLWTracker.cpp.
References GLWTrackerI::currentChanged(), currentX_, currentY_, dragging_, GLWidget::getId(), Keyboard::getKeyboardState(), handler_, OptionsDisplay::instance(), Keyboard::instance(), range_, and GLWidget::w_.
| GLWTracker::REGISTER_CLASS_HEADER | ( | GLWTracker | ) |
GLWTrackerI* GLWTracker::handler_ [protected] |
bool GLWTracker::dragging_ [protected] |
float GLWTracker::currentX_ [protected] |
Definition at line 55 of file GLWTracker.h.
Referenced by getCurrentX(), mouseDrag(), and setCurrentX().
float GLWTracker::currentY_ [protected] |
Definition at line 55 of file GLWTracker.h.
Referenced by getCurrentY(), mouseDrag(), and setCurrentY().
float GLWTracker::range_ [protected] |
1.5.3