#include <TrackControlObject.h>
Public Member Functions | |
TrackControlObject (int _val, Ogre::Vector3 _pos, Track *_track) | |
~TrackControlObject () | |
bool | move (Ogre::Real _time) |
Perform movement calculations. Generally overridden in inherited classes. | |
int | getPointID () const |
void | setPointID (const int &_val) |
TrackControlObject * | getLink () const |
void | setLink (TrackControlObject *_val) |
Track * | getTrack () const |
void | setTrack (Track *_val) |
Ogre::Vector3 | getInitialPosition () const |
void | setInitialPosition (Ogre::Vector3 &_val) |
Ogre::Real | getControlRadius () const |
Ogre::Real | getControlRadiusSquared () const |
void | setControlRadius (Ogre::Real &_val) |
Protected Member Functions | |
void | setID () |
Protected Attributes | |
int | m_pointID |
TrackControlObject * | m_link |
Track * | m_track |
Ogre::Vector3 | m_initialPosition |
Ogre::Real | m_controlRadius |
Static Protected Attributes | |
static int | s_nextID = 0 |
TrackControlObject. Essentially, a wrapper to allow easy manipulation of the control points of a track.
Definition at line 20 of file TrackControlObject.h.
TrackControlObject::TrackControlObject | ( | int | _val, | |
Ogre::Vector3 | _pos, | |||
Track * | _track | |||
) |
Definition at line 12 of file TrackControlObject.cpp.
TrackControlObject::~TrackControlObject | ( | ) | [inline] |
Definition at line 25 of file TrackControlObject.h.
Ogre::Real TrackControlObject::getControlRadius | ( | ) | const |
Definition at line 104 of file TrackControlObject.cpp.
Ogre::Real TrackControlObject::getControlRadiusSquared | ( | ) | const |
Definition at line 109 of file TrackControlObject.cpp.
Ogre::Vector3 TrackControlObject::getInitialPosition | ( | ) | const |
Definition at line 94 of file TrackControlObject.cpp.
TrackControlObject * TrackControlObject::getLink | ( | ) | const |
Definition at line 47 of file TrackControlObject.cpp.
int TrackControlObject::getPointID | ( | ) | const |
Definition at line 37 of file TrackControlObject.cpp.
Track * TrackControlObject::getTrack | ( | ) | const |
Definition at line 84 of file TrackControlObject.cpp.
bool TrackControlObject::move | ( | Ogre::Real | _time | ) | [virtual] |
Perform movement calculations. Generally overridden in inherited classes.
Reimplemented from GameObject.
Definition at line 57 of file TrackControlObject.cpp.
void TrackControlObject::setControlRadius | ( | Ogre::Real & | _val | ) |
Definition at line 114 of file TrackControlObject.cpp.
void TrackControlObject::setID | ( | ) | [protected, virtual] |
Reimplemented from GameObject.
Definition at line 6 of file TrackControlObject.cpp.
void TrackControlObject::setInitialPosition | ( | Ogre::Vector3 & | _val | ) |
Definition at line 99 of file TrackControlObject.cpp.
void TrackControlObject::setLink | ( | TrackControlObject * | _val | ) |
Definition at line 52 of file TrackControlObject.cpp.
void TrackControlObject::setPointID | ( | const int & | _val | ) |
Definition at line 42 of file TrackControlObject.cpp.
void TrackControlObject::setTrack | ( | Track * | _val | ) |
Definition at line 89 of file TrackControlObject.cpp.
Ogre::Real TrackControlObject::m_controlRadius [protected] |
Definition at line 60 of file TrackControlObject.h.
Ogre::Vector3 TrackControlObject::m_initialPosition [protected] |
Definition at line 59 of file TrackControlObject.h.
TrackControlObject* TrackControlObject::m_link [protected] |
Definition at line 55 of file TrackControlObject.h.
int TrackControlObject::m_pointID [protected] |
Definition at line 53 of file TrackControlObject.h.
Track* TrackControlObject::m_track [protected] |
Definition at line 57 of file TrackControlObject.h.
int TrackControlObject::s_nextID = 0 [static, protected] |
Reimplemented from SelectableObject.
Definition at line 51 of file TrackControlObject.h.