#include <math.h>
Include dependency graph for scheduler.c:
This graph shows which files directly or indirectly include this file:
Functions | |
void | newpath () |
Initialize a new path search. | |
void | print_path (int q) |
Print a path. | |
void | addpathnode (int x, int z, int level) |
Add a node in the path. | |
int | moveCell (int x, int z, int level, int *map) |
Evalue if is possible to make a move into a cell. | |
void | put (int x, int z, int level, float value) |
Put a value of a cell into a map. | |
float | get (int x, int z, int level) |
Get a value from a cell into a map. | |
void | pathfinding (int x, int z, int level, int *map, int dir, float prec) |
Recursive function to find a path on a distance map. | |
void | print_distance_map (int *map) |
Print on screen a distance map. | |
void | createDistanceMap (int x, int z, int level, int *map, int count) |
Create a map containing information about distance from a cell. | |
int | getPosWU (int nWU) |
Return position in rendering process of a WU. | |
float | getZCell (int x, int z) |
Trasform Z coordinate of cell on map to VRML world. | |
float | getXCell (int x, int z) |
Trasform X coordinate of cell on map to VRML world. | |
int | getZWorld (float x, float z) |
Trasform Z coordinate in VRML to left top corner z coordinate on map. | |
int | getXWorld (float x, float z) |
Trasform X coordinate in VRML to left top corner z coordinate on map. | |
float | readWU (int nWU, int x, int z, int level) |
Read a cell of a WU from map. | |
void | writeWU (int nWU, int x, int z, int level, float value) |
Write a cell of a WU on map. | |
int | getnWUX () |
Elaborate # of WU. | |
int | getnWUZ () |
Elaborate # of WU. | |
void | print_map (int l) |
Print a level map. | |
void | createMaps (int ncell) |
Create a map with dim=ncell*ncell. | |
void | initWUList () |
Initialize Scheduler. | |
void | addHotSpot (float x, float y, float z, char **url, char *description, int url_length, char *id) |
Add hotspot information in hotspot list. | |
void | checkLevel () |
Verify level consistency. | |
void | checkHotSpot () |
Verify hotspot consistency. | |
void | addLevel (int id, float min, float max) |
Add a new level. | |
float | hashColor (float h) |
Hashing function. | |
float | dehashColor (float c) |
Hashing function. | |
bool | availablePosition (int x, int z, int level) |
Check if a position on map is available for avatar. | |
void | addWU (float x, float y, float z, float w, float h, float d, int lev) |
Add a Working Unit. | |
float | getMultiple (float a) |
Return a multiple of WUSIZE > a. | |
float | getmax (float a, float b) |
Return max between a and b. | |
void | genListWU (float wx, float wy, float wz, float ww, float wh, float wd, bool clipping, int lev) |
Generate WU list for a level. | |
int | driveout (char *outName) |
Produces output files. | |
Variables | |
bool | preprocess |
Preprocessing flag. | |
char * | iniFileName |
The path to ini file name. | |
char * | outFileName |
Where to save tridimensional digraph file. | |
char * | sourceFileName |
What have to be processed. | |
char * | vrmlFileName |
Where to save a vrml representation of the tridimensional digraph. | |
bool | FULLRENDERING = false |
FULLRENDERING set the type of rendering used by Display function. | |
int | SLICES = 30 |
SLICES Rendering option for geometric primitive. | |
int | STACKS = 30 |
STACKS Rendering option for geometric primitive. | |
bool | WIREFRAME = false |
WIREFRAME If set to true set the rendering style to wireframe. | |
bool | ELABORATE = false |
Need for default setting. | |
bool | CLIPPING = true |
CLIPPING If its set to true indicate that DRIVE create and display all WU, while if its false make a rendering of the entire VRML world. | |
bool | START = false |
START Indicate if display processing is started. | |
int | WINX = 500 |
Window Width. | |
int | WINY = 500 |
Window Height. | |
float | WALL_DIM = 0.05 |
Default size for flat face. | |
int | CELLX |
Cell Width. | |
int | CELLY |
Cell Height. | |
int | MATERIAL_POLICY = 0 |
Indicate the current type of policy for quad handler. | |
float | MATERIAL_PERC = 0.1 |
Percentage of quad surface to consider not empty a quad. | |
float | NOTBLACK = 0.1 |
Set a constant value for Material Policy. | |
int | cellx |
# cell x | |
int | celly |
# cell y | |
int | rescount = 0 |
Resize variable state keeper. | |
GLubyte | valid = 0 |
Check resize function. | |
int | tempstate = 0 |
Current state. | |
long | d_count = 0 |
GLfloat * | currentface |
Temp variable for IFS gestion. | |
int | nvertex = 0 |
# of vertex of current face | |
GLfloat | PX |
Left Ortho Coordinate. | |
GLfloat | PY |
Bottom Ortho Coordinate. | |
GLfloat | PZ |
Far Ortho Coordinate. | |
GLfloat | QX |
Right Ortho Coordinate. | |
GLfloat | QY |
Top Ortho Coordinate. | |
GLfloat | QZ |
Near Ortho Coordinate. | |
GLfloat | EYEX |
X Coordinate of the eye. | |
GLfloat | EYEY |
Y Coordinate of the eye. | |
GLfloat | EYEZ |
Z Coordinate of the eye. | |
GLfloat | CENTERX |
X Coordinate of the direction of the view (in this case center of the view is used). | |
GLfloat | CENTERY |
Y Coordinate of the direction of the view (in this case center of the view is used). | |
GLfloat | CENTERZ |
Z Coordinate of the direction of the view (in this case center of the view is used). | |
GLfloat | UPX |
Up information. | |
GLfloat | UPY |
Up information. | |
GLfloat | UPZ |
Up information. | |
int | winWidth = 0 |
Window Dimension. | |
int | winHeigth = 0 |
Window Dimension. | |
int | vdisplay = 0 |
State variable for display function. | |
int | idl = 0 |
Object idl counter. | |
int | wuidl = 0 |
Working unit idl counter. | |
GLfloat * | rect |
Rect for storing data from frame buffer. | |
object_u * | world |
VRML world object rappresentation. | |
int | nobject_u = 0 |
Number of VRML world object. | |
float | maxx |
float | maxy |
float | maxz |
Dimensions of current working unit. | |
float | minx |
float | miny |
float | minz |
Dimensions of current working unit. | |
GLfloat | currentDiffuse [3] |
Variable that store current diffuse color. | |
GLdouble | equationminx [4] = {1.0,0.0,0.0,0.1} |
Equation of clipping planes. | |
GLdouble | equationmaxx [4] = {-1.0,0.0,0.0,0.0} |
Equation of clipping planes. | |
GLdouble | equationminz [4] = {0.0,0.0,1.0,0.1} |
Equation of clipping planes. | |
GLdouble | equationmaxz [4] = {0.0,0.0,-1.0,0.0} |
Equation of clipping planes. | |
bool | initialized = false |
Initialization flag. | |
float | avatarheigth = 2.0 |
Avatar heigth dimension. | |
bool | THEREISMAP = false |
Map generation flag. | |
int | extAvatar = 1 |
Avatar extra cell dimension. | |
float | avatarMaxWalk = 0.5 |
Max height that avatar can pass throught. | |
float | WUHEIGHT = 10.0 |
Height of Working unit. | |
float | WUSIZE = 5.0 |
WU Edge size. | |
float ** | maps |
Maps of VRML world. | |
int | nx |
# of cell of level map in x | |
int | nz |
# of cell of level map in z | |
int | nwucellx |
# of cell of working unit in x. | |
int | nwucellz |
# of cell of working unit in z. | |
int | nwux |
# of wu in x | |
int | nwuz |
# of wu in z | |
float | dimx |
dim cell in x | |
float | dimz |
dim cell in z | |
float | minimox |
temp variable (min x in VRML world) | |
float | minimoz |
temp variable (min z in VRML world) | |
float | massimox |
temp variable (max x in VRML world) | |
float | massimoz |
temp variable (max z in VRML world) | |
pathnode ** | paths |
avatar paths. | |
int * | lengthpath |
length of paths. | |
int | npercorsi |
# of path founded. | |
bool | found = false |
flag for pathfinding. | |
hotspot * | hotspotlist |
hotspot information. | |
int | nhotspot |
n hotspot. | |
level * | WULevel |
Working unit level information. | |
int | nlevel |
n of level in world. | |
wu * | wuList |
Working unit information. | |
int | nwu |
number of working unit. | |
int | pos = 0 |
temp variable for nwux and nwuz computation. | |
bool | VERBOSE |
If we have to write verbosely. |
|
Add hotspot information in hotspot list.
|
|
Add a new level.
|
|
Add a node in the path.
|
|
Add a Working Unit.
|
|
Check if a position on map is available for avatar.
Here is the call graph for this function: ![]() |
|
Verify hotspot consistency.
Here is the call graph for this function: ![]() |
|
Verify level consistency.
|
|
Create a map containing information about distance from a cell.
|
|
Create a map with dim=ncell*ncell.
Here is the call graph for this function: ![]() |
|
Hashing function.
|
|
Produces output files. If outname is NULL, the function prints to the stdout the results. If the global variable vrmlFileName and outName are specified, a vrml file with the graph will be generated.
Here is the call graph for this function: ![]() |
|
Generate WU list for a level.
Here is the call graph for this function: ![]() |
|
Get a value from a cell into a map.
|
|
Return max between a and b.
|
|
Return a multiple of WUSIZE > a.
|
|
Elaborate # of WU.
|
|
Elaborate # of WU.
|
|
Return position in rendering process of a WU.
|
|
Trasform X coordinate of cell on map to VRML world.
|
|
Trasform X coordinate in VRML to left top corner z coordinate on map.
|
|
Trasform Z coordinate of cell on map to VRML world.
|
|
Trasform Z coordinate in VRML to left top corner z coordinate on map.
|
|
Hashing function.
|
|
Initialize Scheduler.
|
|
Evalue if is possible to make a move into a cell.
|
|
Initialize a new path search.
|
|
Recursive function to find a path on a distance map.
Here is the call graph for this function: ![]() |
|
Print on screen a distance map.
|
|
Print a level map.
|
|
Print a path.
|
|
Put a value of a cell into a map.
|
|
Read a cell of a WU from map.
Here is the call graph for this function: ![]() |
|
Write a cell of a WU on map.
Here is the call graph for this function: ![]() |
|
Avatar heigth dimension.
|
|
Max height that avatar can pass throught.
|
|
# cell x
|
|
Cell Width.
|
|
# cell y
|
|
Cell Height.
|
|
X Coordinate of the direction of the view (in this case center of the view is used).
|
|
Y Coordinate of the direction of the view (in this case center of the view is used).
|
|
Z Coordinate of the direction of the view (in this case center of the view is used).
|
|
CLIPPING If its set to true indicate that DRIVE create and display all WU, while if its false make a rendering of the entire VRML world.
|
|
Variable that store current diffuse color.
|
|
Temp variable for IFS gestion.
|
|
|
|
dim cell in x
|
|
dim cell in z
|
|
Need for default setting.
|
|
Equation of clipping planes.
|
|
Equation of clipping planes.
|
|
Equation of clipping planes.
|
|
Equation of clipping planes.
|
|
Avatar extra cell dimension.
|
|
X Coordinate of the eye.
|
|
Y Coordinate of the eye.
|
|
Z Coordinate of the eye.
|
|
flag for pathfinding.
|
|
FULLRENDERING set the type of rendering used by Display function. True indicate that all geometry are supported (Box,Sphere,Cylinder,Cone,IFS) and rendered. False indicate that all geometry are substituted by their bounding box rappresentation. |
|
hotspot information.
|
|
Object idl counter.
|
|
The path to ini file name.
|
|
Initialization flag.
|
|
length of paths.
|
|
Maps of VRML world.
|
|
temp variable (max x in VRML world)
|
|
temp variable (max z in VRML world)
|
|
Percentage of quad surface to consider not empty a quad.
|
|
Indicate the current type of policy for quad handler.
|
|
|
|
|
|
Dimensions of current working unit.
|
|
temp variable (min x in VRML world)
|
|
temp variable (min z in VRML world)
|
|
|
|
|
|
Dimensions of current working unit.
|
|
n hotspot.
|
|
n of level in world.
|
|
Number of VRML world object.
|
|
Set a constant value for Material Policy.
|
|
# of path founded.
|
|
# of vertex of current face
|
|
number of working unit.
|
|
# of cell of working unit in x.
|
|
# of cell of working unit in z.
|
|
# of wu in x
|
|
# of wu in z
|
|
# of cell of level map in x
|
|
# of cell of level map in z
|
|
Where to save tridimensional digraph file.
|
|
avatar paths.
|
|
temp variable for nwux and nwuz computation.
|
|
Preprocessing flag. A flag telling if we have to produce a preprocess file called mem_print.wrl |
|
Left Ortho Coordinate.
|
|
Bottom Ortho Coordinate.
|
|
Far Ortho Coordinate.
|
|
Right Ortho Coordinate.
|
|
Top Ortho Coordinate.
|
|
Near Ortho Coordinate.
|
|
Rect for storing data from frame buffer.
|
|
Resize variable state keeper.
|
|
SLICES Rendering option for geometric primitive. For more information see GLUT Specification. |
|
What have to be processed.
|
|
STACKS Rendering option for geometric primitive. For more information see GLUT Specification. |
|
START Indicate if display processing is started.
|
|
Current state.
|
|
Map generation flag.
|
|
Up information.
|
|
Up information.
|
|
Up information.
|
|
Check resize function.
|
|
State variable for display function.
|
|
If we have to write verbosely.
|
|
Where to save a vrml representation of the tridimensional digraph.
|
|
Default size for flat face.
|
|
Window Dimension.
|
|
Window Dimension.
|
|
Window Width.
|
|
Window Height.
|
|
WIREFRAME If set to true set the rendering style to wireframe.
|
|
VRML world object rappresentation.
|
|
Height of Working unit. In single level is world's height. |
|
Working unit idl counter.
|
|
Working unit level information.
|
|
Working unit information.
|
|
WU Edge size.
|