torcs - 1.2.2

cGrPerspCamera Class Reference

#include <grcam.h>

Inheritance diagram for cGrPerspCamera:

Inheritance graph
[legend]
Collaboration diagram for cGrPerspCamera:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 cGrPerspCamera (class cGrScreen *myscreen, int id, int drawCurr, int drawDrv, int drawBG, int mirrorAllowed, float myfovy, float myfovymin, float myfovymax, float myfnear, float myffar=1500.0, float myfogstart=1400.0, float myfogend=1500.0)
virtual void update (tCarElt *car, tSituation *s)=0
void setProjection (void)
void setModelView (void)
void loadDefaults (char *attr)
void setZoom (int cmd)
float getLODFactor (float x, float y, float z)
float getFogStart (void)
float getFogEnd (void)
cGrPerspCameranext (void)
void limitFov (void)
void onSelect (tCarElt *car, tSituation *s)
 cGrPerspCamera (class cGrScreen *myscreen, int id, int drawCurr, int drawDrv, int drawBG, int mirrorAllowed, float myfovy, float myfovymin, float myfovymax, float myfnear, float myffar=1500.0, float myfogstart=1400.0, float myfogend=1500.0)
virtual void update (tCarElt *car, tSituation *s)=0
void setProjection (void)
void setModelView (void)
void loadDefaults (char *attr)
void setZoom (int cmd)
float getLODFactor (float x, float y, float z)
float getFogStart (void)
float getFogEnd (void)
cGrPerspCameranext (void)
void limitFov (void)
void onSelect (tCarElt *car, tSituation *s)

Protected Attributes

float fovy
float fovymin
float fovymax
float fovydflt
float fnear
float ffar
float fogstart
float fogend

Constructor & Destructor Documentation

cGrPerspCamera::cGrPerspCamera class cGrScreen myscreen,
int  id,
int  drawCurr,
int  drawDrv,
int  drawBG,
int  mirrorAllowed,
float  myfovy,
float  myfovymin,
float  myfovymax,
float  myfnear,
float  myffar = 1500.0,
float  myfogstart = 1400.0,
float  myfogend = 1500.0
 

cGrPerspCamera::cGrPerspCamera class cGrScreen myscreen,
int  id,
int  drawCurr,
int  drawDrv,
int  drawBG,
int  mirrorAllowed,
float  myfovy,
float  myfovymin,
float  myfovymax,
float  myfnear,
float  myffar = 1500.0,
float  myfogstart = 1400.0,
float  myfogend = 1500.0
 


Member Function Documentation

float cGrPerspCamera::getFogEnd void   )  [inline]
 

float cGrPerspCamera::getFogEnd void   )  [inline]
 

float cGrPerspCamera::getFogStart void   )  [inline]
 

float cGrPerspCamera::getFogStart void   )  [inline]
 

float cGrPerspCamera::getLODFactor float  x,
float  y,
float  z
[virtual]
 

Implements cGrCamera.

float cGrPerspCamera::getLODFactor float  x,
float  y,
float  z
[virtual]
 

Implements cGrCamera.

Here is the call graph for this function:

void cGrPerspCamera::limitFov void   )  [inline]
 

Reimplemented in cGrCarCamInside, cGrCarCamInsideFixedCar, cGrCarCamBehind, cGrCarCamBehind2, cGrCarCamFront, cGrCarCamSide, cGrCarCamUp, cGrCarCamCenter, cGrCarCamLookAt, cGrCarCamRoadNoZoom, cGrCarCamRoadZoom, cGrBackgroundCam, cGrCarCamMirror, cGrCarCamInside, cGrCarCamInsideFixedCar, cGrCarCamBehind, cGrCarCamBehind2, cGrCarCamFront, cGrCarCamSide, cGrCarCamUp, cGrCarCamCenter, cGrCarCamLookAt, cGrCarCamRoadNoZoom, cGrCarCamRoadZoom, cGrBackgroundCam, and cGrCarCamMirror.

void cGrPerspCamera::limitFov void   )  [inline]
 

Reimplemented in cGrCarCamInside, cGrCarCamInsideFixedCar, cGrCarCamBehind, cGrCarCamBehind2, cGrCarCamFront, cGrCarCamSide, cGrCarCamUp, cGrCarCamCenter, cGrCarCamLookAt, cGrCarCamRoadNoZoom, cGrCarCamRoadZoom, cGrBackgroundCam, cGrCarCamMirror, cGrCarCamInside, cGrCarCamInsideFixedCar, cGrCarCamBehind, cGrCarCamBehind2, cGrCarCamFront, cGrCarCamSide, cGrCarCamUp, cGrCarCamCenter, cGrCarCamLookAt, cGrCarCamRoadNoZoom, cGrCarCamRoadZoom, cGrBackgroundCam, and cGrCarCamMirror.

