5 namespace Visualization
11 osg::ref_ptr<osg::Geode> m_gdeLine;
12 osg::ref_ptr<osg::Geometry> m_linesGeom;
13 osg::ref_ptr<osg::LineWidth> m_lineWidth;
16 osg::ref_ptr<osg::Vec3Array> m_aryLines;
19 OsgMovableItem *m_osgRB;
27 osg::Node* GetNode(){
return m_gdeLine.get();};
28 void SetStart(osg::Vec3 v3Start);
29 osg::Vec3 GetStart() {
return m_v3Start; };
31 void SetEnd(osg::Vec3 v3End);
32 osg::Vec3 GetEnd() {
return m_v3End; };
34 void SetGrabPosition(osg::Vec3 v3Grab) {m_v3Grab = v3Grab;};
35 osg::Vec3 GetGrabPosition() {
return m_v3Grab;}
37 void SetRigidBody (RigidBody *lpRB)
40 m_osgRB =
dynamic_cast<OsgMovableItem *
>(lpRB);
42 RigidBody* GetRigidBody() {
return m_lpRB;};
43 OsgMovableItem* GetMovableItem() {
return m_osgRB;};
45 void Visible(
bool bVal);
Classes for implementing the cm-labs vortex physics engine for AnimatLab.