Callisto function reference  5.2
callisto52Types.h File Reference

Structures to retrieve data from Callisto. More...

Go to the source code of this file.

Data Structures

struct  SCALBox
 Structure to retrieve a box. More...
 
struct  SCALCone
 Structure to retrieve a cone. More...
 
struct  SCALCylinder
 Structure to retrieve a cylinder. More...
 
struct  SCALElevationGrid
 Structure to retrieve a triangle mesh. More...
 
struct  SCALGroup
 Structure to retrieve a group. More...
 
struct  SCALPlane
 Structure to retrieve a plane. More...
 
struct  SCALPolyline
 Structure to retrieve a polyline. More...
 
struct  SCALResult
 Structure to receive collision info. More...
 
struct  SCALSphere
 Structure to retrieve a sphere. More...
 
struct  SCALTetrahedron
 Structure to retrieve a tetrahedron. More...
 
struct  SCALTriangles
 Structure to retrieve a triangle mesh. More...
 

Macros

#define CAL_ALREADY_INIT   -2
 
#define CAL_AUTONAVSPEED   (1<<19)
 
#define CAL_BOTTOMLEFT   3
 
#define CAL_BOTTOMRIGHT   2
 
#define CAL_BOX   1
 
#define CAL_CAMLOOKATCYCLIC   (1<<3)
 
#define CAL_CAMLOOKATINTERPOLATION   (1<<9)
 
#define CAL_CAMLOOKATNONCYCLIC   (1<<4)
 
#define CAL_CAMNOLOOKATINTERPOLATION   (1<<10)
 
#define CAL_CAMNOPOSITIONINTERPOLATION   (1<<8)
 
#define CAL_CAMNOROLLINTERPOLATION   (1<<12)
 
#define CAL_CAMPOSITIONCYCLIC   (1<<1)
 
#define CAL_CAMPOSITIONINTERPOLATION   (1<<7)
 
#define CAL_CAMPOSITIONNONCYCLIC   (1<<2)
 
#define CAL_CAMROLLCYCLIC   (1<<5)
 
#define CAL_CAMROLLINTERPOLATION   (1<<11)
 
#define CAL_CAMROLLNONCYCLIC   (1<<6)
 
#define CAL_CANNOT_MANIPULATE_ROOT_GROUP   -5
 
#define CAL_CANNOT_SET_VISIBILITY   -22
 
#define CAL_CLONE_IN_SUBGROUP   -13
 
#define CAL_CONE   4
 
#define CAL_CYLINDER   3
 
#define CAL_DISABLESTATISTICS   2
 
#define CAL_ELEVATIONGRID   9
 
#define CAL_ENABLESTATISTICS   1
 
#define CAL_FALSE   0
 
#define CAL_FILE_ERROR   -11
 
#define CAL_GROUP_NOT_COL_CAPABLE   -17
 
#define CAL_GROUPS_DO_NOT_OVERLAP   -16
 
#define CAL_GROUPS_IN_SAME_SUBTREE   -8
 
#define CAL_HIDECOMPASS   (1<<2)
 
#define CAL_HIDEGRID   (1<<4)
 
#define CAL_HIDEGROUNDPLANE   (1<<14)
 
#define CAL_HIDELABELS   (1<<18)
 
#define CAL_HIDESHADOWS   (1<<24)
 
#define CAL_HIDESTATUSTEXT   (1<<8)
 
#define CAL_ILLEGAL_KEY_STATE   -19
 
#define CAL_ILLEGAL_VALUE   -7
 
#define CAL_INHERITSCALING   (1<<15)
 
#define CAL_INVALID_EXTENSION   -21
 
#define CAL_IS_DYNAMIC   -20
 
#define CAL_LOCKKEYBOARDNAVIGATION   (1<<11)
 
#define CAL_LOCKNAVIGATION   (1<<9)
 
#define CAL_MANUALNAVSPEED   (1<<20)
 
#define CAL_NAME_ALREADY_EXISTS   -10
 
#define CAL_NAME_NOT_FOUND   -9
 
