Source code for Spatial Positioning program

 Files  Contents
 object.h contains the declaration for class object
 plan.h contains the declaration for class plan
 object.cpp contains member definitions for class object
 plan.cpp contains member declaration for class plan
 function.cpp  contains various useful functions
 inter.cpp contains functions to check intersections
 obj2poly.cpp contains routine to convert from class object to struct polygon
  cnv_obj_minkobj.cpp  contains functions to convert class object to class minkobject and vice versa
Files Contents
header.h contains declarations for class point and class minkobject
input.h contains member definitions for class point and class minkobject
function.cpp contains various useful functions
inter.cpp contains functions to calculate intersections
checking.cpp contains certain functions called by function get_mink to calculate C-space
inli.cpp contains function to remove points so that no three points remain on the same line.
newremloop.cpp contains functions to remove loops from a generated polygon
prog.cpp  contains get_mink function which calculates the C-space on a given plan.

Files

Contents

inc.h

 lists various include file and declares a lot of functions and variables

header.h

ontains declaration for class polygon

main.c

contains the main program where drawing area is initialised.

start.c

contains code to be executed when start button is clicked

draw.c

contains functions to draw and erase polygons

eventhandler.c

contains various eventhandler functions

How to compile and run

Source Code for the psycho-linguistic experiment

Files Contents
header.h contains declarations for structures for polygon and problem
inc.h lists all the include files, global variables and functions
main.c main program - initialises the motif setup
draw.c contains functions for drawing, erasing and moving polygons on screen
eventhandler.c contains various eventhandler definitions
start.c contains functions to read data sets from files and start the test
funcs.c contains various functions for drawing examples, messages etc
administer_test.c contains function which administer various tests
centr.c contains functions to calculate the centre of a polygon

How to compile and run

The makefile contains all the information about all the libraries to be linked.

For the drawing routines, we use Xmotif library utilities.

<Back>