Classes | |
class | cAlgorithmFingerProxy |
This class implements a finger-proxy force rendering algorithm. More... | |
class | cAlgorithmPotentialField |
This class implements a force algorithms for handling all haptic effects associated with objects. More... | |
class | cAudioBuffer |
This class implements an audio buffer. More... | |
class | cAudioDevice |
This class implements an audio device context. More... | |
class | cAudioSource |
This class implements an audio source. More... | |
class | cBackground |
This class implements a 2D background widget. More... | |
class | cBitmap |
This class implements a 2D bitmap widget. More... | |
class | cCamera |
This class implements a virtual camera. More... | |
class | cCollisionAABB |
This class implements an axis-aligned bounding box collision detector. More... | |
class | cCollisionAABBBox |
This structure implements the boundary nodes of an axis-aligned bounding box. More... | |
class | cCollisionAABBNode |
This structure implements a tree node inside an AABB collision tree. More... | |
class | cCollisionBrute |
This class implements a brute force approach for collision detection. More... | |
struct | cCollisionEvent |
This structure stores the data related to a collision event. More... | |
class | cCollisionRecorder |
This class implements a collision detection recorder that stores all collision events that are reported by a collision detector. More... | |
struct | cCollisionSettings |
This structure stores the collision settings that are passed to a collision detector when querying for collisions. More... | |
struct | cColorb |
This class defines a color using a GLubyte representation for each component. More... | |
struct | cColorf |
This class defines a color using a GLfloat representation for each component. More... | |
class | cDeltaDevice |
This class implements an interface to all Force Dimension and Novint haptic devices. More... | |
class | cDial |
This class implements a 2D dial widget. More... | |
class | cDirectionalLight |
This class implements a directional light source. More... | |
class | cDisplayList |
This class provides support for OpenGL display lists. More... | |
class | cEffectMagnet |
This class implements a haptic magnetic effect. More... | |
class | cEffectStickSlip |
This class implements a haptic stick and slip effect. More... | |
class | cEffectSurface |
This class implements a haptic surface effect. More... | |
class | cEffectVibration |
This class implements a haptic vibration effect. More... | |
class | cEffectViscosity |
This class implements a haptic viscosity effect. More... | |
class | cFileXML |
class | cFog |
This class implements fog inside the world. More... | |
class | cFont |
This class implements support for 2D fonts. More... | |
class | cFrameBuffer |
This class implements an OpenGL framebuffer. More... | |
class | cFrequencyCounter |
This class implements a frequency counter. More... | |
class | cGenericArray |
This class implements an abstract class for describing geometrical elements composed of vertices. More... | |
class | cGenericCollision |
This class implements a base class for collision detection. More... | |
class | cGenericDevice |
This class implements an abstract class for hardware devices. More... | |
class | cGenericEffect |
This class implements a base class for haptic effects. More... | |
class | cGenericForceAlgorithm |
This class implements a base class for modeling force rendering algorithms. More... | |
class | cGenericHapticDevice |
This class implements a base class for haptic devices. More... | |
class | cGenericLight |
This class implements a base class for modeling light sources. More... | |
class | cGenericObject |
This class implements a base class for all 2D or 3D objects in CHAI3D. More... | |
class | cGenericTexture |
This class implements a base class for textures. More... | |
class | cGenericTool |
This class implements a base class for modeling haptic tools. More... | |
class | cGenericType |
This class implements an abstract type. More... | |
class | cGenericWidget |
This class implements a base class for widgets. More... | |
class | cHapticDeviceHandler |
This class implements a universal haptic device handler. More... | |
struct | cHapticDeviceInfo |
This structure stores all technical specifications of a haptic device. More... | |
class | cHapticPoint |
This class implements a haptic point on a tool. More... | |
class | cImage |
This class implements a 2D image data structure. More... | |
struct | cInteractionEvent |
This structure stores information associated with the interaction of a haptic tool with a shape primitive. More... | |
class | cInteractionRecorder |
This class stores a list of interaction events. More... | |
class | cLabel |
This class implements a 2D label widget to display one line of text. More... | |
class | cLeapDevice |
This class implements an interface to the Leap Motion tracker interface. More... | |
class | cLevel |
This class implements a 2D level display widget. More... | |
struct | cMarchingCubeGridCell |
struct | cMarchingCubeTriangle |
class | cMaterial |
This class models material properties. More... | |
struct | cMatrix3d |
This class implements a 3D matrix. More... | |
class | cMesh |
This class implements a 3D polygonal mesh. More... | |
class | cMultiImage |
This class implements an array of 2D image structures. More... | |
class | cMultiMesh |
This class implements a 3D multi-mesh object. More... | |
class | cMultiPoint |
This class implements 3D point cloud object. More... | |
class | cMultiSegment |
This class implements a collection 3D segments. More... | |
class | cMutex |
This class implements a mutex. More... | |
class | cMyCustomDevice |
This class is a interface to support custom haptic devices (template). More... | |
class | cNormalMap |
This class implements a normal map. More... | |
class | cPanel |
This class implements a 2D panel widget. More... | |
class | cPhantomDevice |
This class implements an interface to all 3D-System Phantom haptic devices. More... | |
class | cPointArray |
This class implements an array of 3D points. More... | |
class | cPositionalLight |
This class implements a positional light source. More... | |
class | cPrecisionClock |
This class implements a high precision clock. More... | |
struct | cQuaternion |
This class implements a quaternion. More... | |
struct | cRenderOptions |
This structures provide a containers for storing rendering options that are passed through the scenegraph when rendering the world. (For internal OpenGL use). More... | |
class | cScope |
This class implements a 2D scope to display signals. More... | |
class | cSegmentArray |
This class implements an array of 3D segments. More... | |
class | cShader |
This class implements a shader primitive. More... | |
class | cShaderProgram |
This class implements a shader program primitive. More... | |
class | cShadowMap |
This class implements a shadow map for spot lights (cSpotLight). More... | |
class | cShapeBox |
This class implements a 3D shape box. More... | |
class | cShapeCylinder |
This class implements a 3D shape cylinder. More... | |
class | cShapeEllipsoid |
This class implements a 3D shape ellipsoid. More... | |
class | cShapeLine |
This class implements a 3D line. More... | |
class | cShapeSphere |
This class implements a 3D shape sphere. More... | |
class | cShapeTorus |
This class implements a 3D shape torus. More... | |
class | cSixenseDevice |
This class implements an interface to the Sixense Razor Hydra magnetic tracker interface. More... | |
class | cSpotLight |
This class implements a spot light source. More... | |
class | cTexture1d |
This class implements a 1D texture map. More... | |
class | cTexture2d |
This class implements a 2D texture map. More... | |
class | cTexture3d |
This class implements a 3D texture map. More... | |
class | cTextureVideo |
This class implements a video texture map. More... | |
class | cThread |
This class implements support for threads. More... | |
class | cToolCursor |
This class implements a cursor using a single haptic point. More... | |
class | cToolGripper |
This class implements a gripper using a two haptic points. More... | |
struct | cTransform |
This class implements a 4D transformation matrix encoded as column-major. More... | |
class | cTriangleArray |
This class implements an array of 3D triangles. More... | |
struct | cVector3d |
This class implements a 3D vector. More... | |
class | cVertexArray |
This class implements array of 3D vertices. More... | |
struct | cVertexArrayOptions |
This structure manages user options when creating vertex arrays. More... | |
class | cVideo |
This class implements support for video files of the OGG/Vorbis format. More... | |
class | cViewPanel |
This class implements a 2D display panel associated with a framebuffer. More... | |
class | cVoxelObject |
This class implements a 3D volumetric object composed of voxels. More... | |
class | cWorld |
This class implements a virtual world. More... | |
Typedefs | |
typedef std::shared_ptr< cDeltaDevice > | cDeltaDevicePtr |
typedef std::shared_ptr< cGenericHapticDevice > | cGenericHapticDevicePtr |
typedef std::shared_ptr< cLeapDevice > | cLeapDevicePtr |
typedef std::shared_ptr< cMyCustomDevice > | cMyCustomDevicePtr |
typedef std::shared_ptr< cPhantomDevice > | cPhantomDevicePtr |
typedef std::shared_ptr< cSixenseDevice > | cSixenseDevicePtr |
typedef std::shared_ptr< cFrameBuffer > | cFrameBufferPtr |
typedef std::shared_ptr< cFont > | cFontPtr |
typedef std::shared_ptr< cGenericArray > | cGenericArrayPtr |
typedef std::shared_ptr< cImage > | cImagePtr |
typedef std::shared_ptr< cMultiImage > | cMultiImagePtr |
typedef std::shared_ptr< cPointArray > | cPointArrayPtr |
typedef std::shared_ptr< cSegmentArray > | cSegmentArrayPtr |
typedef std::shared_ptr< cTriangleArray > | cTriangleArrayPtr |
typedef std::shared_ptr< cVertexArray > | cVertexArrayPtr |
typedef std::shared_ptr< cVideo > | cVideoPtr |
typedef std::shared_ptr< cGenericTexture > | cGenericTexturePtr |
typedef std::shared_ptr< cMaterial > | cMaterialPtr |
typedef std::shared_ptr< cNormalMap > | cNormalMapPtr |
typedef std::shared_ptr< cTexture1d > | cTexture1dPtr |
typedef std::shared_ptr< cTexture2d > | cTexture2dPtr |
typedef std::shared_ptr< cTexture3d > | cTexture3dPtr |
typedef std::shared_ptr< cTextureVideo > | cTextureVideoPtr |
typedef std::shared_ptr< cShader > | cShaderPtr |
typedef std::shared_ptr< cShaderProgram > | cShaderProgramPtr |
Functions | |
bool | cLoadFileWAV (const std::string &a_filename, unsigned char *&a_data, int *a_size, int *a_frequency, bool *a_stereo, unsigned short *a_bitsPerSample) |
This function loads a WAV audio file. More... | |
bool | cLoadFileBMP (cImage *a_image, const std::string &a_filename) |
This function loads a BMP image file. More... | |
bool | cSaveFileBMP (cImage *a_image, const std::string &a_filename) |
This function saves a BMP image file. More... | |
bool | cLoadFileGIF (cImage *a_image, const std::string &a_filename) |
This function loads a GIF image file. More... | |
bool | cSaveFileGIF (cImage *a_image, const std::string &a_filename) |
This function saves a GIF image file. More... | |
bool | cLoadFileJPG (cImage *a_image, const std::string &a_filename) |
This function loads a JPG image file. More... | |
bool | cLoadJPG (cImage *a_image, const unsigned char *a_buffer, unsigned int a_len) |
This function loads a PNG image buffer. More... | |
bool | cSaveFileJPG (cImage *a_image, const std::string &a_filename) |
This function saves a JPG image file. More... | |
bool | cSaveJPG (cImage *a_image, unsigned char **a_buffer, unsigned int *a_len) |
This function saves a JPG image buffer. More... | |
bool | cLoadFilePNG (cImage *a_image, const std::string &a_filename) |
This function loads a PNG image file. More... | |
bool | cLoadPNG (cImage *a_image, const unsigned char *a_buffer, unsigned int a_len) |
This function loads a PNG image buffer. More... | |
bool | cSaveFilePNG (cImage *a_image, const std::string &a_filename) |
This function saves a PNG image file. More... | |
bool | cSavePNG (cImage *a_image, unsigned char **a_buffer, unsigned int *a_len) |
This function saves a PNG image buffer. More... | |
bool | cLoadFilePPM (cImage *a_image, const std::string &a_filename) |
This function loads a PPM image file. More... | |
bool | cSaveFilePPM (cImage *a_image, const std::string &a_filename) |
This function saves a PPM image file. More... | |
bool | cLoadFileRAW (cImage *a_image, const std::string &a_filename) |
This function loads a RAW image file. More... | |
bool | cSaveFileRAW (cImage *a_image, const std::string &a_filename) |
This function saves a RAW image file. More... | |
bool | cLoadFile3DS (cMultiMesh *a_object, const std::string &a_filename) |
This function loads a 3DS model file. More... | |
bool | cSaveFile3DS (cMultiMesh *a_object, const std::string &a_filename) |
This function saves a 3DS model file. More... | |
bool | cLoadFileOBJ (cMultiMesh *a_object, const std::string &a_filename) |
This function loads an OBJ model file. More... | |
bool | cSaveFileOBJ (cMultiMesh *a_object, const std::string &a_filename) |
This function saves an OBJ model file. More... | |
bool | cLoadFileSTL (cMultiMesh *a_object, const std::string &a_filename) |
This function loads an STL model file. More... | |
bool | cSaveFileSTL (cMultiMesh *a_object, const std::string &a_filename) |
This function saves an STL model file. More... | |
GLubyte | cColorFtoB (GLfloat a_value) |
This function converts a color component from GLfloat type to GLubyte type. More... | |
GLfloat | cColorBtoF (GLubyte a_value) |
This function converts a color component from GLubyte type to GLfloat type. More... | |
void | cLookAt (const cVector3d &a_eye, const cVector3d &a_at, const cVector3d &a_up) |
This function aligns the current z-axis with a reference frame (similar to function gluLookAt). More... | |
void | cDrawFrame (const double &a_scale=1.0) |
This function draws an x-y-z frame. More... | |
void | cDrawFrame (const double &a_axisLengthScale, const double &a_axisThicknessScale) |
This function draws an x-y-z frame. More... | |
void | cDrawWireBox (const double &a_xMin, const double &a_xMax, const double &a_yMin, const double &a_yMax, const double &a_zMin, const double &a_zMax) |
This function draws a box using lines. More... | |
void | cDrawSphere (const double &a_radius, const unsigned int a_numSlices=10, const unsigned int a_numStacks=10) |
This function draws a sphere. More... | |
void | cDrawArrow (const cVector3d &a_arrowStart, const cVector3d &a_arrowTip, const double a_width=0.05) |
This function draws an arrow on the z-axis using a cone and a cylinder. More... | |
void | cDrawSolidTorus (const double &a_innerRadius, const double &a_outerRadius, const int a_sides, const int a_rings) |
This function draws a torus. More... | |
void | cCreatePlane (cMesh *a_mesh, const double &a_lengthX, const double &a_lengthY, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates a plane. More... | |
void | cCreatePlane2 (cMesh *a_mesh, const double &a_lengthX, const double &a_lengthY, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_colorTopLeft=cColorf(1.0, 1.0, 1.0, 1.0), const cColorf &a_colorTopRight=cColorf(1.0, 1.0, 1.0, 1.0), const cColorf &a_colorBottomLeft=cColorf(1.0, 1.0, 1.0, 1.0), const cColorf &a_colorBottomRight=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates a plane. More... | |
void | cCreateMap (cMesh *a_mesh, const double &a_lengthX, const double &a_lengthY, const unsigned int a_numSidesX=10, const unsigned int a_numSidesY=10, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates a height map. Similar to a map, but with more triangles. More... | |
void | cCreateDisk (cMesh *a_mesh, const double &a_radiusX, const double &a_radiusY, const unsigned int a_numSlices=36, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates a disk. More... | |
void | cCreatePanel (cMesh *a_mesh, const double &a_lengthX, const double &a_lengthY, const double &a_radiusCorners=0, const int &a_numSegmentsPerCorner=8, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates a panel with optional rounded corners. More... | |
void | cCreatePanel2 (cMesh *a_mesh, const double &a_lengthX, const double &a_lengthY, const double &a_cornerTopLeftRadius=0, const double &a_cornerTopRightRadius=0, const double &a_cornerBottomLeftRadius=0, const double &a_cornerBottomRightRadius=0, const int &a_numSegmentsPerCorner=8, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_colorTopLeft=cColorf(0.5f, 0.5f, 0.5f, 1.0f), const cColorf &a_colorTopRight=cColorf(0.5f, 0.5f, 0.5f, 1.0f), const cColorf &a_colorBottomLeft=cColorf(0.3f, 0.3f, 0.3f, 1.0f), const cColorf &a_colorBottomRight=cColorf(0.3f, 0.3f, 0.3f, 1.0f)) |
This function creates a panel with optional rounded corners. More... | |
void | cCreateBox (cMesh *a_mesh, const double &a_lengthX, const double &a_lengthY, const double &a_lengthZ, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates a box. More... | |
void | cCreateCylinder (cMesh *a_mesh, const double &a_height, const double &a_radius, const unsigned int a_numSides=32, const unsigned int a_numHeightSegments=1, const unsigned int a_numRings=1, const bool a_includeTop=true, const bool a_includeBottom=true, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates a cylinder. More... | |
void | cCreateCone (cMesh *a_mesh, const double &a_height, const double &a_radiusBottom, const double &a_radiusTop=0.0, const unsigned int a_numSides=32, const unsigned int a_numHeightSegments=1, const unsigned int a_numRings=1, const bool a_includeBottom=true, const bool a_includeTop=true, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates a cone. More... | |
void | cCreatePipe (cMesh *a_mesh, const double &a_height, const double &a_innerRadius, const double &a_outerRadius, const unsigned int a_numSides=32, const unsigned int a_numHeightSegments=1, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates a pipe. More... | |
void | cCreateSphere (cMesh *a_mesh, const double &a_radius, const unsigned int a_numSlices=32, const unsigned int a_numStacks=32, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates a sphere. More... | |
void | cCreateEllipsoid (cMesh *a_mesh, const double &a_radiusX, const double &a_radiusY, const double &a_radiusZ, const unsigned int a_numSlices=32, const unsigned int a_numStacks=32, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates an ellipsoid. More... | |
void | cCreateRing (cMesh *a_mesh, const double &a_innerRadius, const double &a_outerRadius, const unsigned int a_numSides=32, const unsigned int a_numRings=32, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates a ring. More... | |
void | cCreateRingSection (cMesh *a_mesh, const double &a_innerRadius0, const double &a_innerRadius1, const double &a_outerRadius, const double &a_coverageAngleDEG=360, const bool a_includeExtremityFaces=true, const unsigned int a_numSides=32, const unsigned int a_numRings=32, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates a ring section. More... | |
void | cCreateSquarePyramid (cMesh *a_mesh, const double &a_height, const double &a_baseSize, const bool a_includeBottom=true, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates a pyramid. More... | |
void | cCreateTeaPot (cMesh *a_mesh, const double &a_size, const int &a_quality=4, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates a tea pot. More... | |
void | cCreateArrow (cMesh *a_mesh, const double &a_length=0.4, const double &a_radiusShaft=0.01, const double &a_lengthTip=0.1, const double &a_radiusTip=0.03, const bool a_includeTipsAtBothExtremities=false, const unsigned int a_numSides=32, const cVector3d &a_direction=cVector3d(0, 0, 1), const cVector3d &a_pos=cVector3d(0, 0, 0), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates an arrow. More... | |
void | cCreateCircularArrow (cMesh *a_mesh, const double &a_innerRadius0=0.05, const double &a_innerRadius1=0.05, const double &a_outerRadius=0.3, const double &a_lengthTip=0.2, const double &a_radiusTip=0.1, const double &a_coverageAngleDEG=270, const bool a_includeTipsAtBothExtremities=false, const unsigned int a_numSides=32, const unsigned int a_numRings=32, const cVector3d &a_direction=cVector3d(0, 0, 1), const cVector3d &a_pos=cVector3d(0, 0, 0), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates an circular arrow. More... | |
void | cCreateBezierPatch (cMesh *a_mesh, const cVector3d *a_controlPoints, const int a_numDivisions=8, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates a Bezier patch. More... | |
void | cCreateTeaPot (cMesh *a_mesh, const double &a_size, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0)) |
This function creates a tea pot. More... | |
bool | SECTION_RENDER_PARTS_WITH_MATERIALS (cRenderOptions a_options, bool a_useTransparency) |
bool | SECTION_RENDER_OPAQUE_PARTS_ONLY (cRenderOptions a_options) |
cVector3d | cEvalBezierCurve (const cVector3d *a_controlPoints, double a_t) |
This function determines the position of a point along a Bezier curve. More... | |
cVector3d | cEvalBezierPatch (const cVector3d *a_controlPoints, double a_u, double a_v) |
This function determines the position of a point along a Bezier patch. More... | |
cVector3d | cDerivBezier (const cVector3d *a_controlPoints, double a_t) |
This function determines the derivative of a point along a Bezier curve. More... | |
cVector3d | cDerivUBezier (const cVector3d *a_controlPoints, double a_u, double a_v) |
This function determines the derivative of a point on a Bezier patch along the u parametric direction. More... | |
cVector3d | cDerivVBezier (const cVector3d *a_controlPoints, double a_u, double a_v) |
This function determines the derivative of a point on a Bezier patch along the v parametric direction. More... | |
cVector3d | cSurfaceNormalBezier (const cVector3d *a_controlPoints, double a_u, double a_v) |
This function determines the surface normal at a point on a Bezier patch. More... | |
double | cTriangleArea (const cVector3d &a_vertex0, const cVector3d &a_vertex1, const cVector3d &a_vertex2) |
This function computes the area of a triangle. More... | |
cVector3d | cProjectPointOnPlane (const cVector3d &a_point, const cVector3d &a_planePoint, const cVector3d &a_planeNormal) |
This function computes the projection of a point onto a plane. More... | |
cVector3d | cProjectPointOnPlane (const cVector3d &a_point, const cVector3d &a_planePoint0, const cVector3d &a_planePoint1, const cVector3d &a_planePoint2) |
This function computes the projection of a point onto a plane. More... | |
void | cProjectPointOnPlane (const cVector3d &a_point, const cVector3d &a_planePoint0, const cVector3d &a_planePoint1, const cVector3d &a_planePoint2, double &a_r01, double &a_r02) |
This function computes the projection of a point onto a plane. More... | |
cVector3d | cProjectPointOnLine (const cVector3d &a_point, const cVector3d &a_pointOnLine, const cVector3d &a_directionOfLine) |
This function computes the projection of a point onto a line. More... | |
cVector3d | cProjectPointOnSegment (const cVector3d &a_point, const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB) |
This function computes the projection of a point onto a segment. More... | |
cVector3d | cProjectPointOnDiskXY (const cVector3d &a_point, const double &a_height, const double &a_radius) |
This function computes the projection of a point onto a disk. More... | |
cVector3d | cProjectPointOnTriangle (const cVector3d &a_point, const cVector3d &a_vertex0, const cVector3d &a_vertex1, const cVector3d &a_vertex2) |
This function computes the projection of a point onto a triangle. More... | |
cVector3d | cProject (const cVector3d &a_vector0, const cVector3d &a_vector1) |
This function computes the projection of a vector V0 onto a vector V1. More... | |
double | cDistanceToLine (const cVector3d &a_point, const cVector3d &a_linePoint1, const cVector3d &a_linePoint2) |
This function computes the distance between a point and a line. More... | |
cVector3d | cComputeSurfaceNormal (const cVector3d &a_surfacePoint0, const cVector3d &a_surfacePoint1, const cVector3d &a_surfacePoint2) |
This function computes the surface normal of a plane. More... | |
bool | cBoxContains (const cVector3d &a_point, const cVector3d &a_boxMin, const cVector3d &a_boxMax) |
This function checks if a point is contained in a box. More... | |
int | cIntersectionSegmentPlane (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const cVector3d &a_planePos, const cVector3d &a_planeNormal, cVector3d &a_collisionPoint, cVector3d &a_collisionNormal) |
This function computes the intersection between a segment and a plane. More... | |
int | cIntersectionSegmentDisk (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const cVector3d &a_diskPos, const cVector3d &a_diskNormal, const double &a_diskRadius, cVector3d &a_collisionPoint, cVector3d &a_collisionNormal) |
This function computes the intersection between a segment and a disk. More... | |
int | cIntersectionSegmentSphere (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const cVector3d &a_spherePos, const double &a_sphereRadius, cVector3d &a_collisionPoint0, cVector3d &a_collisionNormal0, cVector3d &a_collisionPoint1, cVector3d &a_collisionNormal1) |
This function computes the intersection between a segment and a sphere. More... | |
int | cIntersectionSegmentEllipsoid (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const cVector3d &a_pos, const double &a_radiusX, const double &a_radiusY, const double &a_radiusZ, cVector3d &a_collisionPoint0, cVector3d &a_collisionNormal0, cVector3d &a_collisionPoint1, cVector3d &a_collisionNormal1) |
This function computes the intersection between a segment and a sphere. More... | |
int | cIntersectionSegmentToplessCylinder (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const cVector3d &a_cylinderPointA, const cVector3d &a_cylinderPointB, const double &a_cylinderRadius, cVector3d &a_collisionPoint0, cVector3d &a_collisionNormal0, double &a_collisionPointRelPosAB0, cVector3d &a_collisionPoint1, cVector3d &a_collisionNormal1, double &a_collisionPointRelPosAB1) |
This function computes the intersection between a segment and a topless cylinder. More... | |
int | cIntersectionSegmentCylinder (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const double &a_baseRadius, const double &a_topRadius, const double &a_height, cVector3d &a_collisionPoint, cVector3d &a_collisionNormal) |
This function computes the nearest intersection point between a segment and a cylinder. More... | |
int | cIntersectionSegmentBox (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const cVector3d &a_boxMin, const cVector3d &a_boxMax, cVector3d &a_collisionPoint, cVector3d &a_collisionNormal) |
This function computes the nearest intersection point between a segment and a box. More... | |
int | cIntersectionSegmentTorus (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const double &a_innerRadius, const double &a_outerRadius, cVector3d &a_collisionPoint, cVector3d &a_collisionNormal) |
This function computes the nearest intersection point between a segment and a torus. More... | |
bool | cIntersectionSegmentTriangle (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const cVector3d &a_triangleVertex0, const cVector3d &a_triangleVertex1, const cVector3d &a_triangleVertex2, const bool a_reportFrontSideCollision, const bool a_reportBackSideCollision, cVector3d &a_collisionPoint, cVector3d &a_collisionNormal, double &a_collisionPosVertex01, double &a_collisionPosVertex02) |
This function computes the intersection between a segment and a triangle. More... | |
cVector3d | cVertexInterpolation (double a_isolevel, cVector3d a_p1, cVector3d a_p2, double a_valp1, double a_valp2) |
This function linearly interpolate the position where an isosurface cuts an edge between two vertices, each with their own scalar value. More... | |
int | cPolygonize (cMarchingCubeGridCell a_grid, double a_isolevel, cMarchingCubeTriangle *a_triangles) |
This function calculates the triangular facets required to represent the isosurface through the cell. More... | |
bool | cCheckBit (const unsigned int &a_value, const unsigned int &a_bitPosition) |
This function checks if a given bit is enabled. More... | |
unsigned int | cSetBit (const unsigned int &a_data, const unsigned int &a_bitPosition, const bool a_value) |
This function sets the value of a specified bit of an unsigned integer. More... | |
bool | cZero (const double &a_value) |
This function checks if a value is equal to or almost near zero. More... | |
template<class T > | |
T | cAbs (const T &a_value) |
This function computes an absolute value. More... | |
template<class T > | |
double | cSign (const T &a_value) |
This function computes the sign of a value. More... | |
template<class T > | |
T | cMax (const T &a_value1, const T &a_value2) |
This function computes the maximum value between two values. More... | |
template<class T > | |
T | cMin (const T &a_value1, const T &a_value2) |
This function computes the minimum value between two values. More... | |
template<class T > | |
T | cMax3 (const T &a_value1, const T &a_value2, const T &a_value3) |
This function computes the maximum value between three values. More... | |
template<class T > | |
T | cMin3 (const T &a_value1, const T &a_value2, const T &a_value3) |
This function computes the minimum value between three values. More... | |
template<class T > | |
void | cSwap (T &a_value1, T &a_value2) |
This function swaps two elements. More... | |
template<class T > | |
T | cLerp (const double &a_level, const T &a_value1, const T &a_value2) |
This function computes a linear interpolation between two values. More... | |
template<class T > | |
T | cClamp (const T &a_value, const T &a_low, const T &a_high) |
This function clamps a value to a specified range. More... | |
template<class T > | |
T | cClamp0 (const T &a_value) |
This function clamps a value to a value ranged between 0 and infinity. More... | |
double | cClamp01 (const double &a_value) |
This function clamps a value to a value ranged between 0.0 and 1.0. More... | |
template<class T , class V > | |
bool | cContains (const T &a_value, const V &a_low, const V &a_high) |
This function checks whether a value is within a specified range. More... | |
double | cSqr (const double &a_value) |
This function computes the square of a scalar. More... | |
double | cSqrt (const double &a_value) |
This function computes the square root of a scalar. More... | |
double | cCbrt (const double &a_value) |
This function computes the cubic root of a scalar. More... | |
double | cCosDeg (const double &a_angleDeg) |
Compute the cosine of an angle defined in degrees. More... | |
double | cSinDeg (const double &a_angleDeg) |
This function computes the sine of an angle defined in degrees. More... | |
double | cTanDeg (const double &a_angleDeg) |
This function computes the tangent of an angle defined in degrees. More... | |
double | cCosRad (const double &a_angleRad) |
This function computes the cosine of an angle defined in radians. More... | |
double | cSinRad (const double &a_angleRad) |
This function computes the sine of an angle defined in radians. More... | |
double | cTanRad (const double &a_angleRad) |
This function computes the tangent of an angle defined in radians. More... | |
double | cDegToRad (const double &a_angleDeg) |
This function converts an angle from degrees to radians. More... | |
double | cRadToDeg (const double &a_angleRad) |
This function converts an angle from radians to degrees. More... | |
int | cNumDigits (int a_value) |
This function computes the number of digits that compose a given integer. More... | |
cVector3d | cAdd (const cVector3d &a_vector1, const cVector3d &a_vector2) |
This function computes the addition of two vectors. More... | |
cVector3d | cAdd (const cVector3d &a_vector1, const cVector3d &a_vector2, const cVector3d &a_vector3) |
This function computes the addition of three vectors. More... | |
cVector3d | cSub (const cVector3d &a_vector1, const cVector3d &a_vector2) |
This function computes the subtraction of two vectors. More... | |
cVector3d | cNegate (const cVector3d &a_vector) |
This function computes the negated vector. More... | |
cVector3d | cMul (const double &a_value, const cVector3d &a_vector) |
This function computes the multiplication of a vector by a scalar. More... | |
cVector3d | cDiv (const double &a_value, const cVector3d &a_vector) |
This function computes the division of a vector by a scalar. More... | |
cVector3d | cCross (const cVector3d &a_vector1, const cVector3d &a_vector2) |
This function computes the cross product between two vectors. More... | |
double | cDot (const cVector3d &a_vector1, const cVector3d &a_vector2) |
This function computes the dot product between two vectors. More... | |
cVector3d | cNormalize (const cVector3d &a_vector) |
This function computes the normalized vector. More... | |
double | cDistance (const cVector3d &a_point1, const cVector3d &a_point2) |
This function computes the Euclidean distance between two points. More... | |
double | cDistanceSq (const cVector3d &a_point1, const cVector3d &a_point2) |
This function computes the squared distance between two points. More... | |
bool | cEqualPoints (const cVector3d &a_point1, const cVector3d &a_point2, const double a_epsilon=C_SMALL) |
This function determines whether two vectors are equal (i.e. represent the same point). More... | |
cMatrix3d | cIdentity3d (void) |
This function return a 3x3 identity matrix. More... | |
cMatrix3d | cAdd (const cMatrix3d &a_matrix1, const cMatrix3d &a_matrix2) |
This function computes the addition between two matrices. More... | |
cMatrix3d | cSub (const cMatrix3d &a_matrix1, const cMatrix3d &a_matrix2) |
This function computes the subtraction between two matrices. More... | |
cMatrix3d | cRotEulerRad (const double &a_angleRad1, const double &a_angleRad2, const double &a_angleRad3, const cEulerOrder a_eulerOrder, const bool a_useIntrinsicEulerModel=true) |
This function builds a rotation matrix from a set of Euler angles defined in radians. More... | |
cMatrix3d | cRotEulerDeg (const double &a_angleDeg1, const double &a_angleDeg2, const double &a_angleDeg3, const cEulerOrder a_eulerOrder, const bool a_useIntrinsicEulerModel=true) |
This function builds a rotation matrix from a set of Euler angles defined in degrees. More... | |
cMatrix3d | cRotAxisAngleRad (const double &a_axisX, const double &a_axisY, const double &a_axisZ, const double &a_angleRad) |
This function builds a rotation matrix from an axis-angle representation. More... | |
cMatrix3d | cRotAxisAngleDeg (const double &a_axisX, const double &a_axisY, const double &a_axisZ, const double &a_angleDeg) |
This function builds a rotation matrix from an axis-angle representation. More... | |
cMatrix3d | cMul (const cMatrix3d &a_matrix1, const cMatrix3d &a_matrix2) |
This function computes the multiplication of two matrices. More... | |
cVector3d | cMul (const cMatrix3d &a_matrix, const cVector3d &a_vector) |
This function computes the multiplication of a matrix and a vector. More... | |
cMatrix3d | cTranspose (const cMatrix3d &a_matrix) |
This function computes the transpose of a matrix. More... | |
cMatrix3d | cInverse (const cMatrix3d &a_matrix) |
This function computes the inverse of a matrix. More... | |
double | cAngle (const cVector3d &a_vector1, const cVector3d &a_vector2) |
This function computes the angle in radians between two vectors. More... | |
double | cCosAngle (const cVector3d &a_vector1, const cVector3d &a_vector2) |
This function computes the cosine of the angle between two vectors. More... | |
cVector3d | operator* (const cMatrix3d &a_matrix, const cVector3d &a_vector) |
An overloaded * operator for matrix/vector multiplication. More... | |
cMatrix3d | operator* (const cMatrix3d &a_matrix1, const cMatrix3d &a_matrix2) |
An overloaded * operator for matrix/matrix multiplication. More... | |
int | cSolveLinear (double a_coefficient[2], double a_solution[1]) |
This function computes the solution of a linear equation. More... | |
int | cSolveQuadric (double a_coefficient[3], double a_solution[2]) |
This function computes the solution of a quadric equation. More... | |
int | cSolveCubic (double a_coefficient[4], double a_solution[3]) |
This function computes the solution of a cubic equation. More... | |
int | cSolveQuartic (double a_coefficient[5], double a_solution[4]) |
This function computes the solution of a quartic equation. More... | |
cQuaternion | operator* (const cQuaternion &a_quaternion, const double a_scale) |
An overloaded * operator for quaternion/scalar multiplication. More... | |
cQuaternion | operator* (const double a_scale, const cQuaternion &a_quaternion) |
An overloaded * operator for scalar/quaternion multiplication. More... | |
cQuaternion | operator* (const cQuaternion &a_quaternion0, const cQuaternion &a_quaternion1) |
An overloaded * operator for quaternion multiplication. More... | |
cQuaternion | operator+ (const cQuaternion &a_quaternion0, const cQuaternion &a_quaternion1) |
An overloaded + operator for quaternion addition. More... | |
cQuaternion | operator- (const cQuaternion &a_quaternion0, const cQuaternion &a_quaternion1) |
An overloaded - operator for quaternion subtraction. More... | |
cTransform | operator* (const cTransform &a_matrix1, const cTransform &a_matrix2) |
cVector3d | operator* (const cTransform &a_matrix, const cVector3d &a_vector) |
cVector3d | operator* (const cVector3d &a_vector, const double a_scale) |
An overloaded * operator for vector/scalar multiplication. More... | |
cVector3d | operator* (const double a_scale, const cVector3d &a_vector) |
An overloaded * operator for scalar/vector multiplication. More... | |
cVector3d | operator/ (const cVector3d &a_vector, const double a_scale) |
An overloaded / operator for vector/scalar division. More... | |
cVector3d | operator+ (const cVector3d &a_vector0, const cVector3d &a_vector1) |
An overloaded + operator for vector/vector addition. More... | |
cVector3d | operator- (const cVector3d &a_vector0, const cVector3d &a_vector1) |
An overloaded - operator for vector/vector subtraction. More... | |
cVector3d | operator- (const cVector3d &a_vector0) |
An overloaded - operator for vector negation. More... | |
double | operator* (const cVector3d &a_vector0, const cVector3d &a_vector1) |
An overloaded * operator for vector/vector dotting. More... | |
cBitmap * | NEW_CHAI3D_WHITE_LOGO () |
cBitmap * | NEW_CHAI3D_BLACK_LOGO () |
cFontPtr | NEW_CFONTCALIBRI144 () |
cFontPtr | NEW_CFONTCALIBRI16 () |
cFontPtr | NEW_CFONTCALIBRI18 () |
cFontPtr | NEW_CFONTCALIBRI20 () |
cFontPtr | NEW_CFONTCALIBRI22 () |
cFontPtr | NEW_CFONTCALIBRI24 () |
cFontPtr | NEW_CFONTCALIBRI26 () |
cFontPtr | NEW_CFONTCALIBRI28 () |
cFontPtr | NEW_CFONTCALIBRI32 () |
cFontPtr | NEW_CFONTCALIBRI36 () |
cFontPtr | NEW_CFONTCALIBRI40 () |
cFontPtr | NEW_CFONTCALIBRI72 () |
void | cSleepMs (const unsigned int a_interval) |
This function suspends the execution of the current thread for a specified interval. More... | |
int | cStrLength (const char *a_input) |
This function computes the length of an ANSI string. More... | |
std::string | cGetFilename (const std::string &a_input, const bool a_includeFileExtension=true) |
This function extracts the filename with or without its extension. More... | |
std::string | cGetFileExtension (const std::string &a_input, const bool a_includeDot=false) |
This function extracts the file extension of a file. More... | |
std::string | cGetDirectory (const std::string &a_input) |
This function extracts the directory path from the full file path. More... | |
std::string | cReplaceFileExtension (const std::string &a_input, const std::string &a_extension) |
This function replaces the file extension of a filename with a new extension name. More... | |
std::string | cStr (const bool a_value) |
This function converts a boolean into a string. More... | |
std::string | cStr (const int a_value) |
This function converts an integer into a string. More... | |
std::string | cStr (const unsigned int a_value) |
This function converts an unsigned integer into a string. More... | |
std::string | cStr (const float a_value, const unsigned int a_precision=2) |
This function converts a float into a string. More... | |
std::string | cStr (const double a_value, const unsigned int a_precision=2) |
This function converts a double into a string. More... | |
std::string | cStrToLower (const std::string &a_input) |
This function converts a string to lower case. More... | |
Variables | |
const unsigned int | C_MAX_DEVICES = 16 |
const int | C_DEVICE_HISTORY_SIZE = 200 |
Size of buffer. More... | |
const double | C_DEVICE_MIN_ACQUISITION_TIME = 0.0001 |
Smallest time interval between two position/status reads from a haptic device. More... | |
const int | C_MAX_DOF = 16 |
Maximum number of joint of a haptic device. More... | |
const unsigned int | C_MAX_HAPTIC_DEVICES = 16 |
Maximum number of devices that can be connected at the same time. More... | |
const int | C_EFFECT_MAX_IDN = 16 |
bool | g_objLoaderShouldGenerateExtraVertices = false |
const bool | C_ERROR = false |
Function returns with an error. More... | |
const bool | C_SUCCESS = true |
Function returns successfully. More... | |
const double | C_TWO_PI = 6.28318530717958647692 |
Two PI constant. More... | |
const double | C_PI = 3.14159265358979323846 |
PI constant. More... | |
const double | C_PI_DIV_2 = 1.57079632679489661923 |
PI constant divided by two. More... | |
const double | C_DEG2RAD = 0.01745329252 |
Conversion from degrees to radians. More... | |
const double | C_RAD2DEG = 57.2957795131 |
Conversion from radians to degrees. More... | |
const double | C_TINY = 1e-49 |
Smallest value near zero for a double. More... | |
const double | C_SMALL = 0.000000001 |
Small value near zero. More... | |
const double | C_LARGE = 1e+49 |
Biggest value for a double. More... | |
const double | C_LARGE_FLOAT = 1e37 |
Biggest value for a float. More... | |
const unsigned char | CHAI3D_LOGO_WHITE_BYTEARRAY [] |
const unsigned char | CHAI3D_LOGO_BLACK_BYTEARRAY [] |
const unsigned int | CFONTCALIBRI144_WIDTH = 1024 |
const unsigned int | CFONTCALIBRI144_HEIGHT = 1024 |
const unsigned int | CFONTCALIBRI144_CHARSET_BASE = 112 |
const unsigned int | CFONTCALIBRI144_CHARSET_LINEHEIGHT = 144 |
const unsigned int | CFONTCALIBRI144_CHARSET_PAGES = 1 |
const int | CFONTCALIBRI144_CHARSET [] |
const unsigned char | CFONTCALIBRI144_BYTEARRAY [] |
const unsigned int | CFONTCALIBRI16_WIDTH = 256 |
const unsigned int | CFONTCALIBRI16_HEIGHT = 256 |
const unsigned int | CFONTCALIBRI16_CHARSET_BASE = 12 |
const unsigned int | CFONTCALIBRI16_CHARSET_LINEHEIGHT = 16 |
const unsigned int | CFONTCALIBRI16_CHARSET_PAGES = 1 |
const int | CFONTCALIBRI16_CHARSET [] |
const unsigned char | CFONTCALIBRI16_BYTEARRAY [] |
const unsigned int | CFONTCALIBRI18_WIDTH = 256 |
const unsigned int | CFONTCALIBRI18_HEIGHT = 256 |
const unsigned int | CFONTCALIBRI18_CHARSET_BASE = 14 |
const unsigned int | CFONTCALIBRI18_CHARSET_LINEHEIGHT = 18 |
const unsigned int | CFONTCALIBRI18_CHARSET_PAGES = 1 |
const int | CFONTCALIBRI18_CHARSET [] |
const unsigned char | CFONTCALIBRI18_BYTEARRAY [] |
const unsigned int | CFONTCALIBRI20_WIDTH = 256 |
const unsigned int | CFONTCALIBRI20_HEIGHT = 256 |
const unsigned int | CFONTCALIBRI20_CHARSET_BASE = 16 |
const unsigned int | CFONTCALIBRI20_CHARSET_LINEHEIGHT = 20 |
const unsigned int | CFONTCALIBRI20_CHARSET_PAGES = 1 |
const int | CFONTCALIBRI20_CHARSET [] |
const unsigned char | CFONTCALIBRI20_BYTEARRAY [] |
const unsigned int | CFONTCALIBRI22_WIDTH = 256 |
const unsigned int | CFONTCALIBRI22_HEIGHT = 256 |
const unsigned int | CFONTCALIBRI22_CHARSET_BASE = 17 |
const unsigned int | CFONTCALIBRI22_CHARSET_LINEHEIGHT = 22 |
const unsigned int | CFONTCALIBRI22_CHARSET_PAGES = 1 |
const int | CFONTCALIBRI22_CHARSET [] |
const unsigned char | CFONTCALIBRI22_BYTEARRAY [] |
const unsigned int | CFONTCALIBRI24_WIDTH = 256 |
const unsigned int | CFONTCALIBRI24_HEIGHT = 256 |
const unsigned int | CFONTCALIBRI24_CHARSET_BASE = 19 |
const unsigned int | CFONTCALIBRI24_CHARSET_LINEHEIGHT = 24 |
const unsigned int | CFONTCALIBRI24_CHARSET_PAGES = 1 |
const int | CFONTCALIBRI24_CHARSET [] |
const unsigned char | CFONTCALIBRI24_BYTEARRAY [] |
const unsigned int | CFONTCALIBRI26_WIDTH = 256 |
const unsigned int | CFONTCALIBRI26_HEIGHT = 256 |
const unsigned int | CFONTCALIBRI26_CHARSET_BASE = 20 |
const unsigned int | CFONTCALIBRI26_CHARSET_LINEHEIGHT = 26 |
const unsigned int | CFONTCALIBRI26_CHARSET_PAGES = 1 |
const int | CFONTCALIBRI26_CHARSET [] |
const unsigned char | CFONTCALIBRI26_BYTEARRAY [] |
const unsigned int | CFONTCALIBRI28_WIDTH = 256 |
const unsigned int | CFONTCALIBRI28_HEIGHT = 256 |
const unsigned int | CFONTCALIBRI28_CHARSET_BASE = 22 |
const unsigned int | CFONTCALIBRI28_CHARSET_LINEHEIGHT = 28 |
const unsigned int | CFONTCALIBRI28_CHARSET_PAGES = 1 |
const int | CFONTCALIBRI28_CHARSET [] |
const unsigned char | CFONTCALIBRI28_BYTEARRAY [] |
const unsigned int | CFONTCALIBRI32_WIDTH = 256 |
const unsigned int | CFONTCALIBRI32_HEIGHT = 256 |
const unsigned int | CFONTCALIBRI32_CHARSET_BASE = 25 |
const unsigned int | CFONTCALIBRI32_CHARSET_LINEHEIGHT = 32 |
const unsigned int | CFONTCALIBRI32_CHARSET_PAGES = 1 |
const int | CFONTCALIBRI32_CHARSET [] |
const unsigned char | CFONTCALIBRI32_BYTEARRAY [] |
const unsigned int | CFONTCALIBRI36_WIDTH = 256 |
const unsigned int | CFONTCALIBRI36_HEIGHT = 256 |
const unsigned int | CFONTCALIBRI36_CHARSET_BASE = 28 |
const unsigned int | CFONTCALIBRI36_CHARSET_LINEHEIGHT = 36 |
const unsigned int | CFONTCALIBRI36_CHARSET_PAGES = 1 |
const int | CFONTCALIBRI36_CHARSET [] |
const unsigned char | CFONTCALIBRI36_BYTEARRAY [] |
const unsigned int | CFONTCALIBRI40_WIDTH = 256 |
const unsigned int | CFONTCALIBRI40_HEIGHT = 256 |
const unsigned int | CFONTCALIBRI40_CHARSET_BASE = 31 |
const unsigned int | CFONTCALIBRI40_CHARSET_LINEHEIGHT = 40 |
const unsigned int | CFONTCALIBRI40_CHARSET_PAGES = 1 |
const int | CFONTCALIBRI40_CHARSET [] |
const unsigned char | CFONTCALIBRI40_BYTEARRAY [] |
const unsigned int | CFONTCALIBRI72_WIDTH = 512 |
const unsigned int | CFONTCALIBRI72_HEIGHT = 512 |
const unsigned int | CFONTCALIBRI72_CHARSET_BASE = 56 |
const unsigned int | CFONTCALIBRI72_CHARSET_LINEHEIGHT = 72 |
const unsigned int | CFONTCALIBRI72_CHARSET_PAGES = 1 |
const int | CFONTCALIBRI72_CHARSET [] |
const unsigned char | CFONTCALIBRI72_BYTEARRAY [] |
const std::string | C_SHADER_BASIC_VOXEL_LUT8_VERT |
const std::string | C_SHADER_BASIC_VOXEL_LUT8_FRAG |
const std::string | C_SHADER_BASIC_VOXEL_RGBA8_VERT |
const std::string | C_SHADER_BASIC_VOXEL_RGBA8_FRAG |
const std::string | C_SHADER_DVR_LUT8_VERT |
const std::string | C_SHADER_DVR_LUT8_FRAG |
const std::string | C_SHADER_FONG_VERT |
const std::string | C_SHADER_FONG_FRAG |
const std::string | C_SHADER_ISOSURFACE_L8_VERT |
const std::string | C_SHADER_ISOSURFACE_L8_FRAG |
const std::string | C_SHADER_ISOSURFACE_RGBA8_VERT |
const std::string | C_SHADER_ISOSURFACE_RGBA8_FRAG |
const std::string | C_SHADER_ISOSURFACE_COLOR_L8_VERT |
const std::string | C_SHADER_ISOSURFACE_COLOR_L8_FRAG |
const std::string | C_SHADER_ISOSURFACE_COLOR_LUT8_VERT |
const std::string | C_SHADER_ISOSURFACE_COLOR_LUT8_FRAG |
const std::string | C_SHADER_ISOSURFACE_COLOR_RGBA8_VERT |
const std::string | C_SHADER_ISOSURFACE_COLOR_RGBA8_FRAG |
const int | C_SCOPE_MAX_SAMPLES = 3000 |
const int | C_NUM_VOXEL_RENDERING_MODES = 9 |
typedef std::shared_ptr<cDeltaDevice> chai3d::cDeltaDevicePtr |
typedef std::shared_ptr<cGenericHapticDevice> chai3d::cGenericHapticDevicePtr |
typedef std::shared_ptr<cLeapDevice> chai3d::cLeapDevicePtr |
typedef std::shared_ptr<cMyCustomDevice> chai3d::cMyCustomDevicePtr |
typedef std::shared_ptr<cPhantomDevice> chai3d::cPhantomDevicePtr |
typedef std::shared_ptr<cSixenseDevice> chai3d::cSixenseDevicePtr |
typedef std::shared_ptr<cFrameBuffer> chai3d::cFrameBufferPtr |
typedef std::shared_ptr<cFont> chai3d::cFontPtr |
typedef std::shared_ptr<cGenericArray> chai3d::cGenericArrayPtr |
typedef std::shared_ptr<cImage> chai3d::cImagePtr |
typedef std::shared_ptr<cMultiImage> chai3d::cMultiImagePtr |
typedef std::shared_ptr< cPointArray > chai3d::cPointArrayPtr |
typedef std::shared_ptr< cSegmentArray > chai3d::cSegmentArrayPtr |
typedef std::shared_ptr< cTriangleArray > chai3d::cTriangleArrayPtr |
typedef std::shared_ptr< cVertexArray > chai3d::cVertexArrayPtr |
typedef std::shared_ptr<cVideo> chai3d::cVideoPtr |
typedef std::shared_ptr<cGenericTexture> chai3d::cGenericTexturePtr |
typedef std::shared_ptr<cMaterial> chai3d::cMaterialPtr |
typedef std::shared_ptr<cNormalMap> chai3d::cNormalMapPtr |
typedef std::shared_ptr<cTexture1d> chai3d::cTexture1dPtr |
typedef std::shared_ptr<cTexture2d> chai3d::cTexture2dPtr |
typedef std::shared_ptr<cTexture3d> chai3d::cTexture3dPtr |
typedef std::shared_ptr<cTextureVideo> chai3d::cTextureVideoPtr |
typedef std::shared_ptr<cShader> chai3d::cShaderPtr |
typedef std::shared_ptr< cShaderProgram > chai3d::cShaderProgramPtr |
Defines the list of devices currently supported by CHAI3D.
enum chai3d::cStereoMode |
enum chai3d::cEyeMode |
enum chai3d::cEulerOrder |
enum chai3d::cShaderType |
|
inline |
This function returns true if parts using material properties with/without transparency should be rendered according to rendering options.
a_options | Rendering options |
a_useTransparency | true if current object uses transparency, false__otherwise |
|
inline |
This function returns true if opaque parts only can be rendered.
a_options | Rendering options |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
An overloaded * operator for matrix/matrix multiplication.
|
inline |
An overloaded * operator for matrix/vector multiplication.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void chai3d::cSleepMs | ( | const unsigned int | a_interval | ) |
This function suspends the execution of the current thread for a specified interval defined in milliseconds.
a_interval | Time interval defined in milliseconds. |
const unsigned int chai3d::C_MAX_DEVICES = 16 |
const int chai3d::C_DEVICE_HISTORY_SIZE = 200 |
const double chai3d::C_DEVICE_MIN_ACQUISITION_TIME = 0.0001 |
const int chai3d::C_MAX_DOF = 16 |
const unsigned int chai3d::C_MAX_HAPTIC_DEVICES = 16 |
const int chai3d::C_EFFECT_MAX_IDN = 16 |
Maximum number of force models supported the CHAI3D simulation. Some force effects require a history of the tool, such as its previous position for instance. Effects which need such information store it in a local table and retrieve the information when they calculate the reaction force. See cEffectStickSlip class as an example
bool chai3d::g_objLoaderShouldGenerateExtraVertices = false |
Clients can use this to tell the OBJ file loader how to behave in terms of vertex merging.
If true (default), loaded OBJ files will have three distinct vertices per triangle, with no vertex re-use.
const bool chai3d::C_ERROR = false |
const bool chai3d::C_SUCCESS = true |
const double chai3d::C_TWO_PI = 6.28318530717958647692 |
const double chai3d::C_PI = 3.14159265358979323846 |
const double chai3d::C_PI_DIV_2 = 1.57079632679489661923 |
const double chai3d::C_DEG2RAD = 0.01745329252 |
const double chai3d::C_RAD2DEG = 57.2957795131 |
const double chai3d::C_TINY = 1e-49 |
const double chai3d::C_SMALL = 0.000000001 |
const double chai3d::C_LARGE = 1e+49 |
const double chai3d::C_LARGE_FLOAT = 1e37 |
const unsigned char chai3d::CHAI3D_LOGO_WHITE_BYTEARRAY[] |
const unsigned char chai3d::CHAI3D_LOGO_BLACK_BYTEARRAY[] |
const unsigned int chai3d::CFONTCALIBRI144_WIDTH = 1024 |
const unsigned int chai3d::CFONTCALIBRI144_HEIGHT = 1024 |
const unsigned int chai3d::CFONTCALIBRI144_CHARSET_BASE = 112 |
const unsigned int chai3d::CFONTCALIBRI144_CHARSET_LINEHEIGHT = 144 |
const unsigned int chai3d::CFONTCALIBRI144_CHARSET_PAGES = 1 |
const int chai3d::CFONTCALIBRI144_CHARSET[] |
const unsigned char chai3d::CFONTCALIBRI144_BYTEARRAY[] |
const unsigned int chai3d::CFONTCALIBRI16_WIDTH = 256 |
const unsigned int chai3d::CFONTCALIBRI16_HEIGHT = 256 |
const unsigned int chai3d::CFONTCALIBRI16_CHARSET_BASE = 12 |
const unsigned int chai3d::CFONTCALIBRI16_CHARSET_LINEHEIGHT = 16 |
const unsigned int chai3d::CFONTCALIBRI16_CHARSET_PAGES = 1 |
const int chai3d::CFONTCALIBRI16_CHARSET[] |
const unsigned char chai3d::CFONTCALIBRI16_BYTEARRAY[] |
const unsigned int chai3d::CFONTCALIBRI18_WIDTH = 256 |
const unsigned int chai3d::CFONTCALIBRI18_HEIGHT = 256 |
const unsigned int chai3d::CFONTCALIBRI18_CHARSET_BASE = 14 |
const unsigned int chai3d::CFONTCALIBRI18_CHARSET_LINEHEIGHT = 18 |
const unsigned int chai3d::CFONTCALIBRI18_CHARSET_PAGES = 1 |
const int chai3d::CFONTCALIBRI18_CHARSET[] |
const unsigned char chai3d::CFONTCALIBRI18_BYTEARRAY[] |
const unsigned int chai3d::CFONTCALIBRI20_WIDTH = 256 |
const unsigned int chai3d::CFONTCALIBRI20_HEIGHT = 256 |
const unsigned int chai3d::CFONTCALIBRI20_CHARSET_BASE = 16 |
const unsigned int chai3d::CFONTCALIBRI20_CHARSET_LINEHEIGHT = 20 |
const unsigned int chai3d::CFONTCALIBRI20_CHARSET_PAGES = 1 |
const int chai3d::CFONTCALIBRI20_CHARSET[] |
const unsigned char chai3d::CFONTCALIBRI20_BYTEARRAY[] |
const unsigned int chai3d::CFONTCALIBRI22_WIDTH = 256 |
const unsigned int chai3d::CFONTCALIBRI22_HEIGHT = 256 |
const unsigned int chai3d::CFONTCALIBRI22_CHARSET_BASE = 17 |
const unsigned int chai3d::CFONTCALIBRI22_CHARSET_LINEHEIGHT = 22 |
const unsigned int chai3d::CFONTCALIBRI22_CHARSET_PAGES = 1 |
const int chai3d::CFONTCALIBRI22_CHARSET[] |
const unsigned char chai3d::CFONTCALIBRI22_BYTEARRAY[] |
const unsigned int chai3d::CFONTCALIBRI24_WIDTH = 256 |
const unsigned int chai3d::CFONTCALIBRI24_HEIGHT = 256 |
const unsigned int chai3d::CFONTCALIBRI24_CHARSET_BASE = 19 |
const unsigned int chai3d::CFONTCALIBRI24_CHARSET_LINEHEIGHT = 24 |
const unsigned int chai3d::CFONTCALIBRI24_CHARSET_PAGES = 1 |
const int chai3d::CFONTCALIBRI24_CHARSET[] |
const unsigned char chai3d::CFONTCALIBRI24_BYTEARRAY[] |
const unsigned int chai3d::CFONTCALIBRI26_WIDTH = 256 |
const unsigned int chai3d::CFONTCALIBRI26_HEIGHT = 256 |
const unsigned int chai3d::CFONTCALIBRI26_CHARSET_BASE = 20 |
const unsigned int chai3d::CFONTCALIBRI26_CHARSET_LINEHEIGHT = 26 |
const unsigned int chai3d::CFONTCALIBRI26_CHARSET_PAGES = 1 |
const int chai3d::CFONTCALIBRI26_CHARSET[] |
const unsigned char chai3d::CFONTCALIBRI26_BYTEARRAY[] |
const unsigned int chai3d::CFONTCALIBRI28_WIDTH = 256 |
const unsigned int chai3d::CFONTCALIBRI28_HEIGHT = 256 |
const unsigned int chai3d::CFONTCALIBRI28_CHARSET_BASE = 22 |
const unsigned int chai3d::CFONTCALIBRI28_CHARSET_LINEHEIGHT = 28 |
const unsigned int chai3d::CFONTCALIBRI28_CHARSET_PAGES = 1 |
const int chai3d::CFONTCALIBRI28_CHARSET[] |
const unsigned char chai3d::CFONTCALIBRI28_BYTEARRAY[] |
const unsigned int chai3d::CFONTCALIBRI32_WIDTH = 256 |
const unsigned int chai3d::CFONTCALIBRI32_HEIGHT = 256 |
const unsigned int chai3d::CFONTCALIBRI32_CHARSET_BASE = 25 |
const unsigned int chai3d::CFONTCALIBRI32_CHARSET_LINEHEIGHT = 32 |
const unsigned int chai3d::CFONTCALIBRI32_CHARSET_PAGES = 1 |
const int chai3d::CFONTCALIBRI32_CHARSET[] |
const unsigned char chai3d::CFONTCALIBRI32_BYTEARRAY[] |
const unsigned int chai3d::CFONTCALIBRI36_WIDTH = 256 |
const unsigned int chai3d::CFONTCALIBRI36_HEIGHT = 256 |
const unsigned int chai3d::CFONTCALIBRI36_CHARSET_BASE = 28 |
const unsigned int chai3d::CFONTCALIBRI36_CHARSET_LINEHEIGHT = 36 |
const unsigned int chai3d::CFONTCALIBRI36_CHARSET_PAGES = 1 |
const int chai3d::CFONTCALIBRI36_CHARSET[] |
const unsigned char chai3d::CFONTCALIBRI36_BYTEARRAY[] |
const unsigned int chai3d::CFONTCALIBRI40_WIDTH = 256 |
const unsigned int chai3d::CFONTCALIBRI40_HEIGHT = 256 |
const unsigned int chai3d::CFONTCALIBRI40_CHARSET_BASE = 31 |
const unsigned int chai3d::CFONTCALIBRI40_CHARSET_LINEHEIGHT = 40 |
const unsigned int chai3d::CFONTCALIBRI40_CHARSET_PAGES = 1 |
const int chai3d::CFONTCALIBRI40_CHARSET[] |
const unsigned char chai3d::CFONTCALIBRI40_BYTEARRAY[] |
const unsigned int chai3d::CFONTCALIBRI72_WIDTH = 512 |
const unsigned int chai3d::CFONTCALIBRI72_HEIGHT = 512 |
const unsigned int chai3d::CFONTCALIBRI72_CHARSET_BASE = 56 |
const unsigned int chai3d::CFONTCALIBRI72_CHARSET_LINEHEIGHT = 72 |
const unsigned int chai3d::CFONTCALIBRI72_CHARSET_PAGES = 1 |
const int chai3d::CFONTCALIBRI72_CHARSET[] |
const unsigned char chai3d::CFONTCALIBRI72_BYTEARRAY[] |
const std::string chai3d::C_SHADER_BASIC_VOXEL_LUT8_VERT |
const std::string chai3d::C_SHADER_BASIC_VOXEL_LUT8_FRAG |
const std::string chai3d::C_SHADER_BASIC_VOXEL_RGBA8_VERT |
const std::string chai3d::C_SHADER_BASIC_VOXEL_RGBA8_FRAG |
const std::string chai3d::C_SHADER_DVR_LUT8_VERT |
const std::string chai3d::C_SHADER_DVR_LUT8_FRAG |
const std::string chai3d::C_SHADER_FONG_VERT |
const std::string chai3d::C_SHADER_FONG_FRAG |
const std::string chai3d::C_SHADER_ISOSURFACE_L8_VERT |
const std::string chai3d::C_SHADER_ISOSURFACE_L8_FRAG |
const std::string chai3d::C_SHADER_ISOSURFACE_RGBA8_VERT |
const std::string chai3d::C_SHADER_ISOSURFACE_RGBA8_FRAG |
const std::string chai3d::C_SHADER_ISOSURFACE_COLOR_L8_VERT |
const std::string chai3d::C_SHADER_ISOSURFACE_COLOR_L8_FRAG |
const std::string chai3d::C_SHADER_ISOSURFACE_COLOR_LUT8_VERT |
const std::string chai3d::C_SHADER_ISOSURFACE_COLOR_LUT8_FRAG |
const std::string chai3d::C_SHADER_ISOSURFACE_COLOR_RGBA8_VERT |
const std::string chai3d::C_SHADER_ISOSURFACE_COLOR_RGBA8_FRAG |
const int chai3d::C_SCOPE_MAX_SAMPLES = 3000 |
const int chai3d::C_NUM_VOXEL_RENDERING_MODES = 9 |