TrackPhysicalObject Class Reference

#include <TrackPhysicalObject.h>

Inheritance diagram for TrackPhysicalObject:
GameObject

List of all members.

Public Member Functions

 TrackPhysicalObject (int _val, Ogre::Vector3 _pos, Track *_track)
 ~TrackPhysicalObject ()
TrackgetTrack () const
void setTrack (Track *_val)
int getPointID () const
void setPointID (const int &_val)
void resetCurrent ()
 Reset the ogre settings for this track segment.
void rebuildSegment ()
 Actually build the segment of track from a manualobject.
void calcAvRotation ()
 Calculate the maximum banking angle (from the dot product.).
void setTrackAvRotation (const Ogre::Radian &_val)
Ogre::Radian getTrackAvRotation () const
void setTrackAvDirection (const Ogre::Vector3 &_val)
Ogre::Vector3 getTrackAvDirection () const
void setTrackAvCross (const Ogre::Vector3 &_val)
Ogre::Vector3 getTrackAvCross () const
void setTrackAvUp (const Ogre::Vector3 &_val)
Ogre::Vector3 getTrackAvUp () const
void setLastDirection (const Ogre::Vector3 &_val)
Ogre::Vector3 getLastDirection () const
void setLastCross (const Ogre::Vector3 &_val)
Ogre::Vector3 getLastCross () const
void setLastUp (const Ogre::Vector3 &_val)
Ogre::Vector3 getLastUp () const
void setFirstDirection (const Ogre::Vector3 &_val)
Ogre::Vector3 getFirstDirection () const
void setFirstCross (const Ogre::Vector3 &_val)
Ogre::Vector3 getFirstCross () const
void setFirstUp (const Ogre::Vector3 &_val)
Ogre::Vector3 getFirstUp () const
void setPrevSec (TrackPhysicalObject *_val)
TrackPhysicalObjectgetPrevSec ()
void setNextSec (TrackPhysicalObject *_val)
TrackPhysicalObjectgetNextSec ()
Ogre::Real getTrackWidth () const
Ogre::ManualObject * getGroundManual () const
void setGroundManual (Ogre::ManualObject *_val)
Ogre::ManualObject * getLeftManual () const
void setLeftManual (Ogre::ManualObject *_val)
Ogre::ManualObject * getRightManual () const
void setRightManual (Ogre::ManualObject *_val)
void createPhysicalMesh ()
bool makePhysical ()
Ogre::MeshPtr getPhysicalMesh ()
void setAny ()
Ogre::StaticGeometry * getStaticGeometry ()
void tellTrackOfContact ()
void resetContactCheck ()

Protected Member Functions

void setID ()

Protected Attributes

int m_pointID
Trackm_track
TrackPhysicalObjectm_prevSec
TrackPhysicalObjectm_nextSec
Ogre::Vector3 m_lastDirection
Ogre::Vector3 m_lastUp
Ogre::Vector3 m_lastCross
Ogre::Vector3 m_firstDirection
Ogre::Vector3 m_firstUp
Ogre::Vector3 m_firstCross
Ogre::Vector3 m_trackAvDirection
Ogre::Vector3 m_trackAvUp
Ogre::Vector3 m_trackAvCross
Ogre::Radian m_trackAvRotation
Ogre::ManualObject * m_groundManual
Ogre::ManualObject * m_leftManual
Ogre::ManualObject * m_rightManual
Ogre::MeshPtr m_physicalMesh
Ogre::MeshPtr m_physicalLeft
Ogre::MeshPtr m_physicalRight
Ogre::Entity * m_leftEnt
Ogre::Entity * m_rightEnt
std::vector< Ogre::Vector3 > m_upVectors
Ogre::StaticGeometry * m_staticGeom
bool m_contactCheck

Static Protected Attributes

static int s_nextID = 0

Detailed Description

TrackPhysicalObject. The physical units that make up a track.

Definition at line 21 of file TrackPhysicalObject.h.


Constructor & Destructor Documentation

TrackPhysicalObject::TrackPhysicalObject ( int  _val,
Ogre::Vector3  _pos,
Track _track 
)

Definition at line 13 of file TrackPhysicalObject.cpp.

TrackPhysicalObject::~TrackPhysicalObject (  ) 

Definition at line 213 of file TrackPhysicalObject.cpp.


Member Function Documentation

void TrackPhysicalObject::calcAvRotation (  ) 

Calculate the maximum banking angle (from the dot product.).

