AnimatLab  2
Test
RbCylinder.cpp
1 // RbCylinder.cpp: implementation of the RbCylinder class.
2 //
4 
5 #include "StdAfx.h"
6 #include "RbMovableItem.h"
7 #include "RbBody.h"
8 #include "RbJoint.h"
9 #include "RbMotorizedJoint.h"
10 #include "RbRigidBody.h"
11 #include "RbCylinder.h"
12 #include "RbSimulator.h"
13 
14 namespace RoboticsAnimatSim
15 {
16  namespace Environment
17  {
18  namespace Bodies
19  {
20 
22 // Construction/Destruction
24 
25 RbCylinder::RbCylinder()
26 {
27  SetThisPointers();
28 }
29 
30 RbCylinder::~RbCylinder()
31 {
32  try
33  {
34  }
35  catch(...)
36  {Std_TraceMsg(0, "Caught Error in desctructor of RbCylinder\r\n", "", -1, false, true);}
37 }
38 
40 {
41  RbRigidBody::CreateItem();
42  Cylinder::CreateParts();
43 }
44 
46 {
49 
50  Cylinder::CreateJoints();
51  RbRigidBody::Initialize();
52 }
53 
54  } //Bodies
55  } // Environment
56 } //RoboticsAnimatSim
virtual void CreateJoint()
Creates the joint.
Definition: Joint.cpp:602
virtual void CreateJoints()
Allows the rigid body to create its joints using the chosen physics engine.
Definition: RbCylinder.cpp:45
void Std_TraceMsg(const int iLevel, std::string strMessage, std::string strSourceFile, int iSourceLine, bool bLogToFile, bool bPrintHeader)
Traces a message to the debugger window.
virtual void CreateParts()
Allows the rigid body to create its parts using the chosen physics engine.
Definition: RbCylinder.cpp:39
Classes for implementing the cm-labs vortex physics engine for AnimatLab.