Callisto function reference
5.2
|
Functions | |
int | CAL_CreateBox (int groupID, CAL_scalar xw, CAL_scalar yw, CAL_scalar zw, int *objID=CAL_NULL, char *name="") |
int | CAL_CreateCone (int groupID, CAL_scalar radius, CAL_scalar height, int *objID=CAL_NULL, char *name="") |
int | CAL_CreateConeFromTo (int groupID, CAL_scalar *from, CAL_scalar *to, CAL_scalar radius, int *objID=CAL_NULL, char *name="") |
int | CAL_CreateCylinder (int groupID, CAL_scalar radius, CAL_scalar height, int *objID=CAL_NULL, char *name="") |
int | CAL_CreateCylinderFromTo (int groupID, CAL_scalar *from, CAL_scalar *to, CAL_scalar radius, int *objID=CAL_NULL, char *name="") |
int | CAL_CreateElevationGrid (int groupID, int xDim, int zDim, CAL_scalar xStep, CAL_scalar zStep, CAL_scalar *heights, int *objID=CAL_NULL, char *name="") |
int | CAL_CreatePointCloud (int groupID, int nrPoints, CAL_scalar *points, CAL_scalar *colors=CAL_NULL, int *objID=CAL_NULL, char *name="") |
int | CAL_CreatePolyline (int groupID, int nl, int *np, CAL_scalar *p, int *objID=CAL_NULL, char *name="") |
int | CAL_CreateSphere (int groupID, CAL_scalar radius, int *objID=CAL_NULL, char *name="") |
int | CAL_CreateTetrahedron (int groupID, CAL_scalar *p, int *objID=CAL_NULL, char *name="") |
int | CAL_CreateTriangles (int groupID, int nrTriangles, CAL_scalar *p, CAL_scalar *texCoords=CAL_NULL, int *objID=CAL_NULL, char *name="") |
int CAL_CreateBox | ( | int | groupID, |
CAL_scalar | xw, | ||
CAL_scalar | yw, | ||
CAL_scalar | zw, | ||
int * | objID = CAL_NULL , |
||
char * | name = "" |
||
) |
Create a box.
groupID | The group ID to put the object in. |
xw | The width of the object. |
yw | The height of the object. |
zw | The depth of the object. |
objID | Set to the object ID. |
name | Name of the object. Default is no name. |
int CAL_CreateCone | ( | int | groupID, |
CAL_scalar | radius, | ||
CAL_scalar | height, | ||
int * | objID = CAL_NULL , |
||
char * | name = "" |
||
) |
Create a cone.
groupID | The group ID to put the object in. |
radius | The radius of the bottom of the object. |
height | The height of the object. |
objID | Set to the object ID. |
name | Name of the object. Default is no name. |
int CAL_CreateConeFromTo | ( | int | groupID, |
CAL_scalar * | from, | ||
CAL_scalar * | to, | ||
CAL_scalar | radius, | ||
int * | objID = CAL_NULL , |
||
char * | name = "" |
||
) |
Create a cone.
groupID | The group ID to put the object in. |
from | The position of the top of the cone. |
to | The position of the center of the bottom of the cone. |
radius | The radius of the bottom of the object. |
objID | Set to the object ID. |
name | Name of the object. Default is no name. |
int CAL_CreateCylinder | ( | int | groupID, |
CAL_scalar | radius, | ||
CAL_scalar | height, | ||
int * | objID = CAL_NULL , |
||
char * | name = "" |
||
) |
Create a cylinder.
groupID | The group ID to put the object in. |
radius | The radius of the object. |
height | The height of the object. |
objID | Set to the object ID. |
name | Name of the object. Default is no name. |
int CAL_CreateCylinderFromTo | ( | int | groupID, |
CAL_scalar * | from, | ||
CAL_scalar * | to, | ||
CAL_scalar | radius, | ||
int * | objID = CAL_NULL , |
||
char * | name = "" |
||
) |
Create a cylinder.
groupID | The group ID to put the object in. |
from | The position of the center of the top of the cylinder. |
to | The position of the center of the bottom of the cylinder. |
radius | The radius of the object. |
objID | Set to the object ID. |
name | Name of the object. Default is no name. |
int CAL_CreateElevationGrid | ( | int | groupID, |
int | xDim, | ||
int | zDim, | ||
CAL_scalar | xStep, | ||
CAL_scalar | zStep, | ||
CAL_scalar * | heights, | ||
int * | objID = CAL_NULL , |
||
char * | name = "" |
||
) |
Create an elevation grid on the XZ plane.
groupID | The group ID to put the object in. |
xDim | The number of x coordinates. |
zDim | The number of z coordinates. |
xStep | The stepsize along the x-axis. |
zStep | The stepsize along the z-axis. |
heights | The height parameters. The number of elements should be (xDim+1)*(zDim+1). |
objID | Set to the object ID. |
name | Name of the object. Default is no name. |
int CAL_CreatePointCloud | ( | int | groupID, |
int | nrPoints, | ||
CAL_scalar * | points, | ||
CAL_scalar * | colors = CAL_NULL , |
||
int * | objID = CAL_NULL , |
||
char * | name = "" |
||
) |
Create a point cloud.
groupID | The group ID to put the object in. |
nrPoints | The number of points. |
points | The points with x, y and z coordinates. Its size should be 3 * nrPoints. |
colors | Color parameters per point with red, green and blue values. Its size should be 3 * nrPoints. |
objID | Set to the object ID. |
name | Name of the object. Default is no name. |
int CAL_CreatePolyline | ( | int | groupID, |
int | nl, | ||
int * | np, | ||
CAL_scalar * | p, | ||
int * | objID = CAL_NULL , |
||
char * | name = "" |
||
) |
Create a polyline. This is for the visualisation only.
groupID | The group ID to put the object in. |
nl | The number of lines. |
*np | The number of points each line consists of. |
*p | List of coordinates of the lines. Its size should be is 3 * np * nl. |
objID | Set to the object ID. |
name | Name of the object. Default is no name. |
int CAL_CreateSphere | ( | int | groupID, |
CAL_scalar | radius, | ||
int * | objID = CAL_NULL , |
||
char * | name = "" |
||
) |
Create a sphere.
groupID | The group ID to put the object in. |
radius | The radius of the object. |
objID | Set to the object ID. |
name | Name of the object. Default is no name. |
int CAL_CreateTetrahedron | ( | int | groupID, |
CAL_scalar * | p, | ||
int * | objID = CAL_NULL , |
||
char * | name = "" |
||
) |
Create a tetrahedron.
groupID | The group ID to put the object in. |
*p | List of coordinates of the object. The size of the list must be 3*4 since a tetrahydron consists of 4 points. The first 3 points define the ground plane, the fourth is the top. The ground plane should be defined in a counter-clockwise order. |
objID | Set to the object ID. |
name | Name of the object. Default is no name. |
int CAL_CreateTriangles | ( | int | groupID, |
int | nrTriangles, | ||
CAL_scalar * | p, | ||
CAL_scalar * | texCoords = CAL_NULL , |
||
int * | objID = CAL_NULL , |
||
char * | name = "" |
||
) |
Create a triangle mesh.
groupID | The group ID to put the object in. |
nrTriangles | The number of triangles the object consists of. |
*p | List of coordinates of the object. The size of the list must be 9*nrTriangles. |
*texCoords | List of texture coordinates. Each texture coordinate consists of two values betwee 0 and1. There should be 2 coordinates for each point in the list. Thus its size should be 6*nrTriangles. |
objID | Set to the object ID. |
name | Name of the object. Default is no name. |