torcs - 1.2.2

cGrTrackMap Class Reference

#include <grtrackmap.h>

List of all members.

Public Member Functions

 cGrTrackMap ()
 ~cGrTrackMap ()
void selectTrackMap ()
void display (tCarElt *currentCar, tSituation *situation, int Winx, int Winy, int Winw, int Winh)
void setViewMode (int vm)
int getViewMode ()
int getDefaultViewMode ()
 cGrTrackMap ()
 ~cGrTrackMap ()
void selectTrackMap ()
void display (tCarElt *currentCar, tSituation *situation, int Winx, int Winy, int Winw, int Winh)
void setViewMode (int vm)
int getViewMode ()
int getDefaultViewMode ()

Private Member Functions

void drawTrackNormal (int x, int y)
void drawTrackPanning (int Winx, int Winy, int Winw, int Winh, tCarElt *currentCar, tSituation *situation)
void drawTrackPanningAligned (int Winx, int Winy, int Winw, int Winh, tCarElt *currentCar, tSituation *s)
void drawCar (tCarElt *currentCar, GLfloat *color, int x, int y)
void drawCars (tCarElt *currentCar, tSituation *s, int x, int y)
void initColors ()
void checkAndSetMinimum (float &currentmin, float &value)
void checkAndSetMaximum (float &currentmax, float &value)
void drawTrackNormal (int x, int y)
void drawTrackPanning (int Winx, int Winy, int Winw, int Winh, tCarElt *currentCar, tSituation *situation)
void drawTrackPanningAligned (int Winx, int Winy, int Winw, int Winh, tCarElt *currentCar, tSituation *s)
void drawCar (tCarElt *currentCar, GLfloat *color, int x, int y)
void drawCars (tCarElt *currentCar, tSituation *s, int x, int y)
void initColors ()
void checkAndSetMinimum (float &currentmin, float &value)
void checkAndSetMaximum (float &currentmax, float &value)

Private Attributes

int viewmode

Static Private Attributes

const float RESOLUTION = 5.0
const float MINLINEWIDTH = 5.0
const float MAXLINEWIDTH = 20.0
bool isinitalized = false
GLuint mapTexture
GLuint cardot
float track_min_x
float track_max_x
float track_min_y
float track_max_y
float track_width
float track_height
float track_x_ratio
float track_y_ratio
int map_x
int map_y
int map_size
float ratio
GLfloat currentCarColor [4]
GLfloat aheadCarColor [4]
GLfloat behindCarColor [4]


Constructor & Destructor Documentation

cGrTrackMap::cGrTrackMap  ) 
 

Here is the call graph for this function:

cGrTrackMap::~cGrTrackMap  ) 
 

cGrTrackMap::cGrTrackMap  ) 
 

cGrTrackMap::~cGrTrackMap  ) 
 


Member Function Documentation

void cGrTrackMap::checkAndSetMaximum float &  currentmax,
float &  value
[private]
 

void cGrTrackMap::checkAndSetMaximum float &  currentmax,
float &  value
[inline, private]
 

void cGrTrackMap::checkAndSetMinimum float &  currentmin,
float &  value
[private]
 

void cGrTrackMap::checkAndSetMinimum float &  currentmin,
float &  value
[inline, private]
 

void cGrTrackMap::display tCarElt currentCar,
tSituation situation,
int  Winx,
int  Winy,
int  Winw,
int  Winh
 

void cGrTrackMap::display tCarElt currentCar,
tSituation situation,
int  Winx,
int  Winy,
int  Winw,
int  Winh
 

Here is the call graph for this function:

void cGrTrackMap::drawCar tCarElt currentCar,
GLfloat *  color,
int  x,
int  y
[private]
 

void cGrTrackMap::drawCar tCarElt currentCar,
GLfloat *  color,
int  x,
int  y
[private]
 

void cGrTrackMap::drawCars tCarElt currentCar,
tSituation s,
int  x,
int  y
[private]
 

void cGrTrackMap::drawCars tCarElt currentCar,
tSituation s,
int  x,
int  y
[private]
 

Here is the call graph for this function:

void cGrTrackMap::drawTrackNormal int  x,
int  y
[private]
 

void cGrTrackMap::drawTrackNormal int  x,
int  y
[private]
 

void cGrTrackMap::drawTrackPanning int  Winx,
int  Winy,
int  Winw,
int  Winh,
tCarElt currentCar,
tSituation situation
[private]
 

void cGrTrackMap::drawTrackPanning int  Winx,
int  Winy,
int  Winw,
int  Winh,
tCarElt currentCar,
tSituation situation
[private]
 

void cGrTrackMap::drawTrackPanningAligned int  Winx,
int  Winy,
int  Winw,
int  Winh,
tCarElt currentCar,
tSituation s
[private]
 

void cGrTrackMap::drawTrackPanningAligned int  Winx,
int  Winy,
int  Winw,
int  Winh,
tCarElt currentCar,
tSituation s
[private]
 

int cGrTrackMap::getDefaultViewMode  ) 
 

int cGrTrackMap::getDefaultViewMode  ) 
 

int cGrTrackMap::getViewMode  ) 
 

int cGrTrackMap::getViewMode  ) 
 

void cGrTrackMap::initColors  )  [private]
 

void cGrTrackMap::initColors  )  [private]
 

void cGrTrackMap::selectTrackMap  ) 
 

void cGrTrackMap::selectTrackMap  ) 
 

void cGrTrackMap::setViewMode int  vm  ) 
 

void cGrTrackMap::setViewMode int  vm  ) 
 


Member Data Documentation

GLfloat cGrTrackMap::aheadCarColor [static, private]
 

GLfloat cGrTrackMap::behindCarColor [static, private]
 

GLuint cGrTrackMap::cardot [static, private]
 

GLfloat cGrTrackMap::currentCarColor [static, private]
 

bool cGrTrackMap::isinitalized = false [static, private]
 

int cGrTrackMap::map_size [static, private]
 

int cGrTrackMap::map_x [static, private]
 

int cGrTrackMap::map_y [static, private]
 

GLuint cGrTrackMap::mapTexture [static, private]
 

const float cGrTrackMap::MAXLINEWIDTH = 20.0 [static, private]
 

const float cGrTrackMap::MINLINEWIDTH = 5.0 [static, private]
 

float cGrTrackMap::ratio [static, private]
 

const float cGrTrackMap::RESOLUTION = 5.0 [static, private]
 

float cGrTrackMap::track_height [static, private]
 

float cGrTrackMap::track_max_x [static, private]
 

float cGrTrackMap::track_max_y [static, private]
 

float cGrTrackMap::track_min_x [static, private]
 

float cGrTrackMap::track_min_y [static, private]
 

float cGrTrackMap::track_width [static, private]
 

float cGrTrackMap::track_x_ratio [static, private]
 

float cGrTrackMap::track_y_ratio [static, private]
 

int cGrTrackMap::viewmode [private]
 


The documentation for this class was generated from the following files:
Generated at Thu Feb 26 21:54:06 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.