7 #include "BlMotorizedJoint.h"
8 #include "BlRigidBody.h"
11 #include "BlSimulator.h"
34 {
Std_TraceMsg(0,
"Caught Error in desctructor of BlLine\r\n",
"", -1,
false,
true);}
37 void BlLine::SetThisPointers()
39 BlRigidBody::SetThisPointers();
40 OsgLine::SetThisLinePointers();
44 void BlLine::SetupGraphics()
47 GetBlSimulator()->OSGRoot()->addChild(m_osgNode.get());
48 SetVisible(m_lpThisMI->IsVisible());
51 void BlLine::DeleteGraphics()
53 if(m_osgGeometry.valid())
55 m_osgGeometry->setDataVariance(osg::Object::STATIC);
56 m_osgGeometry->dirtyBound();
60 BlRigidBody::DeleteGraphics();
63 void BlLine::CreateGraphicsGeometry()
66 m_osgGeometry = CreateLineGeometry();
69 void BlLine::CreatePhysicsGeometry()
71 m_btCollisionShape = NULL;
76 void BlLine::CreateParts()
80 BlRigidBody::CreateItem();
83 void BlLine::StepSimulation(
float fltTension)
85 OsgLine::StepLineSimulation(m_lpThisBP->Enabled(), fltTension);
88 void BlLine::ResetSimulation()
93 void BlLine::AfterResetSimulation()
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
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.