AnimatLab  2
Test
Libraries/BulletAnimatSim/StdAfx.h
1 // stdafx.h : include file for standard system include files,
2 // or project specific include files that are used frequently, but
3 // are changed infrequently
4 //
5 
6 #pragma once
7 
8 #ifdef WIN32
9  #define _SCL_SECURE_NO_WARNINGS
10  #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
11  // Windows Header Files:
12  #include <windows.h>
13 
14  #define BULLET_PORT __declspec( dllexport )
15 #else
16  #define BULLET_PORT
17 #endif
18 
19 //#define STD_TRACING_ON
20 
21 #include "StdUtils.h"
22 #include "AnimatSim.h"
23 
24 #include "OsgAnimatSim.h"
25 #include "BulletAnimatSimConstants.h"
26 
27 #include <osgbDynamics/MotionState.h>
28 #include <osgbDynamics/CreationRecord.h>
29 #include <osgbDynamics/RigidBody.h>
30 #include <osgbCollision/CollisionShapes.h>
31 #include <osgbCollision/RefBulletObject.h>
32 #include <osgbCollision/CollectVerticesVisitor.h>
33 #include <osgbDynamics/GroundPlane.h>
34 #include <osgbCollision/GLDebugDrawer.h>
35 #include <osgbCollision/Utils.h>
36 #include <osgbInteraction/DragHandler.h>
37 #include <osgbInteraction/LaunchHandler.h>
38 #include <osgbInteraction/SaveRestoreHandler.h>
39 
40 #include <osgwTools/InsertRemove.h>
41 #include <osgwTools/FindNamedNode.h>
42 #include <osgwTools/GeometryOperation.h>
43 #include <osgwTools/GeometryModifier.h>
44 #include <osgwTools/Shapes.h>
45 
46 #include <btBulletDynamicsCommon.h>
47 #include "BulletCollision/CollisionShapes/btShapeHull.h"
48 #include "BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h"
49 #include "BulletDynamics/MLCPSolvers/btDantzigSolver.h"
50 #include "BulletDynamics/MLCPSolvers/btMLCPSolver.h"
51 #include "LinearMath/btGeometryUtil.h"
52 
53 //Simulation Objects
54 namespace BulletAnimatSim
55 {
56  class BlClassFactory;
57  class BlSimulator;
58 
59  namespace Environment
60  {
61  class BlJoint;
62  class BlMotorizedJoint;
63  class BlMaterialType;
66  class BlRigidBody;
67 
68  namespace Bodies
69  {
70  class BlBox;
71  class BlCone;
72  class BlCylinder;
73  class BlLinearHillMuscle;
75  class BlPlane;
76  class BlSphere;
77  class BlSpring;
78  }
79 
80  namespace Joints
81  {
82  class BlBallSocket;
83  class BlHinge;
84  class BlHingeLimit;
85  class BlPrismatic;
86  class BlPrismaticLimit;
87  }
88  }
89 
90  //namespace Recording
91  //{
92  // namespace KeyFrames
93  // {
94  // class VsSnapshotKeyFrame;
95  // class VsVideoKeyFrame;
96  // }
97 
98  // class VsSimulationRecorder;
99  //}
100 
101  namespace Visualization
102  {
103  class BlIntersectionEvent;
104  }
105 }
106 
107 using namespace BulletAnimatSim;
108 using namespace BulletAnimatSim::Environment;
111 using namespace BulletAnimatSim::Visualization;
A common class for all joint data specific to vortex.
Definition: BlJoint.h:29
Vortex ball-and-socket joint class.
Definition: BlBallSocket.h:29
A common class for all rigid body data specific to vortex.
Definition: BlRigidBody.h:87
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
Implements an override of the btGeneric6DofConstraint so I can access key data..
Vortex hinge joint class.
Definition: BlHinge.h:32
Body part classes that use the vortex physics engine.
Definition: BlBox.cpp:16