5 namespace Visualization
8 class ANIMAT_OSG_PORT
OsgUserData :
public osg::Referenced
11 OsgMovableItem *m_lpItem;
17 OsgBody *GetBodyPart() {
return dynamic_cast<OsgBody *
>(m_lpItem);};
19 OsgMovableItem *GetOsgMovable() {
return m_lpItem;};
20 MovableItem *GetMovable() {
return dynamic_cast<MovableItem *
>(m_lpItem);};
23 RigidBody *GetBody() {
return dynamic_cast<RigidBody *
>(m_lpItem);};
26 Joint *GetJoint() {
return dynamic_cast<Joint *
>(m_lpItem);};
28 OsgStructure *GetOsgStucture() {
return dynamic_cast<OsgStructure *
>(m_lpItem);};
29 Structure *GetStructure() {
return dynamic_cast<Structure *
>(m_lpItem);};
31 Light *GetLight() {
return dynamic_cast<Light *
>(m_lpItem);};
Classes for implementing the cm-labs vortex physics engine for AnimatLab.