#define CAL_NO_SUCH_GROUP   -3
 
#define CAL_NO_SUCH_OBJECT   -6
 
#define CAL_NO_SUCH_PARENT_GROUP   -4
 
#define CAL_NOORIENTATIONINTERPOLATION   (1<<12)
 
#define CAL_NOPOSITIONINTERPOLATION   (1<<10)
 
#define CAL_NOSCALINGINTERPOLATION   (1<<14)
 
#define CAL_NOT_INIT   -1
 
#define CAL_NOTINHERITSCALING   (1<<16)
 
#define CAL_NOTSET   3
 
#define CAL_NULL   0
 
#define CAL_OBJ_HAS_NO_TEXTURE_COORDINATES   - 24
 
#define CAL_ORIENTATIONCYCLIC   (1<<3)
 
#define CAL_ORIENTATIONINTERPOLATION   (1<<11)
 
#define CAL_ORIENTATIONNONCYCLIC   (1<<4)
 
#define CAL_ORTHOPROJECTION   (1<<22)
 
#define CAL_PERSPPROJECTION   (1<<21)
 
#define CAL_PLANE   5
 
#define CAL_POINTCLOUD   10
 
#define CAL_POLYLINE   7
 
#define CAL_POSITIONCYCLIC   (1<<1)
 
#define CAL_POSITIONINTERPOLATION   (1<<9)
 
#define CAL_POSITIONNONCYCLIC   (1<<2)
 
#define CAL_SCALINGCYCLIC   (1<<5)
 
#define CAL_SCALINGINTERPOLATION   (1<<13)
 
#define CAL_SCALINGNONCYCLIC   (1<<6)
 
#define CAL_SHOWCOMPASS   (1<<1)
 
#define CAL_SHOWGRID   (1<<3)
 
#define CAL_SHOWGRIDONMOUSE   (1<<6)
 
#define CAL_SHOWGRIDPERMANENT   (1<<5)
 
#define CAL_SHOWGROUNDPLANE   (1<<13)
 
#define CAL_SHOWLABELS   (1<<17)
 
#define CAL_SHOWSHADOWS   (1<<23)
 
#define CAL_SHOWSTATUSTEXT   (1<<7)
 
#define CAL_SOLIDRENDER   (1<<16)
 
#define CAL_SPHERE   2
 
#define CAL_STATISTICSNOTENABLED   -23
 
#define CAL_SUCCESS   0
 
#define CAL_TETRAHEDRON   8
 
#define CAL_TEXTURE_ERROR   -18
 
#define CAL_TOPLEFT   0
 
#define CAL_TOPRIGHT   1
 
#define CAL_TRIANGLES   6
 
#define CAL_TRUE   1
 
#define CAL_UNLOCKKEYBOARDNAVIGATION   (1<<12)
 
#define CAL_UNLOCKNAVIGATION   (1<<10)
 
#define CAL_USEPARENT   2
 
#define CAL_USERDRAWN   11
 
#define CAL_VIEW_ALREADY_VISIBLE   -14
 
#define CAL_VIEW_NOT_VISIBLE   -15
 
#define CAL_VIS_NOT_RUNNING   -12
 
#define CAL_VISIBILITYCYCLIC   (1<<7)
 
#define CAL_VISIBILITYNONCYCLIC   (1<<8)
 
#define CAL_WIREFRAMERENDER   (1<<15)
 

Typedefs

typedef void(* CAL_KeypressCallback )(int viewID, char key, bool pressed)
 
typedef CAL_scalar CAL_matrix3 [3][3]
 
typedef CAL_scalar CAL_matrix4 [4][4]
 
typedef void(* CAL_ObjectSelectCallback )(int viewID, int objID, CAL_scalar hitPoint[3])
 
typedef float CAL_scalar
 

Detailed Description

Structures to retrieve data from Callisto.

Macro Definition Documentation

#define CAL_DISABLESTATISTICS   2

Disable statistical information of collision checks.

#define CAL_ENABLESTATISTICS   1

Enable statistical information of collision checks.