void cGrPerspCamera::loadDefaults char *  attr  )  [virtual]
 

Implements cGrCamera.

Reimplemented in cGrCarCamCenter, cGrCarCamRoadZoom, cGrCarCamCenter, and cGrCarCamRoadZoom.

void cGrPerspCamera::loadDefaults char *  attr  )  [virtual]
 

Implements cGrCamera.

Reimplemented in cGrCarCamCenter, cGrCarCamRoadZoom, cGrCarCamCenter, and cGrCarCamRoadZoom.

Here is the call graph for this function:

cGrPerspCamera* cGrPerspCamera::next void   )  [inline]
 

Reimplemented from cGrCamera.

Here is the call graph for this function:

cGrPerspCamera* cGrPerspCamera::next void   )  [inline]
 

Reimplemented from cGrCamera.

Here is the call graph for this function:

void cGrPerspCamera::onSelect tCarElt car,
tSituation s
[inline, virtual]
 

Implements cGrCamera.

Reimplemented in cGrCarCamRoadFly, and cGrCarCamRoadFly.

void cGrPerspCamera::onSelect tCarElt car,
tSituation s
[inline, virtual]
 

Implements cGrCamera.

Reimplemented in cGrCarCamRoadFly, and cGrCarCamRoadFly.

void cGrPerspCamera::setModelView void   )  [virtual]
 

Implements cGrCamera.

void cGrPerspCamera::setModelView void   )  [virtual]
 

Implements cGrCamera.

void cGrPerspCamera::setProjection void   )  [virtual]
 

Implements cGrCamera.

void cGrPerspCamera::setProjection void   )  [virtual]
 

Implements cGrCamera.

Here is the call graph for this function:

void cGrPerspCamera::setZoom int  cmd  )  [virtual]
 

Implements cGrCamera.

Reimplemented in cGrCarCamCenter, cGrCarCamRoadZoom, cGrCarCamCenter, and cGrCarCamRoadZoom.

void cGrPerspCamera::setZoom int  cmd  )  [virtual]
 

Implements cGrCamera.

Reimplemented in cGrCarCamCenter, cGrCarCamRoadZoom, cGrCarCamCenter, and cGrCarCamRoadZoom.

Here is the call graph for this function:

virtual void cGrPerspCamera::update tCarElt car,
tSituation s
[pure virtual]
 

Implements cGrCamera.

Implemented in cGrCarCamInside, cGrCarCamInsideFixedCar, cGrCarCamBehind, cGrCarCamBehind2, cGrCarCamFront, cGrCarCamSide, cGrCarCamUp, cGrCarCamCenter, cGrCarCamLookAt, cGrCarCamRoadNoZoom, cGrCarCamRoadFly, cGrCarCamRoadZoom, cGrCarCamRoadZoomTVD, cGrBackgroundCam, cGrCarCamMirror, cGrCarCamInside, cGrCarCamInsideFixedCar, cGrCarCamBehind, cGrCarCamBehind2, cGrCarCamFront, cGrCarCamSide, cGrCarCamUp, cGrCarCamCenter, cGrCarCamLookAt, cGrCarCamRoadNoZoom, cGrCarCamRoadFly, cGrCarCamRoadZoom, cGrCarCamRoadZoomTVD, cGrBackgroundCam, and cGrCarCamMirror.

virtual void cGrPerspCamera::update tCarElt car,
tSituation s
[pure virtual]
 

Implements cGrCamera.

Implemented in cGrCarCamInside, cGrCarCamInsideFixedCar, cGrCarCamBehind, cGrCarCamBehind2, cGrCarCamFront, cGrCarCamSide, cGrCarCamUp, cGrCarCamCenter, cGrCarCamLookAt, cGrCarCamRoadNoZoom, cGrCarCamRoadFly, cGrCarCamRoadZoom, cGrCarCamRoadZoomTVD, cGrBackgroundCam, cGrCarCamMirror, cGrCarCamInside, cGrCarCamInsideFixedCar, cGrCarCamBehind, cGrCarCamBehind2, cGrCarCamFront, cGrCarCamSide, cGrCarCamUp, cGrCarCamCenter, cGrCarCamLookAt, cGrCarCamRoadNoZoom, cGrCarCamRoadFly, cGrCarCamRoadZoom, cGrCarCamRoadZoomTVD, cGrBackgroundCam, and cGrCarCamMirror.


Member Data Documentation

float cGrPerspCamera::ffar [protected]
 

float cGrPerspCamera::fnear [protected]
 

float cGrPerspCamera::fogend [protected]
 

float cGrPerspCamera::fogstart [protected]
 

float cGrPerspCamera::fovy [protected]
 

float cGrPerspCamera::fovydflt [protected]
 

float cGrPerspCamera::fovymax [protected]
 

float cGrPerspCamera::fovymin [protected]
 


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