|
My Project
|
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 | cHistogram |
| This class implements a 2D histogram to display an array of data value. 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 | cSocket |
| This class implements all methods shared by TCP and UDP sockets. More... | |
| class | cSocketTCP |
| This class implements all methods specific to TCP sockets. More... | |
| class | cSocketUDP |
| This class implements all methods specific to UDP sockets. 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 | cViewport |
| This class implements a viewport. More... | |
| class | cVoxelObject |
| This class implements a 3D volumetric object composed of voxels. More... | |
| class | cWorld |
| This class implements a virtual world. More... | |
| class | cXTouchController |
| This class implements support for the X-Touch midi controller. 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 | |
| void | XTouchInterfaceCallback (double a_deltatime, std::vector< unsigned char > *a_message, void *a_userData) |
| bool | cLoadFileMP3 (const std::string &a_filename, unsigned char *&a_data, unsigned int *a_sizeInBytes, unsigned short *a_bitsPerSample, double *a_samplingRate, unsigned int *a_numSamples, bool *a_stereo) |
| This function loads a MP3 audio file. | |
| bool | cLoadFileWAV (const std::string &a_filename, unsigned char *&a_data, unsigned int *a_sizeInBytes, unsigned short *a_bitsPerSample, double *a_samplingRate, unsigned int *a_numSamples, bool *a_stereo) |
| This function loads a WAV audio file. | |
| bool | cLoadFileBMP (cImage *a_image, const std::string &a_filename) |
| This function loads a BMP image file. | |
| bool | cSaveFileBMP (cImage *a_image, const std::string &a_filename) |
| This function saves a BMP image file. | |
| bool | cLoadFileGIF (cImage *a_image, const std::string &a_filename) |
| This function loads a GIF image file. | |
| bool | cSaveFileGIF (cImage *a_image, const std::string &a_filename) |
| This function saves a GIF image file. | |
| bool | cLoadFileJPG (cImage *a_image, const std::string &a_filename) |
| This function loads a JPG image file. | |
| bool | cLoadJPG (cImage *a_image, const void *a_buffer, unsigned int a_len) |
| This function loads a PNG image buffer. | |
| bool | cSaveFileJPG (cImage *a_image, const std::string &a_filename) |
| This function saves a JPG image file. | |
| bool | cSaveJPG (cImage *a_image, unsigned char **a_buffer, unsigned int *a_len) |
| This function saves a JPG image buffer. | |
| bool | cLoadFilePNG (cImage *a_image, const std::string &a_filename) |
| This function loads a PNG image file. | |
| bool | cLoadPNG (cImage *a_image, const unsigned char *a_buffer, unsigned int a_len) |
| This function loads a PNG image buffer. | |
| bool | cSaveFilePNG (cImage *a_image, const std::string &a_filename) |
| This function saves a PNG image file. | |
| bool | cSavePNG (cImage *a_image, unsigned char **a_buffer, unsigned int *a_len) |
| This function saves a PNG image buffer. | |
| bool | cLoadFilePPM (cImage *a_image, const std::string &a_filename) |
| This function loads a PPM image file. | |
| bool | cSaveFilePPM (cImage *a_image, const std::string &a_filename) |
| This function saves a PPM image file. | |
| bool | cLoadFileRAW (cImage *a_image, const std::string &a_filename) |
| This function loads a RAW image file. | |
| bool | cSaveFileRAW (cImage *a_image, const std::string &a_filename) |
| This function saves a RAW image file. | |
| bool | cLoadFileSTB (cImage *a_image, const std::string &a_filename) |
| This function loads an image file. | |
| bool | cLoadFile3DS (cMultiMesh *a_object, const std::string &a_filename) |
| This function loads a 3DS model file. | |
| bool | cSaveFile3DS (cMultiMesh *a_object, const std::string &a_filename) |
| This function saves a 3DS model file. | |
| bool | cLoadFileOBJ (cMultiMesh *a_object, const std::string &a_filename) |
| This function loads an OBJ model file. | |
| bool | cSaveFileOBJ (cMultiMesh *a_object, const std::string &a_filename) |
| This function saves an OBJ model file. | |
| bool | cLoadFileSTL (cMultiMesh *a_object, const std::string &a_filename) |
| This function loads an STL model file. | |
| bool | cSaveFileSTL (cMultiMesh *a_object, const std::string &a_filename) |
| This function saves an STL model file. | |
| bool | cSaveFileTRI (cMultiMesh *a_object, const std::string &a_filename) |
| This function saves an TRI model file. | |
| GLubyte | cColorFtoB (GLfloat a_value) |
| This function converts a color component from GLfloat type to GLubyte type. | |
| GLfloat | cColorBtoF (GLubyte a_value) |
| This function converts a color component from GLubyte type to GLfloat type. | |
| 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). | |
| void | cDrawFrame (const double &a_scale=1.0) |
| This function draws an x-y-z frame. | |
| void | cDrawFrame (const double &a_axisLengthScale, const double &a_axisThicknessScale) |
| This function draws an x-y-z frame. | |
| 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. | |
| void | cDrawSphere (const double &a_radius, const unsigned int a_numSlices=10, const unsigned int a_numStacks=10) |
| This function draws a sphere. | |
| 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. | |
| void | cDrawSolidTorus (const double &a_innerRadius, const double &a_outerRadius, const int a_sides, const int a_rings) |
| This function draws a torus. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| cVector3d | cEvalBezierPatch (const cVector3d *a_controlPoints, double a_u, double a_v) |
| This function determines the position of a point along a Bezier patch. | |
| cVector3d | cDerivBezier (const cVector3d *a_controlPoints, double a_t) |
| This function determines the derivative of a point along a Bezier curve. | |
| 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. | |
| 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. | |
| 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. | |
| double | cTriangleArea (const cVector3d &a_vertex0, const cVector3d &a_vertex1, const cVector3d &a_vertex2) |
| This function computes the area of a triangle. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| cVector3d | cProject (const cVector3d &a_vector0, const cVector3d &a_vector1) |
| This function computes the projection of a vector V0 onto a vector V1. | |
| 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. | |
| cVector3d | cComputeSurfaceNormal (const cVector3d &a_surfacePoint0, const cVector3d &a_surfacePoint1, const cVector3d &a_surfacePoint2) |
| This function computes the surface normal of a plane. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| bool | cCheckBit (const unsigned int &a_value, const unsigned int &a_bitPosition) |
| This function checks if a given bit is enabled. | |
| 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. | |
| bool | cZero (const double &a_value, const double &a_tolerance=C_TINY) |
| This function checks if a value is equal to or almost near zero. | |
| bool | cEqual (const double &a_value1, const double &a_value2, const double &a_tolerance=C_TINY) |
| This function checks if a value is equal to a given value. | |
| template<class T > | |
| T | cAbs (const T &a_value) |
| This function computes an absolute value. | |
| template<class T > | |
| double | cSign (const T &a_value) |
| This function computes the sign of a value. | |
| template<class T > | |
| T | cMax (const T &a_value1, const T &a_value2) |
| This function computes the maximum value between two values. | |
| template<class T > | |
| T | cMin (const T &a_value1, const T &a_value2) |
| This function computes the minimum value between two values. | |
| 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. | |
| 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. | |
| template<class T > | |
| void | cSwap (T &a_value1, T &a_value2) |
| This function swaps two elements. | |
| 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. | |
| 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. | |
| template<class T > | |
| T | cClamp0 (const T &a_value) |
| This function clamps a value to a value ranged between 0 and infinity. | |
| double | cClamp01 (const double &a_value) |
| This function clamps a value to a value ranged between 0.0 and 1.0. | |
| 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. | |
| double | cSqr (const double &a_value) |
| This function computes the square of a scalar. | |
| double | cSqrt (const double &a_value) |
| This function computes the square root of a scalar. | |
| double | cCbrt (const double &a_value) |
| This function computes the cubic root of a scalar. | |
| double | cModuloRange (double a_value, double a_min, double a_max) |
| This method computes the modulo of a double within a range. | |
| double | cCosDeg (const double &a_angleDeg) |
| Compute the cosine of an angle defined in degrees. | |
| double | cSinDeg (const double &a_angleDeg) |
| This function computes the sine of an angle defined in degrees. | |
| double | cTanDeg (const double &a_angleDeg) |
| This function computes the tangent of an angle defined in degrees. | |
| double | cCosRad (const double &a_angleRad) |
| This function computes the cosine of an angle defined in radians. | |
| double | cSinRad (const double &a_angleRad) |
| This function computes the sine of an angle defined in radians. | |
| double | cTanRad (const double &a_angleRad) |
| This function computes the tangent of an angle defined in radians. | |
| double | cDegToRad (const double &a_angleDeg) |
| This function converts an angle from degrees to radians. | |
| double | cRadToDeg (const double &a_angleRad) |
| This function converts an angle from radians to degrees. | |
| int | cNumDigits (int a_value) |
| This function computes the number of digits that compose a given integer. | |
| cVector3d | cAdd (const cVector3d &a_vector1, const cVector3d &a_vector2) |
| This function computes the addition of two vectors. | |
| cVector3d | cAdd (const cVector3d &a_vector1, const cVector3d &a_vector2, const cVector3d &a_vector3) |
| This function computes the addition of three vectors. | |
| cVector3d | cSub (const cVector3d &a_vector1, const cVector3d &a_vector2) |
| This function computes the subtraction of two vectors. | |
| cVector3d | cNegate (const cVector3d &a_vector) |
| This function computes the negated vector. | |
| cVector3d | cMul (const double &a_value, const cVector3d &a_vector) |
| This function computes the multiplication of a vector by a scalar. | |
| cVector3d | cDiv (const double &a_value, const cVector3d &a_vector) |
| This function computes the division of a vector by a scalar. | |
| cVector3d | cCross (const cVector3d &a_vector1, const cVector3d &a_vector2) |
| This function computes the cross product between two vectors. | |
| double | cDot (const cVector3d &a_vector1, const cVector3d &a_vector2) |
| This function computes the dot product between two vectors. | |
| cVector3d | cNormalize (const cVector3d &a_vector) |
| This function computes the normalized vector. | |
| double | cDistance (const cVector3d &a_point1, const cVector3d &a_point2) |
| This function computes the Euclidean distance between two points. | |
| double | cDistanceSq (const cVector3d &a_point1, const cVector3d &a_point2) |
| This function computes the squared distance between two points. | |
| 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). | |
| cMatrix3d | cIdentity3d (void) |
| This function return a 3x3 identity matrix. | |
| cMatrix3d | cAdd (const cMatrix3d &a_matrix1, const cMatrix3d &a_matrix2) |
| This function computes the addition between two matrices. | |
| cMatrix3d | cSub (const cMatrix3d &a_matrix1, const cMatrix3d &a_matrix2) |
| This function computes the subtraction between two matrices. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| cMatrix3d | cMul (const cMatrix3d &a_matrix1, const cMatrix3d &a_matrix2) |
| This function computes the multiplication of two matrices. | |
| cVector3d | cMul (const cMatrix3d &a_matrix, const cVector3d &a_vector) |
| This function computes the multiplication of a matrix and a vector. | |
| cMatrix3d | cTranspose (const cMatrix3d &a_matrix) |
| This function computes the transpose of a matrix. | |
| cMatrix3d | cInverse (const cMatrix3d &a_matrix) |
| This function computes the inverse of a matrix. | |
| double | cAngle (const cVector3d &a_vector1, const cVector3d &a_vector2) |
| This function computes the angle in radians between two vectors. | |
| double | cCosAngle (const cVector3d &a_vector1, const cVector3d &a_vector2) |
| This function computes the cosine of the angle between two vectors. | |
| cVector3d | operator* (const cMatrix3d &a_matrix, const cVector3d &a_vector) |
| An overloaded * operator for matrix/vector multiplication. | |
| cMatrix3d | operator* (const cMatrix3d &a_matrix1, const cMatrix3d &a_matrix2) |
| An overloaded * operator for matrix/matrix multiplication. | |
| cMatrix3d | operator* (const double &a_scalar, const cMatrix3d &a_matrix) |
| An overloaded * operator for scalar/matrix multiplication. | |
| cMatrix3d | operator+ (const cMatrix3d &a_matrix1, const cMatrix3d &a_matrix2) |
| An overloaded + operator for matrix/matrix addition. | |
| cMatrix3d | operator- (const cMatrix3d &a_matrix1, const cMatrix3d &a_matrix2) |
| An overloaded - operator for matrix/matrix addition. | |
| int | cSolveLinear (double a_coefficient[2], double a_solution[1]) |
| This function computes the solution of a linear equation. | |
| int | cSolveQuadric (double a_coefficient[3], double a_solution[2]) |
| This function computes the solution of a quadric equation. | |
| int | cSolveCubic (double a_coefficient[4], double a_solution[3]) |
| This function computes the solution of a cubic equation. | |
| int | cSolveQuartic (double a_coefficient[5], double a_solution[4]) |
| This function computes the solution of a quartic equation. | |
| cQuaternion | operator* (const cQuaternion &a_quaternion, const double a_scale) |
| An overloaded * operator for quaternion/scalar multiplication. | |
| cQuaternion | operator* (const double a_scale, const cQuaternion &a_quaternion) |
| An overloaded * operator for scalar/quaternion multiplication. | |
| cQuaternion | operator* (const cQuaternion &a_quaternion0, const cQuaternion &a_quaternion1) |
| An overloaded * operator for quaternion multiplication. | |
| cQuaternion | operator+ (const cQuaternion &a_quaternion0, const cQuaternion &a_quaternion1) |
| An overloaded + operator for quaternion addition. | |
| cQuaternion | operator- (const cQuaternion &a_quaternion0, const cQuaternion &a_quaternion1) |
| An overloaded - operator for quaternion subtraction. | |
| 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. | |
| cVector3d | operator* (const double a_scale, const cVector3d &a_vector) |
| An overloaded * operator for scalar/vector multiplication. | |
| cVector3d | operator/ (const cVector3d &a_vector, const double a_scale) |
| An overloaded / operator for vector/scalar division. | |
| cVector3d | operator+ (const cVector3d &a_vector0, const cVector3d &a_vector1) |
| An overloaded + operator for vector/vector addition. | |
| cVector3d | operator- (const cVector3d &a_vector0, const cVector3d &a_vector1) |
| An overloaded - operator for vector/vector subtraction. | |
| cVector3d | operator- (const cVector3d &a_vector0) |
| An overloaded - operator for vector negation. | |
| double | operator* (const cVector3d &a_vector0, const cVector3d &a_vector1) |
| An overloaded * operator for vector/vector dotting. | |
| int | cSocketInitialize () |
| This function initializes a TCP or UDP socket. | |
| int | cSocketBlock (int a_socket, bool a_block) |
| This function configures a TCP or UDP socket blocking mode. | |
| void | cSocketClose (int &a_socket) |
| This function closes a TCP or UDP socket. | |
| void | cSocketCleanup () |
| This function clears all flags on a TCP or UDP socket. | |
| int | cSocketSetTimeout (int a_socket, double a_timeout) |
| This function sets the timeout associated with a TCP or UDP socket. | |
| double | cSocketGetTimeout (int a_socket) |
| This function retrieves the timeout associated with a TCP or UDP socket. | |
| int | cSocketGetLocalIP (int a_index, sockaddr_in *a_sin) |
| This function retrieves the local IP address. | |
| cBitmap * | NEW_CHAI3D_WHITE_LOGO () |
| cBitmap * | NEW_CHAI3D_BLACK_LOGO () |
| cFontPtr | NEW_CFONT_CALIBRI_144 () |
| cFontPtr | NEW_CFONT_CALIBRI_16 () |
| cFontPtr | NEW_CFONT_CALIBRI_18 () |
| cFontPtr | NEW_CFONT_CALIBRI_20 () |
| cFontPtr | NEW_CFONT_CALIBRI_22 () |
| cFontPtr | NEW_CFONT_CALIBRI_24 () |
| cFontPtr | NEW_CFONT_CALIBRI_26 () |
| cFontPtr | NEW_CFONT_CALIBRI_28 () |
| cFontPtr | NEW_CFONT_CALIBRI_32 () |
| cFontPtr | NEW_CFONT_CALIBRI_36 () |
| cFontPtr | NEW_CFONT_CALIBRI_40 () |
| cFontPtr | NEW_CFONT_CALIBRI_72 () |
| cFontPtr | NEW_CFONT_CONSOLAS_16 () |
| cFontPtr | NEW_CFONT_CONSOLAS_18 () |
| cFontPtr | NEW_CFONT_CONSOLAS_20 () |
| cFontPtr | NEW_CFONT_CONSOLAS_22 () |
| cFontPtr | NEW_CFONT_CONSOLAS_24 () |
| cFontPtr | NEW_CFONT_CONSOLAS_28 () |
| cFontPtr | NEW_CFONT_CONSOLAS_32 () |
| void | cSleepMs (const unsigned int a_interval) |
| This function suspends the execution of the current thread for a specified interval. | |
| std::string | cGetCurrentPath () |
| This function retrieves the absolute path of the current executable. | |
| const std::string | cGetVersion () |
| This function returns a string containing the CHAI3D library version. | |
| void | cGetVersion (int &a_major, int &a_minor, int &a_patch) |
| This retrieves the CHAI3D library version numbers. | |
| int | cStrLength (const char *a_input) |
| This function computes the length of an ANSI string. | |
| std::string | cGetFilename (const std::string &a_input, const bool a_includeFileExtension=true) |
| This function extracts the filename with or without its extension. | |
| std::string | cGetFileExtension (const std::string &a_input, const bool a_includeDot=false) |
| This function extracts the file extension of a file. | |
| std::string | cGetDirectory (const std::string &a_input) |
| This function extracts the directory path from the full file path. | |
| 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. | |
| std::string | cStr (const bool a_value) |
| This function converts a boolean into a string. | |
| std::string | cStr (const int a_value) |
| This function converts an integer into a string. | |
| std::string | cStr (const unsigned int a_value) |
| This function converts an unsigned integer into a string. | |
| std::string | cStr (const float a_value, const unsigned int a_precision=2) |
| This function converts a float into a string. | |
| std::string | cStr (const double a_value, const unsigned int a_precision=2) |
| This function converts a double into a string. | |
| std::string | cStrToLower (const std::string &a_input) |
| This function converts a string to lower case. | |
| 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::cXTouchModel |
| enum chai3d::cStereoMode |
| enum chai3d::cEyeMode |
| enum chai3d::cEulerOrder |
| enum chai3d::cShaderType |
| void chai3d::XTouchInterfaceCallback | ( | double | a_deltatime, |
| std::vector< unsigned char > * | a_message, | ||
| void * | a_userData | ||
| ) |
MIDI callback.
| a_deltatime | Time stamp. |
| a_message | Message data. |
| a_userData | User data. |
| bool chai3d::cLoadFileMP3 | ( | const std::string & | a_filename, |
| unsigned char *& | a_data, | ||
| unsigned int * | a_sizeInBytes, | ||
| unsigned short * | a_bitsPerSample, | ||
| double * | a_samplingRate, | ||
| unsigned int * | a_numSamples, | ||
| bool * | a_stereo | ||
| ) |
This function loads an audio MP3 file into memory.
If the operation succeeds, then the functions returns true and the audio data is loaded into memory. The audio data, size, frequency and format are returned by argument.
If the operation fails, then the function returns false.
| a_filename | Filename. |
| a_data | Returned pointer to audio data. |
| a_sizeInBytes | Returned size in bytes of the audio data. |
| a_bitsPerSample | Returned number of bits per sample (8 or 16). |
| a_samplingRate | Returned sampling wait of audio date. |
| a_numSamples | Returned number of audio samples. |
| a_stereo | Returns true if stereo, false otherwise. |
| bool chai3d::cLoadFileWAV | ( | const std::string & | a_filename, |
| unsigned char *& | a_data, | ||
| unsigned int * | a_sizeInBytes, | ||
| unsigned short * | a_bitsPerSample, | ||
| double * | a_samplingRate, | ||
| unsigned int * | a_numSamples, | ||
| bool * | a_stereo | ||
| ) |
This function loads an audio WAV file into memory.
If the operation succeeds, then the functions returns true and the audio data is loaded into memory. The audio data, size, frequency and format are returned by argument.
If the operation fails, then the function returns false.
| a_filename | Filename. |
| a_data | Returned pointer to audio data. |
| a_sizeInBytes | Returned size in bytes of the audio data. |
| a_bitsPerSample | Returned number of bits per sample (8 or 16). |
| a_samplingRate | Returned sampling wait of audio date. |
| a_numSamples | Returned number of audio samples. |
| a_stereo | Returns true if stereo, false otherwise. |
| bool chai3d::cLoadFileBMP | ( | cImage * | a_image, |
| const std::string & | a_filename | ||
| ) |
This function loads a BMP image from a file into a cImage structure. If the operation succeeds, then the functions returns true and the image data is loaded into the image structure a_image. If the operation fails, then the function returns false.. In both cases, previous image information stored in a_image is erased.
| a_image | Image structure. |
| a_filename | Filename. |
| bool chai3d::cSaveFileBMP | ( | cImage * | a_image, |
| const std::string & | a_filename | ||
| ) |
This function saves a BMP image from a cImage structure to a file.
If the operation succeeds, then the functions returns true and the image data is saved to a file.
If the operation fails, then the function returns false.
| a_image | Image structure. |
| a_filename | Filename. |
| bool chai3d::cLoadFileGIF | ( | cImage * | a_image, |
| const std::string & | a_filename | ||
| ) |
This function loads a GIF image from a file into a cImage structure.
If the operation succeeds, then the functions returns true and the image data is loaded into image structure a_image.
If the operation fails, then the function returns false.
In both cases, previous image information stored in a_image is erased.
| a_image | Image structure. |
| a_filename | Filename. |
| bool chai3d::cSaveFileGIF | ( | cImage * | a_image, |
| const std::string & | a_filename | ||
| ) |
This function saves a GIF image from a cImage structure to a file.
If the operation succeeds, then the functions returns true and the image data is saved to a file.
If the operation fails, then the function returns false.
| a_image | Image structure. |
| a_filename | Filename. |
| bool chai3d::cLoadFileJPG | ( | cImage * | a_image, |
| const std::string & | a_filename | ||
| ) |
This function loads a JPG image from a file into a cImage structure.
If the operation succeeds, then the functions returns true and the image data is loaded into image structure a_image.n If the operation fails, then the function returns false.
In both cases, previous image information stored in a_image is erased.
| a_image | Image structure. |
| a_filename | Filename. |
| bool chai3d::cLoadJPG | ( | cImage * | a_image, |
| const void * | a_buffer, | ||
| unsigned int | a_len | ||
| ) |
This function loads a JPG image from a memory buffer into a cImage structure.
If the operation succeeds, then the functions returns true and the image data is loaded into image structure a_image.
If the operation fails, then the function returns false.
In both cases, previous image information stored in a_image is erased.
| a_image | Image structure. |
| a_buffer | Memory buffer containing JPG data. |
| a_len | Buffer size in bytes. |
| bool chai3d::cSaveFileJPG | ( | cImage * | a_image, |
| const std::string & | a_filename | ||
| ) |
This function saves a JPG image from a cImage structure to a file.
If the operation succeeds, then the functions returns true and the image data is saved to a file.
If the operation fails, then the function returns false.
| a_image | Image structure. |
| a_filename | Filename. |
| bool chai3d::cSaveJPG | ( | cImage * | a_image, |
| unsigned char ** | a_buffer, | ||
| unsigned int * | a_len | ||
| ) |
This function saves a JPG image from a cImage structure to a memory buffer.
If the operation succeeds, then the functions returns true and the image data is saved to a file.
If the operation fails, then the function returns false.
| a_image | Image structure. |
| a_buffer | Returned memory buffer where JPG data is stored. |
| a_len | Returned buffer size in bytes. |
| bool chai3d::cLoadFilePNG | ( | cImage * | a_image, |
| const std::string & | a_filename | ||
| ) |
This function loads a PNG image from a file into a cImage structure. If the operation succeeds, then the functions returns true and the image data is loaded into image structure a_image. If the operation fails, then the function returns false. In both cases, previous image information stored in a_image is erased.
| a_image | Image structure. |
| a_filename | Filename. |
| bool chai3d::cLoadPNG | ( | cImage * | a_image, |
| const unsigned char * | a_buffer, | ||
| unsigned int | a_len | ||
| ) |
This function loads a PNG image from a memory buffer into a cImage structure.
If the operation succeeds, then the functions returns true and the image data is loaded into image structure a_image.
If the operation fails, then the function returns false. In both cases, previous image information stored in a_image is erased.
| a_image | Image structure. |
| a_buffer | Memory buffer containing PNG data. |
| a_len | Buffer size in bytes. |
| bool chai3d::cSaveFilePNG | ( | cImage * | a_image, |
| const std::string & | a_filename | ||
| ) |
This function saves a PNG image from a cImage structure to a file.
If the operation succeeds, then the functions returns true and the image data is saved to a file.
If the operation fails, then the function returns false.
| a_image | Image structure. |
| a_filename | Filename. |
| bool chai3d::cSavePNG | ( | cImage * | a_image, |
| unsigned char ** | a_buffer, | ||
| unsigned int * | a_len | ||
| ) |
This function saves a PNG image from a cImage structure to a memory buffer.
If the operation succeeds, then the functions returns true and the image data is saved to a file.
If the operation fails, then the function returns false.
| a_image | Image structure. |
| a_buffer | Returned memory buffer where PNG data is stored. |
| a_len | Returned buffer size in bytes. |
| bool chai3d::cLoadFilePPM | ( | cImage * | a_image, |
| const std::string & | a_filename | ||
| ) |
This function loads a PPM image from a file into a cImage structure. If the operation succeeds, then the functions returns true and the image data is loaded into image structure a_image. If the operation fails, then the function returns false. In both cases, previous image information stored in a_image is erased.
| a_image | Image structure. |
| a_filename | Filename. |
| bool chai3d::cSaveFilePPM | ( | cImage * | a_image, |
| const std::string & | a_filename | ||
| ) |
This function saves a BMP image from a cImage structure to a file. If the operation succeeds, then the functions returns true and the image data is saved to a file. If the operation fails, then the function returns false.
| a_image | Image structure. |
| a_filename | Filename. |
| bool chai3d::cLoadFileRAW | ( | cImage * | a_image, |
| const std::string & | a_filename | ||
| ) |
This function loads a RAW image from a file into a cImage structure. If the operation succeeds, then the functions returns true and the image data is loaded into image structure a_image. If the operation fails, then the function returns false. In both cases, previous image information stored in a_image is erased.
| a_image | Image structure. |
| a_filename | Filename. |
| bool chai3d::cSaveFileRAW | ( | cImage * | a_image, |
| const std::string & | a_filename | ||
| ) |
This function saves a RAW image from a cImage structure to a file. If the operation succeeds, then the functions returns true and the image data is saved to a file. If the operation fails, then the function returns false.
| a_image | Image structure. |
| a_filename | Filename. |
| bool chai3d::cLoadFileSTB | ( | cImage * | a_image, |
| const std::string & | a_filename | ||
| ) |
This function blah blah blah.
| a_image | Image structure. |
| a_filename | Filename. |
| bool chai3d::cLoadFile3DS | ( | cMultiMesh * | a_object, |
| const std::string & | a_filename | ||
| ) |
This function loads a 3DS 3D model from a file into a cMultiMesh structure. If the operation succeeds, then the functions returns true and the 3D model is loaded into cMultiMesh. If the operation fails, then the function returns false.
| a_object | Multimesh object. |
| a_filename | Filename. |
| bool chai3d::cSaveFile3DS | ( | cMultiMesh * | a_object, |
| const std::string & | a_filename | ||
| ) |
This function saves a 3DS 3D model from a cMultiMesh object to a file. If the operation succeeds, then the functions returns true and the model data is saved to a file. If the operation fails, then the function returns false.
| a_object | Multimesh object. |
| a_filename | Filename. |
| bool chai3d::cLoadFileOBJ | ( | cMultiMesh * | a_object, |
| const std::string & | a_filename | ||
| ) |
This function loads an OBJ 3D model from a file into a cMultiMesh structure. If the operation succeeds, then the functions returns true and the 3D model is loaded into cMultiMesh. If the operation fails, then the function returns false.
| a_object | Multimesh object. |
| a_filename | Filename. |
| bool chai3d::cSaveFileOBJ | ( | cMultiMesh * | a_object, |
| const std::string & | a_filename | ||
| ) |
This function saves an OBJ 3D model from a cMultiMesh object to a file. If the operation succeeds, then the functions returns true and the model data is saved to a file. If the operation fails, then the function returns false.
| a_object | Multimesh object. |
| a_filename | Filename. |
| bool chai3d::cLoadFileSTL | ( | cMultiMesh * | a_object, |
| const std::string & | a_filename | ||
| ) |
This function loads an STL (binary format) 3D model from a file into a cMultiMesh structure. If the operation succeeds, then the functions returns true and the 3D model is loaded into cMultiMesh as a single mesh. If the operation fails, then the function returns false.
| a_object | Multimesh object. |
| a_filename | Filename. |
| bool chai3d::cSaveFileSTL | ( | cMultiMesh * | a_object, |
| const std::string & | a_filename | ||
| ) |
This function saves an STL (binary format) 3D model from a cMultiMesh object to a file. If the operation succeeds, then the functions returns true and the model data is saved to a file. If the operation fails, then the function returns false.
| a_object | Multimesh object. |
| a_filename | Filename. |
| bool chai3d::cSaveFileTRI | ( | cMultiMesh * | a_object, |
| const std::string & | a_filename | ||
| ) |
This function saves an TRI format 3D model from a cMultiMesh object to a file. If the operation succeeds, then the functions returns true and the model data is saved to a file. If the operation fails, then the function returns false.
| a_object | Multimesh object. |
| a_filename | Filename. |
|
inline |
| a_value | Component expressed in GLfloat type (0.0 - 1.0). |
|
inline |
| a_value | Color expressed in GLubyte type (0x00 - 0xFF). |
This function aligns the current z-axis with a reference frame in the same way than the OpenGL gluLookAt() function does.
| a_eye | Position of eye. |
| a_at | Look at position. |
| a_up | Up direction. |
| void chai3d::cDrawFrame | ( | const double & | a_scale | ) |
This function draws an X-Y-Z Frame. The red arrow corresponds to the X-Axis, green to the Y-Axis, and blue to the Z-Axis.
The scale parameter determines the size of the arrows.
| a_scale | Length of each arrow |
| void chai3d::cDrawFrame | ( | const double & | a_axisLengthScale, |
| const double & | a_axisThicknessScale | ||
| ) |
This function draws an X-Y-Z Frame. The red arrow corresponds to the X-Axis, green to the Y-Axis, and blue to the Z-Axis.
The scale parameter determines the size of the arrows.
| a_axisLengthScale | Length of each arrow |
| a_axisThicknessScale | Thickness factor of frame. |
| void chai3d::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 line-based box with sides parallel to the x-y-z axes.
| a_xMin | Box side x min position. |
| a_xMax | Box side x max position. |
| a_yMin | Box side y min position. |
| a_yMax | Box side y max position. |
| a_zMin | Box side z min position. |
| a_zMax | Box side z max position. |
| void chai3d::cDrawSphere | ( | const double & | a_radius, |
| const unsigned int | a_numSlices, | ||
| const unsigned int | a_numStacks | ||
| ) |
This function draws a sphere.
| a_radius | Radius of the sphere |
| a_numSlices | Specifies the number of subdivisions around the z axis (similar to lines of longitude) |
| a_numStacks | Specifies the number of subdivisions along the x/y axes (similar to lines of latitude) |
| void chai3d::cDrawArrow | ( | const cVector3d & | a_arrowStart, |
| const cVector3d & | a_arrowTip, | ||
| const double | a_width | ||
| ) |
This function draws an arrow along the z-axis using a cone and a cylinder.
| a_arrowStart | The location of the back of the arrow. |
| a_arrowTip | The location of the tip of the arrow. |
| a_width | The width of the arrow shaft. |
| void chai3d::cDrawSolidTorus | ( | const double & | a_innerRadius, |
| const double & | a_outerRadius, | ||
| const int | a_sides, | ||
| const int | a_rings | ||
| ) |
This function draws a torus.
| a_innerRadius | Inner radius of the torus. |
| a_outerRadius | Outer radius of the torus. |
| a_sides | Number of sides for each radial section. |
| a_rings | Number of radial divisions for the torus. |
| void chai3d::cCreatePlane | ( | cMesh * | a_mesh, |
| const double & | a_lengthX, | ||
| const double & | a_lengthY, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_color | ||
| ) |
This function creates a plane by defining its size along the X and Y axes. Texture coordinates are defined so that the bitmap image maps the entire plane.
| a_mesh | Mesh object in which primitive is created. |
| a_lengthX | Size along X axis. |
| a_lengthY | Size along Y axis. |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_color | Color of vertices. |
| void chai3d::cCreatePlane2 | ( | cMesh * | a_mesh, |
| const double & | a_lengthX, | ||
| const double & | a_lengthY, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_colorTopLeft, | ||
| const cColorf & | a_colorTopRight, | ||
| const cColorf & | a_colorBottomLeft, | ||
| const cColorf & | a_colorBottomRight | ||
| ) |
This function creates a plane by defining its size along the X and Y axes. Texture coordinates are defined so that the bitmap image maps the entire plane.
| a_mesh | Mesh object in which primitive is created. |
| a_lengthX | Size along X axis. |
| a_lengthY | Size along Y axis. |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_colorTopLeft | Color of top left vertex. |
| a_colorTopRight | Color of top right vertex. |
| a_colorBottomLeft | Color of bottom left vertex. |
| a_colorBottomRight | Color of bottom right vertex. |
| void chai3d::cCreateMap | ( | cMesh * | a_mesh, |
| const double & | a_lengthX, | ||
| const double & | a_lengthY, | ||
| const unsigned int | a_numSidesX, | ||
| const unsigned int | a_numSidesY, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_color | ||
| ) |
This function creates a 2D map by defining the size along the X and Y axes, and the number of sides along each axis. For instance, a map containing 3 sides along the X axis and 4 sides along the Y axis will contains: 12 squares composed each of two triangles. The total number of vertices will be equal to 20, respectively (3+1)x(4+1). By modifying the Z component of each vertex you can easily create height maps for instance.Texture coordinates are defined so that the bitmap image covers the entire map.
| a_mesh | Mesh object in which primitive is created. |
| a_lengthX | Size along X axis. |
| a_lengthY | Size along Y axis. |
| a_numSidesX | Number of elements along X axis. |
| a_numSidesY | Number of elements along Y axis. |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_color | Color of vertices. |
| void chai3d::cCreateDisk | ( | cMesh * | a_mesh, |
| const double & | a_radiusX, | ||
| const double & | a_radiusY, | ||
| const unsigned int | a_numSlices, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_color | ||
| ) |
This function creates a disk by defining its radius properties along axis X and axis Y.
| a_mesh | Mesh object in which primitive is created. |
| a_radiusX | Radius of sphere along axis X. |
| a_radiusY | Radius of sphere along axis Y. |
| a_numSlices | Specifies the number of slices composing the disc. |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_color | Color of vertices. |
| void chai3d::cCreatePanel | ( | cMesh * | a_mesh, |
| const double & | a_lengthX, | ||
| const double & | a_lengthY, | ||
| const double & | a_radiusCorners, | ||
| const int & | a_numSegmentsPerCorner, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_color | ||
| ) |
This function creates a panel with optional rounded corners.
| a_mesh | Mesh object in which primitive is created. |
| a_lengthX | Size along X axis. |
| a_lengthY | Size along Y axis. |
| a_radiusCorners | Radius of corners. |
| a_numSegmentsPerCorner | Number of segments per rounded corner. |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_color | Color of vertices. |
| void chai3d::cCreatePanel2 | ( | cMesh * | a_mesh, |
| const double & | a_lengthX, | ||
| const double & | a_lengthY, | ||
| const double & | a_cornerTopLeftRadius, | ||
| const double & | a_cornerTopRightRadius, | ||
| const double & | a_cornerBottomLeftRadius, | ||
| const double & | a_cornerBottomRightRadius, | ||
| const int & | a_numSegmentsPerCorner, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_colorTopLeft, | ||
| const cColorf & | a_colorTopRight, | ||
| const cColorf & | a_colorBottomLeft, | ||
| const cColorf & | a_colorBottomRight | ||
| ) |
This function creates a panel with optional rounded corners.
| a_mesh | Mesh object in which primitive is created. |
| a_lengthX | Size along X axis. |
| a_lengthY | Size along Y axis. |
| a_cornerTopLeftRadius | Radius of top left corner. |
| a_cornerTopRightRadius | Radius of top right corner. |
| a_cornerBottomLeftRadius | Radius of bottom left corner. |
| a_cornerBottomRightRadius | Radius of bottom right corner. |
| a_numSegmentsPerCorner | Number of segments composing the circular corners. |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_colorTopLeft | Color of top left vertex. |
| a_colorTopRight | Color of top right vertex. |
| a_colorBottomLeft | Color of bottom left vertex. |
| a_colorBottomRight | Color of bottom right vertex. |
| void chai3d::cCreateBox | ( | cMesh * | a_mesh, |
| const double & | a_lengthX, | ||
| const double & | a_lengthY, | ||
| const double & | a_lengthZ, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_color | ||
| ) |
This function creates a box by defining its size along the x, y and z axis. Texture coordinates are defined so that the bitmap image is displayed on each face of the box.
| a_mesh | Mesh object in which primitive is created. |
| a_lengthX | Size along X axis. |
| a_lengthY | Size along Y axis. |
| a_lengthZ | Size along Z axis. |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_color | Color of vertices. |
| void chai3d::cCreateCylinder | ( | cMesh * | a_mesh, |
| const double & | a_height, | ||
| const double & | a_radius, | ||
| const unsigned int | a_numSides, | ||
| const unsigned int | a_numHeightSegments, | ||
| const unsigned int | a_numRings, | ||
| const bool | a_includeTop, | ||
| const bool | a_includeBottom, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_color | ||
| ) |
This function creates a cylinder by defining its radius and height. The user may also decide if the top and bottom discs should be included. Texture coordinates are defined so that the bitmap image wraps around the cylinder. The texture coordinates for the top part of the cylinder are set to (0.0, 0.0, 0.0). The texture coordinates for the bottom part of the cylinder are set to (1.0, 1.0, 0.0). When texture is enabled, the colors defining the top and bottoms sections of the cylinder are defined by both texels.
| a_mesh | Mesh object in which primitive is created. |
| a_height | Height of the cylinder. |
| a_radius | Radius of the cylinder. |
| a_numSides | Number of sides composing the cylinder. |
| a_numHeightSegments | Number of segments along the cylinder axis. |
| a_numRings | Number of rings that compose the top and bottom disks. |
| a_includeTop | If true, then the top disc is included. |
| a_includeBottom | If true, then the bottom disc is included. |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_color | Color of vertices. |
| void chai3d::cCreateCone | ( | cMesh * | a_mesh, |
| const double & | a_height, | ||
| const double & | a_radiusBottom, | ||
| const double & | a_radiusTop, | ||
| const unsigned int | a_numSides, | ||
| const unsigned int | a_numHeightSegments, | ||
| const unsigned int | a_numRings, | ||
| const bool | a_includeBottom, | ||
| const bool | a_includeTop, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_color | ||
| ) |
This function creates a cone by defining its height and bottom radius. By defining a top radius larger than zero, it is possible to create a truncated cone. Top and bottom parts can also be included or not.
| a_mesh | Mesh object in which primitive is created. |
| a_height | Height of cone. |
| a_radiusBottom | Bottom radius of cone. |
| a_radiusTop | Top radius of cone. Apply 0 value for non truncated cone. |
| a_numSides | Number of sides composing the cone. |
| a_numHeightSegments | Number of segments along the cone axis. |
| a_numRings | Number of rings that compose the top and bottom disks. |
| a_includeTop | If true, then the top disc is included. (truncated cone) |
| a_includeBottom | If true, then the bottom disc is included. |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_color | Color of vertices. |
| void chai3d::cCreatePipe | ( | cMesh * | a_mesh, |
| const double & | a_height, | ||
| const double & | a_innerRadius, | ||
| const double & | a_outerRadius, | ||
| const unsigned int | a_numSides, | ||
| const unsigned int | a_numHeightSegments, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_color | ||
| ) |
This function creates a pipe by defining a height, inner radius and outer radius.
| a_mesh | Mesh object in which primitive is created. |
| a_height | Height of the pipe. |
| a_innerRadius | Inner radius of the pipe. |
| a_outerRadius | Outer radius of the pipe. |
| a_numSides | Number of sides composing the pipe. |
| a_numHeightSegments | Number of segments along the cylinder axis. |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_color | Color of vertices. |
| void chai3d::cCreateSphere | ( | cMesh * | a_mesh, |
| const double & | a_radius, | ||
| const unsigned int | a_numSlices, | ||
| const unsigned int | a_numStacks, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_color | ||
| ) |
This function creates sphere by defining its radius.
| a_mesh | Mesh object in which primitive is created. |
| a_radius | Radius of sphere. |
| a_numSlices | Specifies the number of subdivisions around the z axis (similar to lines of longitude). |
| a_numStacks | Specifies the number of subdivisions along the z axis (similar to lines of latitude). |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_color | Color of vertices. |
| void chai3d::cCreateEllipsoid | ( | cMesh * | a_mesh, |
| const double & | a_radiusX, | ||
| const double & | a_radiusY, | ||
| const double & | a_radiusZ, | ||
| const unsigned int | a_numSlices, | ||
| const unsigned int | a_numStacks, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_color | ||
| ) |
This function creates an ellipsoid by defining the radius properties along each axis X, Y and Z.
| a_mesh | Mesh object in which primitive is created. |
| a_radiusX | Radius along X axis. |
| a_radiusY | Radius along Y axis. |
| a_radiusZ | Radius along Z axis. |
| a_numSlices | Specifies the number of subdivisions around the z axis (similar to lines of longitude). |
| a_numStacks | Specifies the number of subdivisions along the z axis (similar to lines of latitude). |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_color | Color of vertices. |
| void chai3d::cCreateRing | ( | cMesh * | a_mesh, |
| const double & | a_innerRadius, | ||
| const double & | a_outerRadius, | ||
| const unsigned int | a_numSides, | ||
| const unsigned int | a_numRings, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_color | ||
| ) |
This function creates a torus by defining the inner and outer radius values.
| a_mesh | Mesh object in which primitive is created. |
| a_innerRadius | Inner radius of the torus. |
| a_outerRadius | Outer radius of the torus. |
| a_numSides | Number of sides for each radial section. |
| a_numRings | Number of radial divisions for the torus. |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_color | Color of vertices. |
| void chai3d::cCreateRingSection | ( | cMesh * | a_mesh, |
| const double & | a_innerRadius0, | ||
| const double & | a_innerRadius1, | ||
| const double & | a_outerRadius, | ||
| const double & | a_coverageAngleDEG, | ||
| const bool | a_includeExtremityFaces, | ||
| const unsigned int | a_numSides, | ||
| const unsigned int | a_numRings, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_color | ||
| ) |
This function creates a torus by defining the inner and outer radius values.
| a_mesh | Mesh object in which primitive is created. |
| a_innerRadius0 | Inner radius of the ring at the beginning extremity. |
| a_innerRadius1 | Inner radius of the ring at the end extremity. |
| a_outerRadius | Outer radius of the torus. |
| a_coverageAngleDEG | Coverage angle in degrees (from 0 to 360). |
| a_includeExtremityFaces | Include flat surfaces at extremities of ring section. |
| a_numSides | Number of sides for each radial section. |
| a_numRings | Number of radial divisions for the torus. |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_color | Color of vertices. |
| void chai3d::cCreateSquarePyramid | ( | cMesh * | a_mesh, |
| const double & | a_height, | ||
| const double & | a_baseSize, | ||
| const bool | a_includeBottom, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_color | ||
| ) |
This function creates a square pyramid.
| a_mesh | Mesh object in which primitive is created. |
| a_height | Height of square pyramid. |
| a_baseSize | Size of a base of the pyramid. |
| a_includeBottom | If true, then the bottom (square) of the pyramid is included. |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_color | Color of vertices. |
| void chai3d::cCreateTeaPot | ( | cMesh * | a_mesh, |
| const double & | a_size, | ||
| const int & | a_resolution, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_color | ||
| ) |
This function creates a copy of the famous OpenGL tea pot.
| a_mesh | Mesh object in which primitive is created. |
| a_size | Size of the tea pot. |
| a_resolution | Number of divisions per patch. |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_color | Color of vertices. |
| void chai3d::cCreateArrow | ( | cMesh * | a_mesh, |
| const double & | a_length, | ||
| const double & | a_radiusShaft, | ||
| const double & | a_lengthTip, | ||
| const double & | a_radiusTip, | ||
| const bool | a_includeTipsAtBothExtremities, | ||
| const unsigned int | a_numSides, | ||
| const cVector3d & | a_direction, | ||
| const cVector3d & | a_pos, | ||
| const cColorf & | a_color | ||
| ) |
This function creates a linear arrow.
| a_mesh | Mesh object in which primitive is created. |
| a_length | Length of arrow. |
| a_radiusShaft | Radius of arrow shaft. |
| a_lengthTip | Length or arrow tip. |
| a_radiusTip | Radius of arrow tip. |
| a_includeTipsAtBothExtremities | Include tip at both extremities of arrow. |
| a_numSides | Number of sides for each radial section. |
| a_direction | Direction of arrow. |
| a_pos | Position where to build the new primitive. |
| a_color | Color of vertices. |
| void chai3d::cCreateCircularArrow | ( | cMesh * | a_mesh, |
| const double & | a_innerRadius0, | ||
| const double & | a_innerRadius1, | ||
| const double & | a_outerRadius, | ||
| const double & | a_lengthTip, | ||
| const double & | a_radiusTip, | ||
| const double & | a_coverageAngleDeg, | ||
| const bool | a_includeTipsAtBothExtremities, | ||
| const unsigned int | a_numSides, | ||
| const unsigned int | a_numRings, | ||
| const cVector3d & | a_direction, | ||
| const cVector3d & | a_pos, | ||
| const cColorf & | a_color | ||
| ) |
This function creates a circular arrow.
| a_mesh | Mesh object in which primitive is created. |
| a_innerRadius0 | Length of arrow. |
| a_innerRadius1 | Radius of arrow shaft. |
| a_outerRadius | Radius of arrow shaft. |
| a_lengthTip | Length or arrow tip. |
| a_radiusTip | Radius of arrow tip. |
| a_coverageAngleDeg | Coverage angle of the arrow (0-360 degrees) |
| a_includeTipsAtBothExtremities | Include tip at both extremities of arrow. |
| a_numSides | Number of sides for each radial section. |
| a_numRings | Number of radial divisions for the circular shaft. |
| a_direction | Direction of circular arrow plane. |
| a_pos | Position where to build the new primitive. |
| a_color | Color of vertices. |
| void chai3d::cCreateBezierPatch | ( | cMesh * | a_mesh, |
| const cVector3d * | a_controlPoints, | ||
| const int | a_numDivisions, | ||
| const cVector3d & | a_pos, | ||
| const cMatrix3d & | a_rot, | ||
| const cColorf & | a_color | ||
| ) |
This function creates a Bezier patch from a set of control points.
| a_mesh | Mesh object in which primitive is created. |
| a_controlPoints | Bezier control points (16). |
| a_numDivisions | Number of division along each side of the patch. |
| a_pos | Position where to build the new primitive. |
| a_rot | Orientation of the new primitive. |
| a_color | Color of vertices. |
| void chai3d::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) |
||
| ) |
|
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 |
This function determines the position of a point along a Bezier curve at t [0:1].
| a_controlPoints | Control points. (4 in total) |
| a_t | Parameter t between 0 and 1. |
|
inline |
This function determines the position of a point along a Bezier patch at u [0:1] and v [0:1].
| a_controlPoints | Control points. (16 in total) |
| a_u | Parameter u between 0 and 1. |
| a_v | Parameter v between 0 and 1. |
This function determines the derivative of a point along a Bezier curve at t [0:1].
| a_controlPoints | Control points. (4 in total) |
| a_t | Parameter t between 0 and 1. |
|
inline |
This function determines the derivative of a point on a Bezier patch along the u parametric direction.
| a_controlPoints | Control points. (16 in total) |
| a_u | Parameter u between 0 and 1. |
| a_v | Parameter v between 0 and 1. |
|
inline |
This function determines the derivative of a point on a Bezier patch along the v parametric direction.
| a_controlPoints | Control points. (16 in total) |
| a_u | Parameter u between 0 and 1. |
| a_v | Parameter v between 0 and 1. |
|
inline |
This function determines the surface normal at a point on a Bezier patch at u [0:1] and v [0:1].
| a_controlPoints | Control points. (16 in total) |
| a_u | Parameter u between 0 and 1. |
| a_v | Parameter v between 0 and 1. |
|
inline |
This function computes the area of a triangle described by the position of its three vertices a_vertex0, a_vertex1, and a_vertex2.
| a_vertex0 | Vertex 0 of triangle. |
| a_vertex1 | Vertex 1 of triangle. |
| a_vertex2 | Vertex 2 of triangle. |
|
inline |
This function computes the projection of a point a_point onto a plane. The plane is expressed by a point a_planePoint and a surface normal a_planeNormal.
| a_point | Point to be projected on the plane. |
| a_planePoint | Point on the plane. |
| a_planeNormal | Surface normal of the plane. |
|
inline |
This function computes the projection of a point onto a plane. The plane is expressed by a set of three points passed by argument.
| a_point | Point to be projected onto the plane. |
| a_planePoint0 | Point 0 of plane. |
| a_planePoint1 | Point 1 of plane. |
| a_planePoint2 | Point 2 of plane. |
|
inline |
This function computes the projection of a point a_point onto a plane described by three points a_planePoint0, a_planePoint1, and a_planePoint2.
The function returns two parameters a_r01 and a_r01 which describe the position of the projected point onto the plane.
where:
| a_point | Point to be projected onto plane. |
| a_planePoint0 | Point 0 of plane. |
| a_planePoint1 | Point 1 of plane. |
| a_planePoint2 | Point 2 of plane. |
| a_r01 | Returned relative position factor v01. |
| a_r02 | Returned relative position factor v02. |
|
inline |
This function computes the projection of a point a_point on a line. The line is expressed by a point a_pointOnLine located on the line and a direction vector a_directionOfLine.
| a_point | Point to be projected onto the line. |
| a_pointOnLine | Point located on the line. |
| a_directionOfLine | Direction vector of the line. |
|
inline |
This function computes the projection of a point a_point onto a segment. The segment is described by its two extremity points a_segmentPointA and a_segmentPointB.
| a_point | Point to be projected. |
| a_segmentPointA | Point A of segment. |
| a_segmentPointB | Point B of segment. |
|
inline |
This function computes the projection of a point onto a disk lying in the XY plane.
The position of the disk along the z-axis is expressed by parameter a_height.
The radius of the disk is expressed by parameter a_radius.
| a_point | Point to be projected. |
| a_height | Position of the disk along the z-axis. |
| a_radius | Radius of the disk. |
|
inline |
This function computes the projection of a point onto a triangle expressed by its three vertices.
| a_point | Point to be projected. |
| a_vertex0 | Triangle vertex 0. |
| a_vertex1 | Triangle vertex 1. |
| a_vertex2 | Triangle vertex 2. |
This function computes the projection of a vector V0 onto a vector V1, where V0 and V1 are passed by argument as a_vector0 and a_vector1.
| a_vector0 | Vector V0. |
| a_vector1 | Vector V1. |
|
inline |
This function computes the distance between a point and a line. The line is described by two points a_linePoint1 and a_linePoint2 located along the line.
| a_point | Point to be tested. |
| a_linePoint1 | Point 1 on line. |
| a_linePoint2 | Point 2 on line. |
|
inline |
This function computes the surface normal of a plane defined by three points passed by argument.
| a_surfacePoint0 | Point 0 on surface. |
| a_surfacePoint1 | Point 1 on surface. |
| a_surfacePoint2 | Point 2 on surface. |
|
inline |
This function check if a point is contained in a box. The box is described by its minimum and maximum corners a_boxMin and a_boxMax.
If the point is located inside the box, then then function returns true, otherwise it returns false.
| a_point | Test point. |
| a_boxMin | Minimum coordinate of the box. |
| a_boxMax | Maximum coordinate of the box. |
|
inline |
This function computes the intersection between a segment and a plane.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The plane is described by a point a_planePos and a surface normal a_planeNormal.
The function returns the number of collision points that were detected (0 or 1).
If a collision occurs, the collision point and collision normal are returned by arguments a_collisionPoint and a_collisionNormal.
| a_segmentPointA | First point of segment AB. |
| a_segmentPointB | Second point of segment AB. |
| a_planePos | Position of a point on the plane. |
| a_planeNormal | Surface normal of the plane. |
| a_collisionPoint | Returned intersection point (if detected). |
| a_collisionNormal | Returned surface normal at intersection point (if detected). |
|
inline |
This function computes the intersection between a segment and a disk.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The disk is described by a point a_diskPos, a surface normal a_diskNormal, and a radius a_diskRadius.
The function returns the number of collision points that were detected (0 or 1).
If a collision occurs, the collision point and collision normal are returned by arguments a_collisionPoint and a_collisionNormal.
| a_segmentPointA | First point of segment AB. |
| a_segmentPointB | Second point of segment AB. |
| a_diskPos | Position of the disk center. |
| a_diskNormal | Surface normal of the disk. |
| a_diskRadius | Radius of the disk. |
| a_collisionPoint | Returned intersection point (if detected). |
| a_collisionNormal | Returned surface normal at intersection point (if detected). |
|
inline |
This function computes the intersection between a segment and a sphere.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The sphere is described by its position a_spherePos and a radius a_sphereRadius.
The function returns the number of collision points that were detected (0, 1, or 2).
If a collision occurs, the collision point(s) and collision normal(s) are returned by arguments a_collisionPoint0, a_collisionNormal0, a_collisionPoint1, and a_collisionNormal1.
If two intersection points are detected, collisionPoint0 is the nearest point to segmentPointA of segment AB.
If the segment begins inside the sphere, then all intersections are ignored.
| a_segmentPointA | First point of segment AB. |
| a_segmentPointB | Second point of segment AB. |
| a_spherePos | Position of sphere center. |
| a_sphereRadius | Radius of sphere. |
| a_collisionPoint0 | Returned intersection point 0 (if detected). |
| a_collisionNormal0 | Returned surface normal 0 at intersection point (if detected). |
| a_collisionPoint1 | Returned intersection point 1 (if detected). |
| a_collisionNormal1 | Returned surface normal 1 at intersection point (if detected). |
|
inline |
This function computes the intersection between a segment and a sphere.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The sphere is described by its position a_spherePos and a radius a_sphereRadius.
The function returns the number of collision points that were detected (0, 1, or 2).
If a collision occurs, the collision point(s) and collision normal(s) are returned by arguments a_collisionPoint0, a_collisionNormal0, a_collisionPoint1, and a_collisionNormal1.
If two intersection points are detected, collisionPoint0 is the nearest point to segmentPointA of segment AB.
If the segment begins inside the sphere, then all intersections are ignored.
| a_segmentPointA | First point of segment AB. |
| a_segmentPointB | Second point of segment AB. |
| a_pos | Position of ellipsoid center. |
| a_radiusX | Ellipsoid radius along x axis. |
| a_radiusY | Ellipsoid radius along y axis. |
| a_radiusZ | Ellipsoid radius along z axis. |
| a_collisionPoint0 | Returned intersection point 0 (if detected). |
| a_collisionNormal0 | Returned surface normal 0 at intersection point (if detected). |
| a_collisionPoint1 | Returned intersection point 1 (if detected). |
| a_collisionNormal1 | Returned surface normal 1 at intersection point (if detected). |
|
inline |
This function computes the intersection between a segment and a topless cylinder.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The cylinder is described by two extremity points a_cylinderPointA and a_cylinderPointB, and a radius a_cylinderRadius.
The function returns the number of collision points that were detected (0, 1, or 2).
If a collision occurs, the collision point(s) and collision normal(s) are returned by arguments a_collisionPoint0, a_collisionPoint1,a_collisionNormal0 and a_collisionNormal1.
If two intersection points occur, collisionPoint0 is the nearest point to segmentPointA of segment AB.
If the segment begins inside the cylinder, then all intersections are ignored.
| a_segmentPointA | First point of segment AB. |
| a_segmentPointB | Second point of segment AB. |
| a_cylinderPointA | Extremity point A of cylinder. |
| a_cylinderPointB | Extremity point B of cylinder. |
| a_cylinderRadius | Radius of cylinder. |
| a_collisionPoint0 | Returned intersection point 0 (if detected). |
| a_collisionNormal0 | Returned surface normal 0 at intersection point (if detected). |
| a_collisionPointRelPosAB0 | Returned relative position of collision point 0 projected on segment a_segmentPointA - a_segmentPointB |
| a_collisionPoint1 | Returned intersection point 1 (if detected). |
| a_collisionNormal1 | Returned surface normal 1 at intersection point (if detected). |
| a_collisionPointRelPosAB1 | Returned relative position of collision point 1 projected on segment a_segmentPointA - a_segmentPointB |
|
inline |
This function computes the nearest intersection point between a segment and a cylinder.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The cylinder is aligned along the z-axis and is described by its height a_height, base radius a_baseRadius, and a top radius a_topRadius.
The function returns the number of collision points that were detected (0 or 1).
If a collision occurs, the collision point and collision normal are returned by arguments a_collisionPoint and a_collisionNormal.
If the segment begins inside the cylinder, then all intersections are ignored.
| a_segmentPointA | First point of segment AB. |
| a_segmentPointB | Second point of segment AB. |
| a_baseRadius | Radius of cylinder a z = 0.0. |
| a_topRadius | Radius of cylinder a z = a_height. |
| a_height | Height of cylinder. |
| a_collisionPoint | Returned intersection point (if detected). |
| a_collisionNormal | Returned surface normal at intersection point (if detected). |
|
inline |
This function computes the nearest intersection point between a segment and a box.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The box is aligned with all axes and is described by its minimum and maximum corners a_boxMin and a_boxMax.
The function returns the number of collision points that were detected (0 or 1).
If a collision occurs, the collision point and collision normal are returned by arguments a_collisionPoint and a_collisionNormal.
| a_segmentPointA | First point of segment AB. |
| a_segmentPointB | Second point of segment AB. |
| a_boxMin | Minimum coordinate of box. |
| a_boxMax | Maximum coordinate of box. |
| a_collisionPoint | Returned intersection point (if detected). |
| a_collisionNormal | Returned surface normal at intersection point (if detected). |
|
inline |
This function computes the nearest intersection point between a segment and a torus centered around the z-axis.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The torus is described by its inner a_innerRadius and outer radius a_outerRadius.
The function returns the number of collision points that were detected (0 or 1).
If a collision occurs, the collision point and collision normal are returned by arguments a_collisionPoint and a_collisionNormal.
| a_segmentPointA | First point of segment AB. |
| a_segmentPointB | Second point of segment AB. |
| a_innerRadius | Inner radius of torus. |
| a_outerRadius | Outer radius of torus. |
| a_collisionPoint | Returned intersection point (if detected). |
| a_collisionNormal | Returned surface normal at intersection point (if detected). |
|
inline |
This function computes the intersection between a segment and a triangle defined by three vertices a_triangleVertex0, a_triangleVertex1, and a_triangleVertex2.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The function returns the number of collision points that were detected (0 or 1).
If a collision occurs, the collision point and collision normal are returned by arguments a_collisionPoint and a_collisionNormal.
| a_segmentPointA | First point of segment AB. |
| a_segmentPointB | Second point of segment AB. |
| a_triangleVertex0 | Vertex 0 of triangle. |
| a_triangleVertex1 | Vertex 1 of triangle. |
| a_triangleVertex2 | Vertex 2 of triangle. |
| a_reportFrontSideCollision | If true, then front side collisions are reported. |
| a_reportBackSideCollision | If true, then back side collisions are reported. |
| a_collisionPoint | Returned intersection point (if detected). |
| a_collisionNormal | Returned surface normal at intersection point (if detected). |
| a_collisionPosVertex01 | Returned relative position of collision point projected on segment a_triangleVertex0 -a_triangleVertex1. |
| a_collisionPosVertex02 | Returned relative position of collision point projected on segment a_triangleVertex0 -a_triangleVertex1 |
|
inline |
This function linearly interpolate the position where an isosurface cuts an edge between two vertices, each with their own scalar value.
| a_isolevel | Iso value. |
| a_p1 | Point 1. |
| a_p2 | Point 2. |
| a_valp1 | Value at point 1. |
| a_valp2 | Value at point 2. |
|
inline |
Given a grid cell and an isolevel, this function calculates the triangular facets required to represent the isosurface through the cell. The function returns the number of triangular facets and at most 5 of them. 0 will be returned if the grid cell is either totally above of totally below the isolevel.
| a_grid | Grid composed of 8 voxels |
| a_isolevel | Isovalue. |
| a_triangles | Returned triangles. |
|
inline |
This function checks if a given bit is enabled. The function takes by argument an unsigned integer a_value and the position of the bit a_bitPosition to be tested.
If the selected bit is enabled, the function returns true, otherwise false.
| a_value | Unsigned int value. |
| a_bitPosition | Bit position [0..31]. |
|
inline |
This function sets the value of a specified bit of an unsigned integer.
The function takes by argument an unsigned integer a_value, the position of the bit to be tested a_bitPosition, and its new value a_value as a boolean.
The function returns the modified unsigned integer as a result.
| a_data | Input unsigned integer data. |
| a_bitPosition | Bit position [0..31] |
| a_value | New state of bit (true = 1, false = 0). |
|
inline |
This function checks if a value passed by argument a_value is equal to or almost near zero.
| a_value | Value to be checked. |
| a_tolerance | Tolerance value. |
|
inline |
This function checks if a value passed by argument a_value is equal to or almost near zero.
| a_value1 | Value 1 to be compared. |
| a_value2 | Value 2 to be compared. |
| a_tolerance | Tolerance value. |
|
inline |
This function computes the absolute value of a value a_value passed by argument.
| a_value | Input value. |
|
inline |
This function computes the sign of a value passed by argument a_value.
| a_value | Value to be evaluated. |
|
inline |
This function returns the maximum value between two values a_value1 and a_value2 passed by argument.
| a_value1 | First value. |
| a_value2 | Second value. |
a_value1 and a_value2.
|
inline |
This function returns the minimum value between two values a_value1 and a_value2 passed by argument.
| a_value1 | First value. |
| a_value2 | Second value. |
a_value1 and a_value2.
|
inline |
This function returns the maximum value between three values a_value1, a_value2, and a_value3 passed by argument.
| a_value1 | First value. |
| a_value2 | Second value. |
| a_value3 | Third value. |
a_value1, a_value2, and a_value3.
|
inline |
This function returns the minimum value between three values a_value1, a_value2, and a_value3 passed by argument.
| a_value1 | First value. |
| a_value2 | Second value. |
| a_value3 | Third value. |
a_value1, a_value2, and a_value3.
|
inline |
This function swaps two elements a_value1 and a_value2 passed by argument.
| a_value1 | First value. |
| a_value2 | Second value. |
|
inline |
This function computes a linear interpolation between values a_value1 (when a_level = 0.0) and a_value2 (when a_level = 1.0).
| a_level | Interpolation factor ranging from 0.0 to 1.0. |
| a_value1 | First value. |
| a_value2 | Second value. |
|
inline |
This function clamps an input value a_value to a specified range.
The range is specified by a lower bound a_low and upper bound a_high.
| a_value | Value to be clamped. |
| a_low | Lower boundary value. |
| a_high | Upper boundary value. |
|
inline |
This function clamps an input value a_value to a value ranged between 0 and infinity.
| a_value | Value to be clamped. |
|
inline |
This function clamps an input value a_value to a value ranged between 0.0 and 1.0.
| a_value | Value to be clamped. |
|
inline |
This function checks whether a value a_value is within a range specified by arguments a_low and a_high.
| a_value | Value to be tested. |
| a_low | Lower boundary value. |
| a_high | Upper boundary value. |
|
inline |
This function computes the square of a scalar a_value passed by argument.
| a_value | Input value. |
a_value.
|
inline |
This function computes the square root of a scalar a_value passed by argument.
| a_value | Input value. |
a_value.
|
inline |
This function computes the cubic root of a scalar a_value passed by argument.
| a_value | Input value. |
|
inline |
This method computes the modulo of a double within a range. The range is defined by a_min and a_max passed by argument
| a_value | Input value. |
| a_min | Minimum range. |
| a_max | Maximum range. |
|
inline |
This function computes the cosine of an angle defined in degrees.
The angle a_angleDeg is passed by argument.
| a_angleDeg | Angle in degrees. |
a_angleDeg.
|
inline |
This function computes the sine of an angle defined in degrees.
The angle a_angleDeg is passed by argument.
| a_angleDeg | Angle in degrees. |
a_angleDeg.
|
inline |
This function computes the tangent of an angle defined in degrees.
The angle a_angleDeg is passed by argument.
| a_angleDeg | Angle in degrees. |
a_angleDeg.
|
inline |
This function computes the cosine of an angle defined in radians.
The angle a_angleRad is passed by argument.
| a_angleRad | Angle in radians. |
a_angleRad.
|
inline |
This function computes the sine of an angle defined in radians.
The angle a_angleRad is passed by argument.
| a_angleRad | Angle in radians. |
a_angleRad.
|
inline |
This function computes the tangent of an angle defined in radians.
The angle a_angleRad is passed by argument.
| a_angleRad | Angle in radians. |
a_angleRad.
|
inline |
This function converts an angle a_angleDeg expressed in degrees to an angle expressed in radians.
| a_angleDeg | Angle in degrees. |
|
inline |
This function converts an angle a_angleRad expressed in radians to an angle expressed in degrees.
| a_angleRad | Angle in radians. |
|
inline |
This function returns the number of digits that compose a given integer a_value passed by argument.
| a_value | Value to be evaluated. |
This function computes the addition of two vectors.
The vectors are passed by argument as a_vector1 and a_vector2.
| a_vector1 | First vector. |
| a_vector2 | Second vector. |
|
inline |
This function computes the addition of three vectors.
The vectors are passed by argument as a_vector1, a_vector2, and a_vector3.
| a_vector1 | First vector. |
| a_vector2 | Second vector. |
| a_vector3 | Third vector. |
This function computes the subtraction of two vectors.
The vectors are passed by argument as a_vector1 and a_vector2.
| a_vector1 | First vector. |
| a_vector2 | Second vector. |
This function computes the negated vector of a vector a_vector passed by argument.
| a_vector | Vector to be negated. |
This function computes the multiplication of a vector by a scalar.
The vector a_vector and scalar a_scalar are passed by argument.
| a_value | Scalar. |
| a_vector | Vector to be scaled. |
This function computes the division of a vector by a scalar.
The vector a_vector and scalar a_scalar are passed by argument.
| a_value | Scalar. |
| a_vector | Vector to be scaled. |
This function compute the cross product between two vectors.
Both vectors are passed by argument as a_vector1 and a_vector2.
| a_vector1 | Vector1. |
| a_vector2 | Vector2. |
This function computes the dot product between two vectors.
Both vectors are passed by argument as a_vector1 and a_vector2.
| a_vector1 | Vector1. |
| a_vector2 | Vector2. |
This function computes the normalized vector of a vector a_vector passed by argument.
| a_vector | Vector to be normalized. |
This function computes the distance between two points a_point1 and a_point2 passed by argument.
| a_point1 | First point. |
| a_point2 | Second point. |
This function computes the squared distance between two points a_point1 and a_point2 passed by argument.
| a_point1 | First point. |
| a_point2 | Second point. |
|
inline |
This function determine whether two vectors represent the same point.
Both points, a_point1 and a_point2, are passed by argument.
A parameter a_epsilon defines the distance tolerance between both points such that if the computed distance is smaller than a_epsilon, then both points are considered to be equal.
The function returns true if both points are determined equal, or false otherwise.
| a_point1 | First point. |
| a_point2 | Second point. |
| a_epsilon | Distance tolerance. Defaults value is set to C_SMALL. |
|
inline |
The function returns the identity matrix.
The function computes the addition between two matrices a_matrix1 and a_matrix2 that are passed by argument.
| a_matrix1 | First matrix. |
| a_matrix2 | Second matrix. |
This function computes the subtraction between two matrices a_matrix1 and a_matrix2 that are passed by argument.
| a_matrix1 | First matrix. |
| a_matrix2 | Second matrixs. |
|
inline |
This function creates a rotation matrix from a set of Euler angles defined in radians and co-moving axes of rotations.
The angles are defined in radians and passed by argument as a_angleRad1, a_angleRad2, and a_angleRad3.
The order of the rotations are defined by argument a_eulerOrder. See cEulerOrder for more information.
The argument a_useIntrinsicEulerModel defines if the instrinsic (true) or extrinsic (false) model is used.
| a_angleRad1 | Angle in radians of the first rotation in the sequence. |
| a_angleRad2 | Angle in radians of the second rotation in the sequence. |
| a_angleRad3 | Angle in radians of the third rotation in the sequence. |
| a_eulerOrder | The order of the axes about which the rotations are to be applied |
| a_useIntrinsicEulerModel | If true use intrinsic Euler model, if false use extrinsic Euler model. |
|
inline |
This function creates a rotation matrix from a set of Euler angles defined in degrees and co-moving axes of rotations.
The angles are defined in radian and passed by argument as a_angleDeg1, a_angleDeg2, and a_angleDeg3.
The order of the rotations are defined by argument a_eulerOrder. See cEulerOrder for more information.
The argument a_useIntrinsicEulerModel defines if the instrinsic (true) or extrinsic (false) model is used.
| a_angleDeg1 | Angle in degrees of the first rotation in the sequence. |
| a_angleDeg2 | Angle in degrees of the second rotation in the sequence. |
| a_angleDeg3 | Angle in degrees of the third rotation in the sequence. |
| a_eulerOrder | The order of the axes about which the rotations are to be applied |
| a_useIntrinsicEulerModel | If true use intrinsic Euler model, if false use extrinsic Euler model. |
|
inline |
This function creates a rotation matrix from an axis-angle representation.
The axis is defined by arguments a_axisX, a_axisY, and a_axisZ. The rotation angle is defined in radians by argument a_angleRad.
| a_axisX | x component of axis. |
| a_axisY | y component of axis. |
| a_axisZ | z component of axis. |
| a_angleRad | Angle of rotation in radians. |
|
inline |
This function creates a rotation matrix from an axis-angle representation.
The axis is defined by arguments a_axisX, a_axisY, and a_axisZ. The rotation angle is defined in degrees by argument a_angleDeg.
| a_axisX | x component of axis. |
| a_axisY | y component of axis. |
| a_axisZ | z component of axis. |
| a_angleDeg | Angle of roation in degrees. |
This function computes the multiplication of two matrices a_matrix1 and a_matrix2 passed by argument.
| a_matrix1 | First matrix. |
| a_matrix2 | Second matrix. |
This function computes the multiplication of a matrix a_matrix and a vector a_vector passed by argument.
This function computes the transpose of a matrix a_matrix passed by argument.
| a_matrix | Matrix to be transposed. |
a_matrix. This function computes the the inverse of a matrix a_matrix passed by argument.
| a_matrix | Matrix to be inversed. |
This function computes the angle in radians between two vectors a_vector1 and a_vector2 passed by argument.
| a_vector1 | First vector. |
| a_vector2 | Second vector. |
This function computes the cosine of the angle between two vectors a_vector1 and a_vector2 passed by argument.
| a_vector1 | First vector. |
| a_vector2 | Second vector. |
|
inline |
This function determines the solution of a linear equation.
It takes as parameters a pointer to the two coefficient of the linear equation (the c[1] is the coefficient of x and so on) and a pointer to the two element array in which the solution is to be placed. It outputs is a solution has been found.
| a_coefficient | Input coefficient values. |
| a_solution | Output roots found. |
|
inline |
This function determines the roots of a quadric equation
It takes as parameters a pointer to the three coefficient of the quadric equation (the c[2] is the coefficient of x2 and so on) and a pointer to the two element array in which the roots are to be placed. It outputs the number of roots found.
| a_coefficient | Input coefficient values. |
| a_solution | Output roots found. |
|
inline |
This function determines the roots of a cubic equation.
It takes as parameters a pointer to the four coefficient of the cubic equation (the c[3] is the coefficient of x3 and so on) and a pointer to the three element array in which the roots are to be placed. It outputs the number of roots found.
| a_coefficient | Input coefficient values. |
| a_solution | Output roots found. |
|
inline |
This function determines the roots of a quartic equation.
It takes as parameters a pointer to the five coefficient of the quartic equation (the c[4] is the coefficient of x^4 and so on) and a pointer to the four element array in which the roots are to be placed. It outputs the number of roots found.
| a_coefficient | Input coefficient values. |
| a_solution | Output roots found. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
An overloaded * operator for matrix/matrix multiplication.
|
inline |
An overloaded * operator for matrix/vector multiplication.
| int chai3d::cSocketInitialize | ( | ) |
This function initializes a TCP or UDP socket.
| int chai3d::cSocketBlock | ( | int | a_socket, |
| bool | a_block | ||
| ) |
This function configures a TCP or UDP socket blocking mode.
| a_socket | The index of the socket to configure. |
| a_block | true to make the socket blocking, false otherwise. |
| void chai3d::cSocketClose | ( | int & | a_socket | ) |
This function closes a TCP or UDP socket.
| a_socket | The index of the socket to configure. |
| void chai3d::cSocketCleanup | ( | ) |
This function clears all flags on a TCP or UDP socket.
| int chai3d::cSocketSetTimeout | ( | int | a_socket, |
| double | a_timeout | ||
| ) |
This function sets the timeout associated with a TCP or UDP socket.
| a_socket | The index of the socket to configure. |
| a_timeout | The desired socket timeout in (s). |
| double chai3d::cSocketGetTimeout | ( | int | a_socket | ) |
This function retrieves the timeout associated with a TCP or UDP socket.
| a_socket | The index of the socket to configure. |
| int chai3d::cSocketGetLocalIP | ( | int | a_index, |
| sockaddr_in * | a_sin | ||
| ) |
This function retrieves the local IP address.
| a_index | The index of the network interface (NIC) to query in the system. |
| a_sin | A pointer to a structure that will hold the IP address on success. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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. |
| std::string chai3d::cGetCurrentPath | ( | ) |
This function returns the absolute path of the current executable linked agains the CHAI3D library. On Mac OS X, this returns the path to the bundle (as opposed to the path to the actual executable nested within the bundle).
| const std::string chai3d::cGetVersion | ( | ) |
This function returns the version of the CHAI3D library as a string.
| void chai3d::cGetVersion | ( | int & | a_major, |
| int & | a_minor, | ||
| int & | a_patch | ||
| ) |
This function returns the versions of the CHAI3D library as defined by the semantic versioning 2.0 guidelines (semver.org).
| a_major | The major version number. |
| a_minor | The minor version number. |
| a_patch | The patch number. |
| int chai3d::cStrLength | ( | const char * | a_input | ) |
This function computes the length of an ANSI string of up to 255 characters. If the end of the string cannot be found, then -1 is returned as a result.
| a_input | Input ANSI string. (Pointer to first character). |
| std::string chai3d::cGetFilename | ( | const std::string & | a_input, |
| const bool | a_includeFileExtension | ||
| ) |
This function discards the path component of a filename and returns the filename itself, optionally including the file extension.
| a_input | Input string containing path and filename. |
| a_includeFileExtension | If true, then file extension is included. |
| std::string chai3d::cGetFileExtension | ( | const std::string & | a_input, |
| const bool | a_includeDot | ||
| ) |
This function extracts the file extension of a file, optionally include the dot at the beginning of the extension.
Example: .jpg
| a_input | Input filename string with or without path. |
| a_includeDot | If true, then include the dot at the beginning of the extension. |
| std::string chai3d::cGetDirectory | ( | const std::string & | a_input | ) |
This function extracts the directory path portion of the source, and include trailing '/'. If there are no '/'s found, then the function returns an empty string.
| a_input | Input string including directory path and filename. |
| std::string chai3d::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.
| a_input | Input string including path and filename. |
| a_extension | New file extension. |
| std::string chai3d::cStr | ( | const bool | a_value | ) |
This function converts a boolean into a string.
| a_value | Input value of type boolean. |
| std::string chai3d::cStr | ( | const int | a_value | ) |
This function converts an integer into a string.
| a_value | Input value of type integer. |
| std::string chai3d::cStr | ( | const unsigned int | a_value | ) |
This function converts an unsigned integer into a string.
| a_value | Input value of type unsigned integer. |
| std::string chai3d::cStr | ( | const float | a_value, |
| const unsigned int | a_precision | ||
| ) |
This function converts a float into a string.
| a_value | Input value of type float. |
| a_precision | Number of digits displayed after the decimal point. |
| std::string chai3d::cStr | ( | const double | a_value, |
| const unsigned int | a_precision | ||
| ) |
This function converts a double into a string.
| a_value | Input value of type double. |
| a_precision | Number of digits displayed after the decimal point. |
| std::string chai3d::cStrToLower | ( | const std::string & | a_input | ) |
This function converts a string into lowercase.
| a_input | Input string to be converted. |
| 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_XTOUCH_MAX_BUTTONS = 200 |
| const int chai3d::C_XTOUCH_MAX_SLIDERS = 200 |
| const int chai3d::C_XTOUCH_MAX_DIALS = 200 |
| 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_objLoaderUnifyVerticesWithSamePosition = 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.
| bool chai3d::g_objLoaderShouldGenerateExtraVertices = false |
| bool chai3d::g_objLoaderMinimizeNumberOfMeshes = true |
| 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::CFONT_CALIBRI_144_WIDTH = 1024 |
| const unsigned int chai3d::CFONT_CALIBRI_144_HEIGHT = 1024 |
| const unsigned int chai3d::CFONT_CALIBRI_144_CHARSET_BASE = 112 |
| const unsigned int chai3d::CFONT_CALIBRI_144_CHARSET_LINEHEIGHT = 144 |
| const unsigned int chai3d::CFONT_CALIBRI_144_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CALIBRI_144_CHARSET[] |
| const unsigned char chai3d::CFONT_CALIBRI_144_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CALIBRI_16_WIDTH = 128 |
| const unsigned int chai3d::CFONT_CALIBRI_16_HEIGHT = 128 |
| const unsigned int chai3d::CFONT_CALIBRI_16_CHARSET_BASE = 12 |
| const unsigned int chai3d::CFONT_CALIBRI_16_CHARSET_LINEHEIGHT = 16 |
| const unsigned int chai3d::CFONT_CALIBRI_16_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CALIBRI_16_CHARSET[] |
| const unsigned char chai3d::CFONT_CALIBRI_16_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CALIBRI_18_WIDTH = 128 |
| const unsigned int chai3d::CFONT_CALIBRI_18_HEIGHT = 128 |
| const unsigned int chai3d::CFONT_CALIBRI_18_CHARSET_BASE = 14 |
| const unsigned int chai3d::CFONT_CALIBRI_18_CHARSET_LINEHEIGHT = 18 |
| const unsigned int chai3d::CFONT_CALIBRI_18_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CALIBRI_18_CHARSET[] |
| const unsigned char chai3d::CFONT_CALIBRI_18_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CALIBRI_20_WIDTH = 128 |
| const unsigned int chai3d::CFONT_CALIBRI_20_HEIGHT = 128 |
| const unsigned int chai3d::CFONT_CALIBRI_20_CHARSET_BASE = 16 |
| const unsigned int chai3d::CFONT_CALIBRI_20_CHARSET_LINEHEIGHT = 20 |
| const unsigned int chai3d::CFONT_CALIBRI_20_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CALIBRI_20_CHARSET[] |
| const unsigned char chai3d::CFONT_CALIBRI_20_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CALIBRI_22_WIDTH = 256 |
| const unsigned int chai3d::CFONT_CALIBRI_22_HEIGHT = 256 |
| const unsigned int chai3d::CFONT_CALIBRI_22_CHARSET_BASE = 17 |
| const unsigned int chai3d::CFONT_CALIBRI_22_CHARSET_LINEHEIGHT = 22 |
| const unsigned int chai3d::CFONT_CALIBRI_22_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CALIBRI_22_CHARSET[] |
| const unsigned char chai3d::CFONT_CALIBRI_22_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CALIBRI_24_WIDTH = 256 |
| const unsigned int chai3d::CFONT_CALIBRI_24_HEIGHT = 256 |
| const unsigned int chai3d::CFONT_CALIBRI_24_CHARSET_BASE = 19 |
| const unsigned int chai3d::CFONT_CALIBRI_24_CHARSET_LINEHEIGHT = 24 |
| const unsigned int chai3d::CFONT_CALIBRI_24_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CALIBRI_24_CHARSET[] |
| const unsigned char chai3d::CFONT_CALIBRI_24_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CALIBRI_26_WIDTH = 256 |
| const unsigned int chai3d::CFONT_CALIBRI_26_HEIGHT = 256 |
| const unsigned int chai3d::CFONT_CALIBRI_26_CHARSET_BASE = 20 |
| const unsigned int chai3d::CFONT_CALIBRI_26_CHARSET_LINEHEIGHT = 26 |
| const unsigned int chai3d::CFONT_CALIBRI_26_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CALIBRI_26_CHARSET[] |
| const unsigned char chai3d::CFONT_CALIBRI_26_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CALIBRI_28_WIDTH = 256 |
| const unsigned int chai3d::CFONT_CALIBRI_28_HEIGHT = 256 |
| const unsigned int chai3d::CFONT_CALIBRI_28_CHARSET_BASE = 22 |
| const unsigned int chai3d::CFONT_CALIBRI_28_CHARSET_LINEHEIGHT = 28 |
| const unsigned int chai3d::CFONT_CALIBRI_28_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CALIBRI_28_CHARSET[] |
| const unsigned char chai3d::CFONT_CALIBRI_28_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CALIBRI_32_WIDTH = 256 |
| const unsigned int chai3d::CFONT_CALIBRI_32_HEIGHT = 256 |
| const unsigned int chai3d::CFONT_CALIBRI_32_CHARSET_BASE = 25 |
| const unsigned int chai3d::CFONT_CALIBRI_32_CHARSET_LINEHEIGHT = 32 |
| const unsigned int chai3d::CFONT_CALIBRI_32_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CALIBRI_32_CHARSET[] |
| const unsigned char chai3d::CFONT_CALIBRI_32_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CALIBRI_36_WIDTH = 256 |
| const unsigned int chai3d::CFONT_CALIBRI_36_HEIGHT = 256 |
| const unsigned int chai3d::CFONT_CALIBRI_36_CHARSET_BASE = 28 |
| const unsigned int chai3d::CFONT_CALIBRI_36_CHARSET_LINEHEIGHT = 36 |
| const unsigned int chai3d::CFONT_CALIBRI_36_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CALIBRI_36_CHARSET[] |
| const unsigned char chai3d::CFONTCALIBRI36_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CALIBRI_40_WIDTH = 256 |
| const unsigned int chai3d::CFONT_CALIBRI_40_HEIGHT = 256 |
| const unsigned int chai3d::CFONT_CALIBRI_40_CHARSET_BASE = 31 |
| const unsigned int chai3d::CFONT_CALIBRI_40_CHARSET_LINEHEIGHT = 40 |
| const unsigned int chai3d::CFONT_CALIBRI_40_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CALIBRI_40_CHARSET[] |
| const unsigned char chai3d::CFONT_CALIBRI_40_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CALIBRI_72_WIDTH = 1024 |
| const unsigned int chai3d::CFONT_CALIBRI_72_HEIGHT = 1024 |
| const unsigned int chai3d::CFONT_CALIBRI_72_CHARSET_BASE = 56 |
| const unsigned int chai3d::CFONT_CALIBRI_72_CHARSET_LINEHEIGHT = 72 |
| const unsigned int chai3d::CFONT_CALIBRI_72_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CALIBRI_72_CHARSET[] |
| const unsigned char chai3d::CFONT_CALIBRI_72_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CONSOLAS_16_WIDTH = 256 |
| const unsigned int chai3d::CFONT_CONSOLAS_16_HEIGHT = 256 |
| const unsigned int chai3d::CFONT_CONSOLAS_16_CHARSET_BASE = 13 |
| const unsigned int chai3d::CFONT_CONSOLAS_16_CHARSET_LINEHEIGHT = 16 |
| const unsigned int chai3d::CFONT_CONSOLAS_16_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CONSOLAS_16_CHARSET[] |
| const unsigned char chai3d::CFONT_CONSOLAS_16_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CONSOLAS_18_WIDTH = 256 |
| const unsigned int chai3d::CFONT_CONSOLAS_18_HEIGHT = 256 |
| const unsigned int chai3d::CFONT_CONSOLAS_18_CHARSET_BASE = 14 |
| const unsigned int chai3d::CFONT_CONSOLAS_18_CHARSET_LINEHEIGHT = 18 |
| const unsigned int chai3d::CFONT_CONSOLAS_18_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CONSOLAS_18_CHARSET[] |
| const unsigned char chai3d::CFONT_CONSOLAS_18_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CONSOLAS_20_WIDTH = 256 |
| const unsigned int chai3d::CFONT_CONSOLAS_20_HEIGHT = 256 |
| const unsigned int chai3d::CFONT_CONSOLAS_20_CHARSET_BASE = 16 |
| const unsigned int chai3d::CFONT_CONSOLAS_20_CHARSET_LINEHEIGHT = 20 |
| const unsigned int chai3d::CFONT_CONSOLAS_20_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CONSOLAS_20_CHARSET[] |
| const unsigned char chai3d::CFONT_CONSOLAS_20_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CONSOLAS_22_WIDTH = 256 |
| const unsigned int chai3d::CFONT_CONSOLAS_22_HEIGHT = 256 |
| const unsigned int chai3d::CFONT_CONSOLAS_22_CHARSET_BASE = 17 |
| const unsigned int chai3d::CFONT_CONSOLAS_22_CHARSET_LINEHEIGHT = 22 |
| const unsigned int chai3d::CFONT_CONSOLAS_22_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CONSOLAS_22_CHARSET[] |
| const unsigned char chai3d::CFONT_CONSOLAS_22_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CONSOLAS_24_WIDTH = 256 |
| const unsigned int chai3d::CFONT_CONSOLAS_24_HEIGHT = 256 |
| const unsigned int chai3d::CFONT_CONSOLAS_24_CHARSET_BASE = 19 |
| const unsigned int chai3d::CFONT_CONSOLAS_24_CHARSET_LINEHEIGHT = 24 |
| const unsigned int chai3d::CFONT_CONSOLAS_24_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CONSOLAS_24_CHARSET[] |
| const unsigned char chai3d::CFONT_CONSOLAS_24_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CONSOLAS_28_WIDTH = 256 |
| const unsigned int chai3d::CFONT_CONSOLAS_28_HEIGHT = 256 |
| const unsigned int chai3d::CFONT_CONSOLAS_28_CHARSET_BASE = 22 |
| const unsigned int chai3d::CFONT_CONSOLAS_28_CHARSET_LINEHEIGHT = 28 |
| const unsigned int chai3d::CFONT_CONSOLAS_28_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CONSOLAS_28_CHARSET[] |
| const unsigned char chai3d::CFONT_CONSOLAS_28_BYTEARRAY[] |
| const unsigned int chai3d::CFONT_CONSOLAS_32_WIDTH = 256 |
| const unsigned int chai3d::CFONT_CONSOLAS_32_HEIGHT = 256 |
| const unsigned int chai3d::CFONT_CONSOLAS_32_CHARSET_BASE = 25 |
| const unsigned int chai3d::CFONT_CONSOLAS_32_CHARSET_LINEHEIGHT = 32 |
| const unsigned int chai3d::CFONT_CONSOLAS_32_CHARSET_PAGES = 1 |
| const int chai3d::CFONT_CONSOLAS_32_CHARSET[] |
| const unsigned char chai3d::CFONT_CONSOLAS_32_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 unsigned int chai3d::C_HISTOGRAM_MAX_SAMPLES = 6000 |
| const int chai3d::C_SCOPE_MAX_SAMPLES = 6000 |
| const int chai3d::C_NUM_VOXEL_RENDERING_MODES = 9 |