Definition at line 487 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::createPhysicalMesh (  ) 

Definition at line 745 of file TrackPhysicalObject.cpp.

Ogre::Vector3 TrackPhysicalObject::getFirstCross (  )  const

Definition at line 663 of file TrackPhysicalObject.cpp.

Ogre::Vector3 TrackPhysicalObject::getFirstDirection (  )  const

Definition at line 653 of file TrackPhysicalObject.cpp.

Ogre::Vector3 TrackPhysicalObject::getFirstUp (  )  const

Definition at line 673 of file TrackPhysicalObject.cpp.

Ogre::ManualObject * TrackPhysicalObject::getGroundManual (  )  const

Definition at line 715 of file TrackPhysicalObject.cpp.

Ogre::Vector3 TrackPhysicalObject::getLastCross (  )  const

Definition at line 633 of file TrackPhysicalObject.cpp.

Ogre::Vector3 TrackPhysicalObject::getLastDirection (  )  const

Definition at line 623 of file TrackPhysicalObject.cpp.

Ogre::Vector3 TrackPhysicalObject::getLastUp (  )  const

Definition at line 643 of file TrackPhysicalObject.cpp.

Ogre::ManualObject * TrackPhysicalObject::getLeftManual (  )  const

Definition at line 725 of file TrackPhysicalObject.cpp.

TrackPhysicalObject * TrackPhysicalObject::getNextSec (  ) 

Definition at line 695 of file TrackPhysicalObject.cpp.

Ogre::MeshPtr TrackPhysicalObject::getPhysicalMesh (  ) 

Definition at line 908 of file TrackPhysicalObject.cpp.

int TrackPhysicalObject::getPointID (  )  const

Definition at line 705 of file TrackPhysicalObject.cpp.

TrackPhysicalObject * TrackPhysicalObject::getPrevSec (  ) 

Definition at line 684 of file TrackPhysicalObject.cpp.

Ogre::ManualObject * TrackPhysicalObject::getRightManual (  )  const

Definition at line 735 of file TrackPhysicalObject.cpp.

Ogre::StaticGeometry * TrackPhysicalObject::getStaticGeometry (  ) 

Definition at line 913 of file TrackPhysicalObject.cpp.

Track * TrackPhysicalObject::getTrack (  )  const

Definition at line 225 of file TrackPhysicalObject.cpp.

Ogre::Vector3 TrackPhysicalObject::getTrackAvCross (  )  const

Definition at line 603 of file TrackPhysicalObject.cpp.

Ogre::Vector3 TrackPhysicalObject::getTrackAvDirection (  )  const

Definition at line 593 of file TrackPhysicalObject.cpp.

Ogre::Radian TrackPhysicalObject::getTrackAvRotation (  )  const

Definition at line 582 of file TrackPhysicalObject.cpp.

Ogre::Vector3 TrackPhysicalObject::getTrackAvUp (  )  const

Definition at line 613 of file TrackPhysicalObject.cpp.

Ogre::Real TrackPhysicalObject::getTrackWidth (  )  const

Definition at line 700 of file TrackPhysicalObject.cpp.

bool TrackPhysicalObject::makePhysical (  )  [virtual]

Reimplemented from GameObject.

Definition at line 826 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::rebuildSegment (  ) 

Actually build the segment of track from a manualobject.

Definition at line 242 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::resetContactCheck (  ) 

Definition at line 927 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::resetCurrent (  ) 

Reset the ogre settings for this track segment.

Definition at line 235 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setAny (  )  [virtual]

Reimplemented from GameObject.

Definition at line 899 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setFirstCross ( const Ogre::Vector3 &  _val  ) 

Definition at line 658 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setFirstDirection ( const Ogre::Vector3 &  _val  ) 

Definition at line 648 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setFirstUp ( const Ogre::Vector3 &  _val  ) 

Definition at line 668 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setGroundManual ( Ogre::ManualObject *  _val  ) 

Definition at line 720 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setID (  )  [protected, virtual]

Reimplemented from GameObject.

Definition at line 7 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setLastCross ( const Ogre::Vector3 &  _val  ) 

Definition at line 628 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setLastDirection ( const Ogre::Vector3 &  _val  ) 

Definition at line 618 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setLastUp ( const Ogre::Vector3 &  _val  ) 

Definition at line 638 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setLeftManual ( Ogre::ManualObject *  _val  ) 

Definition at line 730 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setNextSec ( TrackPhysicalObject _val  ) 

