#include <track.h>
Collaboration diagram for TRACK:

Public Member Functions | |
| TRACK () | |
| ~TRACK () | |
| ROADSTRIP * | AddNewRoad () |
| void | VisualizeRoads (bool wireframe, bool fill, ROADSTRIP *selectedroad) |
| void | ClearRoads () |
| void | Write (string trackname) |
| void | Load (string trackname) |
| void | Delete (ROADSTRIP *striptodel) |
| double | Elevation (VERTEX origin) |
| double | Elevation (VERTEX origin, VERTEX &normal) |
| double | ElevationSeg (VERTEX origin, VERTEX &normal, float seglen) |
| double | ElevationSeg (VERTEX origin, VERTEX &normal, float seglen, BEZIER *&collidepatch, OBJECTNODE *&colnode) |
| bool | Collide (VERTEX origin, VERTEX direction, float seglen, VERTEX &outtri, bool closest, VERTEX &normal, float &dist) |
| bool | CollideD (VERTEXD origin, VERTEXD direction, double seglen, VERTEXD &outtri, bool closest, VERTEXD &normal, double &dist) |
| bool | CollideRoads (VERTEX origin, VERTEX direction, VERTEX &outtri, bool closest, ROADSTRIP *&collideroad, BEZIER *&collidepatch, VERTEX &normal) |
| bool | CollideModel (VERTEX *modelverts, int numfaces, AABB bbox, VERTEX &outtri, bool closest, VERTEX &normal, float &depth) |
| void | SetStart (VERTEX newloc) |
| VERTEX | GetStart () |
| BEZIER * | GetPatch (VERTEX corners[4]) |
| QUATERNION | GetStartOrientation () |
| void | SetStartOrientation (QUATERNION newquat) |
| bool | GetCullFaces () |
| BEZIER * | GetLapSequence (int idx) |
| int | NumSectors () |
| void | GetFrictionParams (float &f1out, float &f2out) |
Private Member Functions | |
| int | NumRoads () |
| BEZIER * | GetBezier (int ridx, int pidx) |
Private Attributes | |
| ROADSTRIPNODE * | roads |
| VERTEX | startloc |
| double | lastelev |
| QUATERNION | startquat |
| bool | cullfaces |
| vector< BEZIER * > | lapsequence |
| float | friction1 |
| float | friction2 |
Definition at line 96 of file track.h.
|
|
|
|
|
Definition at line 729 of file track.cpp. References ClearRoads(). |
|
|
Definition at line 744 of file track.cpp. References ROADSTRIPNODE::next, NULL, ROADSTRIPNODE::road, and roads. Referenced by Load(). |
|
|
Definition at line 734 of file track.cpp. References ROADSTRIPNODE::next, NULL, and roads. Referenced by VAMOSWORLD::DeInit(), Load(), and ~TRACK(). |
|
||||||||||||||||||||||||||||||||
|
Definition at line 1030 of file track.cpp. References OBJECTS::Collide(), VERTEX::DebugPrint(), VERTEX::equals(), VERTEX::nan(), VERTEX::normalize(), objects, and VERTEX::Set(). |
|
||||||||||||||||||||||||||||||||
|
Definition at line 1104 of file track.cpp. References OBJECTS::CollideD(), VERTEXD::DebugPrint(), VERTEXD::nan(), VERTEXD::normalize(), objects, VERTEXD::Set(), VERTEXD::x, VERTEXD::y, and VERTEXD::z. |
|
||||||||||||||||||||||||||||||||
|
Definition at line 1323 of file track.cpp. References OBJECTS::CollideModel(), and objects. |
|
||||||||||||||||||||||||||||||||
|
Definition at line 986 of file track.cpp. References ROADSTRIP::Collide(), ROADSTRIPNODE::next, NULL, ROADSTRIPNODE::road, and roads. Referenced by LoadWorld(). |
|
|
Definition at line 941 of file track.cpp. References ROADSTRIPNODE::next, NULL, ROADSTRIPNODE::road, and roads. |
|
||||||||||||
|
Definition at line 1176 of file track.cpp. References ElevationSeg(), and VERTEX::y. |
|
|
|
|
||||||||||||||||||||||||
|
Definition at line 1189 of file track.cpp. References VERTEX::nan(). |
|
||||||||||||||||
|
Definition at line 1182 of file track.cpp. Referenced by Elevation(). |
|
||||||||||||
|
Definition at line 1354 of file track.cpp. References ROADSTRIPNODE::next, BEZIERNODE::next, NULL, BEZIERNODE::patch, ROADSTRIP::patchnodes, Vamos_Geometry::pi, ROADSTRIPNODE::road, and roads. |
|
|
Definition at line 134 of file track.h. References cullfaces. |
|
||||||||||||
|
|
|
|
Definition at line 1387 of file track.cpp. References lapsequence, NULL, and NumSectors(). Referenced by VAMOSWORLD::Update(). |
|
|
Definition at line 1328 of file track.cpp. References VERTEX::equals(), ROADSTRIP::GetFirstNode(), ROADSTRIPNODE::next, BEZIERNODE::next, NULL, BEZIERNODE::patch, BEZIER::points, ROADSTRIPNODE::road, and roads. Referenced by LoadWorld(). |
|
|
Definition at line 130 of file track.h. References startloc. Referenced by VAMOSWORLD::Init(), Vamos_World::World::reset(), SelectCar(), and Write(). |
|
|
Definition at line 132 of file track.h. References startquat. Referenced by Vamos_World::World::reset(). |
|
|
Definition at line 863 of file track.cpp. References AddNewRoad(), ClearRoads(), cullfaces, SETTINGS::GetDataDir(), CONFIGFILE::GetParam(), CONFIGFILE::Load(), ROADSTRIP::ReadFrom(), VERTEX::Set(), SetStart(), SetStartOrientation(), settings, QUATERNION::w, VERTEX::x, QUATERNION::x, VERTEX::y, QUATERNION::y, VERTEX::z, and QUATERNION::z. Referenced by LoadWorld(). |
|
|
Definition at line 848 of file track.cpp. References ROADSTRIPNODE::next, NULL, and roads. Referenced by Write(). |
|
|
Definition at line 136 of file track.h. References lapsequence. Referenced by GetLapSequence(), and VAMOSWORLD::Update(). |
|
|
Definition at line 129 of file track.h. References startloc. Referenced by Load(). |
|
|
Definition at line 133 of file track.h. References startquat. Referenced by Load(). |
|
||||||||||||||||
|
Definition at line 781 of file track.cpp. References ROADSTRIPNODE::next, NULL, ROADSTRIPNODE::road, roads, ROADSTRIP::Visualize(), VERTEX::y, VERTEX::z, and VERTEX::zero(). |
|
|
Definition at line 829 of file track.cpp. References SETTINGS::GetDataDir(), GetStart(), ROADSTRIPNODE::next, NULL, NumRoads(), ROADSTRIPNODE::road, roads, settings, ROADSTRIP::WriteTo(), VERTEX::x, VERTEX::y, and VERTEX::z. |
|
|
Definition at line 104 of file track.h. Referenced by GetCullFaces(), and Load(). |
|
|
Definition at line 107 of file track.h. Referenced by GetFrictionParams(). |
|
|
Definition at line 108 of file track.h. Referenced by GetFrictionParams(). |
|
|
Definition at line 105 of file track.h. Referenced by GetLapSequence(), and NumSectors(). |
|
|
Definition at line 102 of file track.h. Referenced by TRACK(). |
|
|
Definition at line 99 of file track.h. Referenced by AddNewRoad(), ClearRoads(), CollideRoads(), Delete(), GetBezier(), GetPatch(), NumRoads(), TRACK(), VisualizeRoads(), and Write(). |
|
|
Definition at line 101 of file track.h. Referenced by GetStart(), and SetStart(). |
|
|
Definition at line 103 of file track.h. Referenced by GetStartOrientation(), and SetStartOrientation(). |
1.4.6