environment.c
Go to the documentation of this file.
unsigned int VectorSize(Tvector *vector) Gets the number of elements in a vector. Definition: vector.c:173 boolean EmptyPolyhedron(Tpolyhedron *p) Used for objects that failed to initialize. Definition: polyhedron.c:856 void * GetVectorElement(unsigned int i, Tvector *vector) Returns a pointer to a vector element. Definition: vector.c:270 void AddShape2Environment(char *name, Tpolyhedron *o, Tenvironment *e) Adds an obstacle (i.e., a convex polyhedron) to the environment. Definition: environment.c:20 void PlotPolyhedron(Tplot3d *pt, Tpolyhedron *p) Adds the polyhedron to a 3D geometry. Definition: polyhedron.c:1463 void PrintPolyhedron(FILE *f, char *path, char *label, unsigned int n, Tpolyhedron *p) Stores the polyhedron information into a file. Definition: polyhedron.c:1574 unsigned int GetObstacleShapeStatus(unsigned int i, Tenvironment *e) Gets the status (NORMAL, HIDDEN, DECOR) of an obstacle given its identifier. Definition: environment.c:96 void PrintEnvironment(FILE *f, char *path, Tenvironment *e) Stores the environment information into a file. Definition: environment.c:123 A collection of obstacles (convex polyhedrons) with their names. Definition: environment.h:39 void InitVector(unsigned int ele_size, void(*Copy)(void *, void *), void(*Delete)(void *), unsigned int max_ele, Tvector *vector) Constructor. Definition: vector.c:100 void SetVectorElement(unsigned int i, void *e, Tvector *vector) Adds an element to the vector in a given position. Definition: vector.c:238 void GetPolyhedronColor(Tcolor *c, Tpolyhedron *p) Gets the color of a polyhedron. Definition: polyhedron.c:1373 double GetPolyhedronMaxCoordinate(Tpolyhedron *p) Returns the maximum coordinate value used in a polyhedron. Definition: polyhedron.c:1458 unsigned int GetPolyhedronStatus(Tpolyhedron *p) Gets the status of a polyhedron (NORMAL, HIDDEN, DECOR). Definition: polyhedron.c:1378 #define NO_UINT Used to denote an identifier that has not been initialized. Definition: defines.h:435 char * GetObstacleName(unsigned int i, Tenvironment *e) Gets the name of an obstacle given its identifier. Definition: environment.c:74 Definition of the Tenvironment type and the associated functions. double GetEnvironmentMaxCoordinate(Tenvironment *e) Returns the sum of the maximum coordinate value for all the convex polyhedrons in the environment... Definition: environment.c:118 Tpolyhedron * GetObstacleShape(unsigned int i, Tenvironment *e) Gets the convex polyhedron of an obstacle given its identifier. Definition: environment.c:85 unsigned int GetObstacleID(char *name, Tenvironment *e) Gets the idetifier of an obstacles given its name. Definition: environment.c:48 void CopyPolyhedron(Tpolyhedron *p_dst, Tpolyhedron *p_src) Copy constructor. Definition: polyhedron.c:1259 void GetObstacleColor(unsigned int i, Tcolor *c, Tenvironment *e) Gets the color of an obstacle given its identifier. Definition: environment.c:107 unsigned int StartNew3dObject(Tcolor *c, Tplot3d *p) Start a composed object. Definition: plot3d.c:157 void PlotEnvironment(Tplot3d *pt, Tenvironment *e) Displays the obstacles in the environment in a 3D geometry. Definition: environment.c:146 unsigned int NewVectorElement(void *e, Tvector *vector) Adds an element to the vector. Definition: vector.c:216 unsigned int GetEnvironmentNObstacles(Tenvironment *e) Gets the number of obstacles in the environment. Definition: environment.c:43 |
Follow us!