torcs - 1.2.2

src/modules/simu/simuv2.sav/SOLID-2.0/src/C-api.cpp File Reference

#include <SOLID/solid.h>
#include <algorithm>
#include "Box.h"
#include "Cone.h"
#include "Cylinder.h"
#include "Sphere.h"
#include "Complex.h"
#include "Encounter.h"
#include "Object.h"
#include "Simplex.h"
#include "Polygon.h"
#include "Polyhedron.h"
#include "Response.h"
#include "RespTable.h"
#include <map>
#include <set>
#include <vector>

Include dependency graph for C-api.cpp:

Include dependency graph

Typedefs

typedef vector< PointPointBuf
typedef vector< unsigned int > IndexBuf
typedef vector< const Polytope * > PolyList
typedef vector< Complex * > ComplexList
typedef map< DtObjectRef,
Object * > 
ObjectList
typedef set< EncounterProxList

Functions

void move ()
DtShapeRef dtBox (DtScalar x, DtScalar y, DtScalar z)
DtShapeRef dtCone (DtScalar radius, DtScalar height)
DtShapeRef dtCylinder (DtScalar radius, DtScalar height)
DtShapeRef dtSphere (DtScalar radius)
DtShapeRef dtNewComplexShape ()
void dtEndComplexShape ()
void dtBegin (DtPolyType type)
void dtEnd ()
void dtVertex (DtScalar x, DtScalar y, DtScalar z)
void dtVertexBase (const void *base)
void dtVertexIndex (DtIndex index)
void dtVertexIndices (DtPolyType type, DtCount count, const DtIndex *indices)
void dtVertexRange (DtPolyType type, DtIndex first, DtCount count)
void dtDeleteShape (DtShapeRef shape)
void dtChangeVertexBase (DtShapeRef shape, const void *base)
void dtCreateObject (DtObjectRef object, DtShapeRef shape)
void dtSelectObject (DtObjectRef object)
void dtDeleteObject (DtObjectRef object)
void dtTranslate (DtScalar x, DtScalar y, DtScalar z)
void dtRotate (DtScalar x, DtScalar y, DtScalar z, DtScalar w)
void dtScale (DtScalar x, DtScalar y, DtScalar z)
void dtLoadIdentity ()
void dtLoadMatrixf (const float *m)
void dtLoadMatrixd (const double *m)
void dtMultMatrixf (const float *m)
void dtMultMatrixd (const double *m)
void dtSetDefaultResponse (DtResponse response, DtResponseType type, void *client_data)
void dtClearDefaultResponse ()
void dtSetObjectResponse (DtObjectRef object, DtResponse response, DtResponseType type, void *client_data)
void dtClearObjectResponse (DtObjectRef object)
void dtResetObjectResponse (DtObjectRef object)
void dtSetPairResponse (DtObjectRef object1, DtObjectRef object2, DtResponse response, DtResponseType type, void *client_data)
void dtClearPairResponse (DtObjectRef object1, DtObjectRef object2)
void dtResetPairResponse (DtObjectRef object1, DtObjectRef object2)
void dtProceed ()
void dtEnableCaching ()
void dtDisableCaching ()
void dtSetTolerance (DtScalar tol)
void addPair (ObjectPtr object1, ObjectPtr object2)
void removePair (ObjectPtr object1, ObjectPtr object2)
bool object_test (Encounter &e)
DtCount dtTest ()

Variables

PointBuf pointBuf
IndexBuf indexBuf
PolyList polyList
ComplexList complexList
ObjectList objectList
RespTable respTable
ProxList proxList
DtPolyType currentType
ComplexcurrentComplex = 0
ObjectcurrentObject = 0
bool caching = true
Scalar rel_error

Typedef Documentation

typedef vector<Complex *> ComplexList
 

typedef vector<unsigned int> IndexBuf
 

typedef map<DtObjectRef, Object *> ObjectList
 

typedef vector<Point> PointBuf
 

typedef vector<const Polytope *> PolyList
 

typedef set<Encounter> ProxList
 


Function Documentation

void addPair ObjectPtr  object1,
ObjectPtr  object2
 