Definition at line 689 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setPointID ( const int &  _val  ) 

Definition at line 710 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setPrevSec ( TrackPhysicalObject _val  ) 

Definition at line 678 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setRightManual ( Ogre::ManualObject *  _val  ) 

Definition at line 740 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setTrack ( Track _val  ) 

Definition at line 230 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setTrackAvCross ( const Ogre::Vector3 &  _val  ) 

Definition at line 598 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setTrackAvDirection ( const Ogre::Vector3 &  _val  ) 

Definition at line 588 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setTrackAvRotation ( const Ogre::Radian &  _val  ) 

Definition at line 577 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::setTrackAvUp ( const Ogre::Vector3 &  _val  ) 

Definition at line 608 of file TrackPhysicalObject.cpp.

void TrackPhysicalObject::tellTrackOfContact (  ) 

Definition at line 918 of file TrackPhysicalObject.cpp.


Member Data Documentation

Definition at line 144 of file TrackPhysicalObject.h.

Ogre::Vector3 TrackPhysicalObject::m_firstCross [protected]

Definition at line 121 of file TrackPhysicalObject.h.

Ogre::Vector3 TrackPhysicalObject::m_firstDirection [protected]

Definition at line 119 of file TrackPhysicalObject.h.

Ogre::Vector3 TrackPhysicalObject::m_firstUp [protected]

Definition at line 120 of file TrackPhysicalObject.h.

Ogre::ManualObject* TrackPhysicalObject::m_groundManual [protected]

Definition at line 129 of file TrackPhysicalObject.h.

Ogre::Vector3 TrackPhysicalObject::m_lastCross [protected]

Definition at line 117 of file TrackPhysicalObject.h.

Ogre::Vector3 TrackPhysicalObject::m_lastDirection [protected]

Definition at line 115 of file TrackPhysicalObject.h.

Ogre::Vector3 TrackPhysicalObject::m_lastUp [protected]

Definition at line 116 of file TrackPhysicalObject.h.

Ogre::Entity* TrackPhysicalObject::m_leftEnt [protected]

Definition at line 137 of file TrackPhysicalObject.h.

Ogre::ManualObject* TrackPhysicalObject::m_leftManual [protected]

Definition at line 130 of file TrackPhysicalObject.h.

Definition at line 113 of file TrackPhysicalObject.h.

Ogre::MeshPtr TrackPhysicalObject::m_physicalLeft [protected]

Definition at line 134 of file TrackPhysicalObject.h.

Ogre::MeshPtr TrackPhysicalObject::m_physicalMesh [protected]

Definition at line 133 of file TrackPhysicalObject.h.

Ogre::MeshPtr TrackPhysicalObject::m_physicalRight [protected]

Definition at line 135 of file TrackPhysicalObject.h.

Definition at line 108 of file TrackPhysicalObject.h.

Definition at line 112 of file TrackPhysicalObject.h.

Ogre::Entity* TrackPhysicalObject::m_rightEnt [protected]

Definition at line 138 of file TrackPhysicalObject.h.

Ogre::ManualObject* TrackPhysicalObject::m_rightManual [protected]

Definition at line 131 of file TrackPhysicalObject.h.

Ogre::StaticGeometry* TrackPhysicalObject::m_staticGeom [protected]

Definition at line 142 of file TrackPhysicalObject.h.

Definition at line 110 of file TrackPhysicalObject.h.

Ogre::Vector3 TrackPhysicalObject::m_trackAvCross [protected]

Definition at line 125 of file TrackPhysicalObject.h.

Ogre::Vector3 TrackPhysicalObject::m_trackAvDirection [protected]

Definition at line 123 of file TrackPhysicalObject.h.

Ogre::Radian TrackPhysicalObject::m_trackAvRotation [protected]

Definition at line 127 of file TrackPhysicalObject.h.

Ogre::Vector3 TrackPhysicalObject::m_trackAvUp [protected]

Definition at line 124 of file TrackPhysicalObject.h.

std::vector<Ogre::Vector3> TrackPhysicalObject::m_upVectors [protected]

Definition at line 140 of file TrackPhysicalObject.h.

int TrackPhysicalObject::s_nextID = 0 [static, protected]

Reimplemented from GameObject.

Definition at line 106 of file TrackPhysicalObject.h.


The documentation for this class was generated from the following files:
Generated on Fri Aug 20 08:28:49 2010 for VecTRacer by  doxygen 1.6.3