GLWTracker Class Reference

#include <GLWTracker.h>

Inheritance diagram for GLWTracker:

GLWidget MetaClass GLWTankTracker

List of all members.

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

GLWTrackerIhandler_
bool dragging_
float currentX_
float currentY_
float range_


Detailed Description

Definition at line 32 of file GLWTracker.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void GLWTracker::setHandler ( GLWTrackerI handler  )  [inline]

Definition at line 39 of file GLWTracker.h.

References handler_.

Referenced by GLWTankTracker::GLWTankTracker().

float GLWTracker::getCurrentX (  )  [inline]

Definition at line 41 of file GLWTracker.h.

References currentX_.

float GLWTracker::getCurrentY (  )  [inline]

Definition at line 42 of file GLWTracker.h.

References currentY_.

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]

Reimplemented from GLWidget.

Definition at line 58 of file GLWTracker.cpp.

References dragging_.

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   ) 


Member Data Documentation

GLWTrackerI* GLWTracker::handler_ [protected]

Definition at line 53 of file GLWTracker.h.

Referenced by mouseDrag(), and setHandler().

bool GLWTracker::dragging_ [protected]

Definition at line 54 of file GLWTracker.h.

Referenced by mouseDown(), mouseDrag(), and mouseUp().

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]

Definition at line 56 of file GLWTracker.h.

Referenced by mouseDrag().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:03 2009 for Scorched3D by  doxygen 1.5.3