AnimatLab  2
Test
VsHingeLimit.h
1 
2 #pragma once
3 
4 namespace VortexAnimatSim
5 {
6  namespace Environment
7  {
8  namespace Joints
9  {
10 
12  {
13  protected:
14  Vx::VxHinge *m_vxHinge;
15 
16  osg::ref_ptr<osg::Geometry> m_osgFlap;
17  osg::ref_ptr<osg::MatrixTransform> m_osgFlapTranslateMT;
18  osg::ref_ptr<osg::MatrixTransform> m_osgFlapRotateMT;
19 
20  osg::ref_ptr<osg::Material> m_osgFlapMat;
21  osg::ref_ptr<osg::StateSet> m_osgFlapSS;
22 
23  virtual void SetLimitValues();
24 
25  public:
26  VsHingeLimit();
27  virtual ~VsHingeLimit();
28 
29  virtual void HingeRef(Vx::VxHinge *vxHinge);
30 
31  virtual void Alpha(float fltA);
32  virtual void SetLimitPos();
33 
34  osg::Geometry *FlapGeometry() {return m_osgFlap.get();};
35  osg::MatrixTransform *FlapTranslateMT() {return m_osgFlapTranslateMT.get();};
36  osg::MatrixTransform *FlapRotateMT() {return m_osgFlapRotateMT.get();};
37  osg::Material *FlapMat() {return m_osgFlapMat.get();};
38  osg::StateSet *FlapSS() {return m_osgFlapSS.get();};
39 
40  virtual void SetupGraphics();
41  virtual void DeleteGraphics();
42  };
43 
44  } //Joints
45  } // Environment
46 } //VortexAnimatSim
Classes for implementing the cm-labs vortex physics engine for AnimatLab.