#define CAL_FALSE   0

Use with CreateGroup/AddKeystate to set visibility.

#define CAL_INHERITSCALING   (1<<15)

The state inherits the scaling parameters from its parent.

#define CAL_NOORIENTATIONINTERPOLATION   (1<<12)

Does not interpolate keystates (group/object jumps). Use with CAL_SetGroupStateOptions or CAL_SetGroupOptions.

#define CAL_NOPOSITIONINTERPOLATION   (1<<10)

Does not interpolate keystates (group/object jumps). Use with CAL_SetGroupStateOptions or CAL_SetGroupOptions.

#define CAL_NOSCALINGINTERPOLATION   (1<<14)

Does not interpolate keystates (group/object jumps). Use with CAL_SetGroupStateOptions or CAL_SetGroupOptions.

#define CAL_NOTINHERITSCALING   (1<<16)

The state does not inherit the scaling parameters from its parent.

#define CAL_NOTSET   3

Use with CreateGroup/AddKeystate to set visibility.

#define CAL_NULL   0

CAL_NULL value.

#define CAL_ORIENTATIONCYCLIC   (1<<3)

Repeats orientation animation infinitely. Use with CAL_SetGroupStateOptions or CAL_SetGroupOptions.

#define CAL_ORIENTATIONINTERPOLATION   (1<<11)

Interpolates between keystates (using linear interpolation for translation and SLERP for quaternion interpolation. Use with CAL_SetGroupStateOptions or CAL_SetGroupOptions.

#define CAL_ORIENTATIONNONCYCLIC   (1<<4)

Do not repeat orientation animation. Use with CAL_SetGroupStateOptions or CAL_SetGroupOptions.

#define CAL_POSITIONCYCLIC   (1<<1)

Repeats position animation infinitely. Use with CAL_SetGroupStateOptions or CAL_SetGroupOptions.

#define CAL_POSITIONINTERPOLATION   (1<<9)

Interpolates between keystates (using linear interpolation for translation and SLERP for quaternion interpolation. Use with CAL_SetGroupStateOptions or CAL_SetGroupOptions.

#define CAL_POSITIONNONCYCLIC   (1<<2)

Do not repeat position animation. Use with CAL_SetGroupStateOptions or CAL_SetGroupOptions.

#define CAL_SCALINGCYCLIC   (1<<5)

Repeats scaling animation infinitely. Use with CAL_SetGroupStateOptions or CAL_SetGroupOptions.

#define CAL_SCALINGINTERPOLATION   (1<<13)

Interpolates between keystates (using linear interpolation for translation and SLERP for quaternion interpolation. Use with CAL_SetGroupStateOptions or CAL_SetGroupOptions.

#define CAL_SCALINGNONCYCLIC   (1<<6)

Do not repeat scaling animation. Use with CAL_SetGroupStateOptions or CAL_SetGroupOptions.

#define CAL_TRUE   1

Use with CreateGroup/AddKeystate to set visibility.

#define CAL_USEPARENT   2

Use with CreateGroup/AddKeystate to set visibility.

#define CAL_VISIBILITYCYCLIC   (1<<7)

Repeats visibility animation infinitely. Use with CAL_SetGroupStateOptions or CAL_SetGroupOptions.

#define CAL_VISIBILITYNONCYCLIC   (1<<8)

Does not repeat visibility animation. Use with CAL_SetGroupStateOptions or CAL_SetGroupOptions.

Typedef Documentation

typedef void(* CAL_KeypressCallback)(int viewID, char key, bool pressed)

Callback function type for key press.

typedef CAL_scalar CAL_matrix3[3][3]

CAL_matrix3 value used.

typedef CAL_scalar CAL_matrix4[4][4]

CAL_matrix4 value used. Position can be found as: m[0][3] = x; m[1][3] = y; m[2][3] = z;

typedef void(* CAL_ObjectSelectCallback)(int viewID, int objID, CAL_scalar hitPoint[3])

Callback function type for object selection.

typedef float CAL_scalar

CAL_scalar value used.