3 #include "OsgMovableItem.h"
5 #include "OsgRigidBody.h"
8 #include "OsgUserDataVisitor.h"
9 #include "OsgUserData.h"
10 #include "OsgDragger.h"
11 #include "OsgMouseSpring.h"
12 #include "OsgSimulator.h"
16 namespace Visualization
19 OsgUserDataVisitor::OsgUserDataVisitor(
OsgMovableItem *lpItem) :
osg::NodeVisitor(
osg::NodeVisitor::TRAVERSE_ALL_CHILDREN )
24 setNodeMaskOverride(0xFFFFFFFF);
27 OsgUserDataVisitor::~OsgUserDataVisitor(
void)
32 void OsgUserDataVisitor::apply(osg::Geode &osgGeode)
34 int iCount = osgGeode.getNumDrawables();
36 for(
int iIdx=0; iIdx<iCount; iIdx++)
38 osg::Drawable *lpDraw = osgGeode.getDrawable(iIdx);
41 AnimatBase *lpAB =
dynamic_cast<AnimatBase *
>(m_lpItem);
43 lpDraw->setName(lpAB->Name() +
"_Drawable");
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
Declares the vortex structure class.