AnimatLab  2
Test
RbUniversal.cpp
Go to the documentation of this file.
1 
7 #include "StdAfx.h"
8 #include "RbMovableItem.h"
9 #include "RbBody.h"
10 #include "RbJoint.h"
11 #include "RbMotorizedJoint.h"
12 #include "RbRigidBody.h"
13 #include "RbSphere.h"
14 #include "RbSimulator.h"
15 #include "RbUniversal.h"
16 
17 
18 namespace RoboticsAnimatSim
19 {
20  namespace Environment
21  {
22  namespace Joints
23  {
24 
32 {
33  SetThisPointers();
34 }
35 
43 {
44  try
45  {
46  }
47  catch(...)
48  {Std_TraceMsg(0, "Caught Error in desctructor of RbUniversal/\r\n", "", -1, false, true);}
49 }
50 
52 {
53 }
54 
55 #pragma region DataAccesMethods
56 
57 
58 bool RbUniversal::SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError)
59 {
60  //if(RbJoint::Physics_SetData(strDataType, strValue))
61  // return true;
62 
63  if(BallSocket::SetData(strDataType, strValue, false))
64  return true;
65 
66  //If it was not one of those above then we have a problem.
67  if(bThrowError)
68  THROW_PARAM_ERROR(Al_Err_lInvalidDataType, Al_Err_strInvalidDataType, "Data Type", strDataType);
69 
70  return false;
71 }
72 
73 void RbUniversal::QueryProperties(CStdPtrArray<TypeProperty> &aryProperties)
74 {
75  //RbJoint::Physics_QueryProperties(aryProperties);
76  BallSocket::QueryProperties(aryProperties);
77 }
78 
79 #pragma endregion
80 
81  } //Joints
82  } // Environment
83 } //RoboticsAnimatSim
Declares the vs universal class.
virtual void CreateJoint()
Creates the joint.
Definition: RbUniversal.cpp:51
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.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.