void dtBegin DtPolyType  type  ) 
 

DtShapeRef dtBox DtScalar  x,
DtScalar  y,
DtScalar  z
 

void dtChangeVertexBase DtShapeRef  shape,
const void *  base
 

void dtClearDefaultResponse  ) 
 

Here is the call graph for this function:

void dtClearObjectResponse DtObjectRef  object  ) 
 

Here is the call graph for this function:

void dtClearPairResponse DtObjectRef  object1,
DtObjectRef  object2
 

Here is the call graph for this function:

DtShapeRef dtCone DtScalar  radius,
DtScalar  height
 

void dtCreateObject DtObjectRef  object,
DtShapeRef  shape
 

Here is the call graph for this function:

DtShapeRef dtCylinder DtScalar  radius,
DtScalar  height
 

void dtDeleteObject DtObjectRef  object  ) 
 

Here is the call graph for this function:

void dtDeleteShape DtShapeRef  shape  ) 
 

void dtDisableCaching  ) 
 

void dtEnableCaching  ) 
 

void dtEnd  ) 
 

Here is the call graph for this function:

void dtEndComplexShape  ) 
 

Here is the call graph for this function:

void dtLoadIdentity  ) 
 

Here is the call graph for this function:

void dtLoadMatrixd const double *  m  ) 
 

Here is the call graph for this function:

void dtLoadMatrixf const float *  m  ) 
 

Here is the call graph for this function:

void dtMultMatrixd const double *  m  ) 
 

Here is the call graph for this function:

void dtMultMatrixf const float *  m  ) 
 

Here is the call graph for this function:

DtShapeRef dtNewComplexShape  ) 
 

void dtProceed  ) 
 

void dtResetObjectResponse DtObjectRef  object  ) 
 

Here is the call graph for this function:

void dtResetPairResponse DtObjectRef  object1,
DtObjectRef  object2
 

Here is the call graph for this function:

void dtRotate DtScalar  x,
DtScalar  y,
DtScalar  z,
DtScalar  w
 

Here is the call graph for this function:

void dtScale DtScalar  x,
DtScalar  y,
DtScalar  z
 

Here is the call graph for this function:

void dtSelectObject DtObjectRef  object  ) 
 

Here is the call graph for this function:

void dtSetDefaultResponse DtResponse  response,
DtResponseType  type,
void *  client_data
 

Here is the call graph for this function:

void dtSetObjectResponse DtObjectRef  object,
DtResponse  response,
DtResponseType  type,
void *  client_data
 

Here is the call graph for this function:

void dtSetPairResponse DtObjectRef  object1,
DtObjectRef  object2,
DtResponse  response,
DtResponseType  type,
void *  client_data
 

Here is the call graph for this function:

void dtSetTolerance DtScalar  tol  ) 
 

DtShapeRef dtSphere DtScalar  radius  ) 
 

DtCount dtTest  ) 
 

Here is the call graph for this function:

void dtTranslate DtScalar  x,
DtScalar  y,
DtScalar  z
 

Here is the call graph for this function:

void dtVertex DtScalar  x,
DtScalar  y,
DtScalar  z
 

void dtVertexBase const void *  base  ) 
 

Here is the call graph for this function:

void dtVertexIndex DtIndex  index  ) 
 

void dtVertexIndices DtPolyType  type,
DtCount  count,
const DtIndex indices
 

Here is the call graph for this function:

void dtVertexRange DtPolyType  type,
DtIndex  first,
DtCount  count
 

Here is the call graph for this function:

void move  )  [inline]
 

Here is the call graph for this function:

bool object_test Encounter e  ) 
 

Here is the call graph for this function:

void removePair ObjectPtr  object1,
ObjectPtr  object2
 


Variable Documentation

bool caching = true
 

ComplexList complexList
 

Complex* currentComplex = 0
 

Object* currentObject = 0
 

DtPolyType currentType
 

IndexBuf indexBuf
 

ObjectList objectList
 

PointBuf pointBuf
 

PolyList polyList
 

ProxList proxList
 

Scalar rel_error
 

RespTable respTable
 


Generated at Thu Feb 26 21:53:40 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.