My Project
Loading...
Searching...
No Matches
chai3d.h
Go to the documentation of this file.
1//===========================================================================
2/*
3 Software License Agreement (BSD License)
4 Copyright (c) 2003-2024, CHAI3D
5 (www.chai3d.org)
6
7 All rights reserved.
8
9 Redistribution and use in source and binary forms, with or without
10 modification, are permitted provided that the following conditions
11 are met:
12
13 * Redistributions of source code must retain the above copyright
14 notice, this list of conditions and the following disclaimer.
15
16 * Redistributions in binary form must reproduce the above
17 copyright notice, this list of conditions and the following
18 disclaimer in the documentation and/or other materials provided
19 with the distribution.
20
21 * Neither the name of CHAI3D nor the names of its contributors may
22 be used to endorse or promote products derived from this software
23 without specific prior written permission.
24
25 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
28 FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
29 COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
30 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
31 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
32 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
33 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
35 ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 POSSIBILITY OF SUCH DAMAGE.
37
38 \author <http://www.chai3d.org>
39 \author Francois Conti
40 \version 3.3.0
41*/
42//===========================================================================
43
44//---------------------------------------------------------------------------
45#ifndef CCHAI3DH
46#define CCHAI3DH
47//---------------------------------------------------------------------------
48
49//===========================================================================
56//===========================================================================
57
58
59//---------------------------------------------------------------------------
62//---------------------------------------------------------------------------
63#include "audio/CAudioBuffer.h"
64#include "audio/CAudioDevice.h"
65#include "audio/CAudioSource.h"
66
67
68//---------------------------------------------------------------------------
71//---------------------------------------------------------------------------
81
82
83//---------------------------------------------------------------------------
86//---------------------------------------------------------------------------
87#include "graphics/CColor.h"
89#include "graphics/CDraw3D.h"
90#include "graphics/CFog.h"
91#include "graphics/CFont.h"
92#include "graphics/CImage.h"
94#include "graphics/CVideo.h"
102
103
104//---------------------------------------------------------------------------
107//---------------------------------------------------------------------------
108#include "shaders/CShader.h"
110
111
112//---------------------------------------------------------------------------
115//---------------------------------------------------------------------------
117#include "materials/CMaterial.h"
118#include "materials/CNormalMap.h"
119#include "materials/CTexture1d.h"
120#include "materials/CTexture2d.h"
121#include "materials/CTexture3d.h"
123
124
125//---------------------------------------------------------------------------
128//---------------------------------------------------------------------------
129#include "math/CBezier.h"
130#include "math/CConstants.h"
131#include "math/CGeometry.h"
132#include "math/CMaths.h"
133#include "math/CMatrix3d.h"
134#include "math/CMarchingCubes.h"
135#include "math/CPolySolver.h"
136#include "math/CQuaternion.h"
137#include "math/CTransform.h"
138#include "math/CVector3d.h"
139
140
141//---------------------------------------------------------------------------
144//---------------------------------------------------------------------------
145#include "network/CSocket.h"
146
147
148//---------------------------------------------------------------------------
151//---------------------------------------------------------------------------
153#include "widgets/CBackground.h"
154#include "widgets/CBitmap.h"
155#include "widgets/CDial.h"
156#include "widgets/CHistogram.h"
157#include "widgets/CLabel.h"
158#include "widgets/CLevel.h"
159#include "widgets/CPanel.h"
160#include "widgets/CScope.h"
161#include "widgets/CViewPanel.h"
162
163
164//---------------------------------------------------------------------------
167//---------------------------------------------------------------------------
168#include "world/CGenericObject.h"
169#include "world/CMesh.h"
170#include "world/CMultiMesh.h"
171#include "world/CMultiPoint.h"
172#include "world/CMultiSegment.h"
173#include "world/CShapeBox.h"
174#include "world/CShapeCylinder.h"
176#include "world/CShapeLine.h"
177#include "world/CShapeSphere.h"
178#include "world/CShapeTorus.h"
179#include "world/CVoxelObject.h"
180#include "world/CWorld.h"
181
182
183//---------------------------------------------------------------------------
186//---------------------------------------------------------------------------
187#include "display/CCamera.h"
188#include "display/CFrameBuffer.h"
189#include "display/CViewport.h"
190
191
192//---------------------------------------------------------------------------
195//---------------------------------------------------------------------------
199#include "lighting/CSpotLight.h"
200#include "lighting/CShadowMap.h"
201
202
203//---------------------------------------------------------------------------
206//---------------------------------------------------------------------------
207#include "tools/CGenericTool.h"
208#include "tools/CHapticPoint.h"
209#include "tools/CToolCursor.h"
210#include "tools/CToolGripper.h"
211
212
213//---------------------------------------------------------------------------
216//---------------------------------------------------------------------------
223
224
225//---------------------------------------------------------------------------
228//---------------------------------------------------------------------------
233
234
235//---------------------------------------------------------------------------
238//---------------------------------------------------------------------------
243
244
245//---------------------------------------------------------------------------
248//---------------------------------------------------------------------------
251
252
253//---------------------------------------------------------------------------
256//---------------------------------------------------------------------------
257#include "files/CFileAudioMP3.h"
258#include "files/CFileAudioWAV.h"
259#include "files/CFileImageBMP.h"
260#include "files/CFileImageGIF.h"
261#include "files/CFileImageJPG.h"
262#include "files/CFileImagePNG.h"
263#include "files/CFileImagePPM.h"
264#include "files/CFileImageRAW.h"
265#include "files/CFileModel3DS.h"
266#include "files/CFileModelOBJ.h"
267#include "files/CFileModelSTL.h"
268#include "files/CFileModelTRI.h"
269#include "files/CFileXML.h"
270
271
272//---------------------------------------------------------------------------
275//---------------------------------------------------------------------------
276#include "system/CGenericType.h"
277#include "system/CGlobals.h"
278#include "system/CMutex.h"
279#include "system/CString.h"
280#include "system/CThread.h"
281
282
283//---------------------------------------------------------------------------
286//---------------------------------------------------------------------------
316
317
318//---------------------------------------------------------------------------
319#endif
320//---------------------------------------------------------------------------
Implements a finger-proxy force rendering algorithm.
Implements a force algorithm for modeling haptic effects.
Implements an audio Buffer.
Implements an audio device for listening to audio sources.
Implements of an audio source.
Implements a 2D background widget.
Implements support for Bezier curves and surface patches.
Implements a 2D bimap widget.
Implementation of a camera.
Implements an axis-aligned bounding box collision tree (AABB)
Implements basic data structures for storing collision events.
Implements a brute force approach for collision detection.
Implements color properties.
Implements mathematical constants.
Implements support for all Force Dimension and Novint haptic devices.
Implements a 2D dial widget.
Implements a directional light source.
Implementation of class that supports OpenGL display lists.
Implements OpenGL drawing macros.
Implements a haptic magnetic effect.
Implements a haptic stick and slip effect.
Implements a haptic surface effect.
Implements a haptic vibration effect.
Implements a haptic viscosity effect.
Implements MP3 audio file support.
Implements WAV audio file support.
Implements BMP image file support.
Implements GIF image file support.
Implements JPG image file support.
Implements PNG image file support.
Implements PPM image file support.
Implements RAW image file support.
Implements 3DS model file support.
Implements OBJ model file support.
Implements STL model file support.
Implements TRI model file support.
Implements XML file support.
Implements graphic fog capabilities.
Implements support for fonts.
Implementation of a framebuffer.
Implements a frequency counter.
Implements an abstract class for describing elements composed of vertices.
Implements a base class for programming collision detectors that identify intersections between segme...
Implements a device base class.
Implements a base class for haptic effects.
Implements a base class for force rendering algorithms.
Implements a base class for haptic devices.
Implements a base class for light sources.
Implements a base class for all objects.
Implements a base class for textures.
Implements a base class for modeling haptic tools.
Implements a general abstract type.
Implements a base class for widgets.
Implements general geometry utility functions.
Implements option settings for CHAI3D.
Implements a universal haptic device handler.
Implements a haptic point on a tool.
Implements a 2D histogram widget.
Implements a 2D image data structure.
Implements basic structures for handling interaction events.
Implements a 2D text label.
Implements support for the Leap Motion tracker interface.
<Implements a 2D level display widget
Implementation of the marching cube algorithm.
Implements material properties.
Implements general math utility functions.
Implements a 3D matrix.
Implements a class to model polygonal meshes.
Implements an array of 2D image structures.
Implements a 3D multi-mesh object.
Implements a 3D point cloud object.
Implements a collection of 3D segments.
Implements support for mutex objects.
Implements support for custom haptic device.
Implements a normal map.
Implements a panel widget.
Implements support for the 3D-System Phantom haptic device.
Implements arrays of 3D points.
Implements polynomial solvers.
Implements a positional light source.
Implements a high precision clock.
Implements functions to create basic mesh primitives.
Implements a quaternion.
Implements a structure to store rendering options.
Implements a 2D scope widget.
Implement arrays of 3D segments.
Implements an OpenGL shader primitive.
Implements a shader program primitive.
Implements a shadow map.
Implementation of a 3D shape box object.
Implementation of a 3D cylinder object.
Implementation of a 3D shape ellipsoid object.
Implementation of a 3D line object.
Implementation of a 3D shape sphere object.
Implementation of a 3D shape torus object.
Implements support for the Sixense Razor Hydra magnetic tracker interface.
Implements support for TCP and UDP sockets for the Internet Protocol (IP).
Implements a spot light source.
Implements utility functions for manipulating strings.
Implements 1D textures.
Implements 2D textures.
Implements 3D textures.
Implements video textures.
Implements support for handling threads.
Implements a tool cursor using a single haptic point.
Implements a gripper using two haptic points.
Implements a transformation matrix.
Implements arrays of 3D triangles.
Implements a 3D vector.
Implements an array of 3D vertices.
Implements support for video files.
Implements a 2D display panel associated with a framebuffer.
Implementation of a camera.
Implementation of a 3D volumetric object.
Implementation of a virtual world.
Implementation of a interface for the X-Touch midi controller.