AnimatLab  2
Test
VsPrismaticLimit.h
1 
2 #pragma once
3 
4 namespace VortexAnimatSim
5 {
6  namespace Environment
7  {
8  namespace Joints
9  {
10 
12  {
13  protected:
14  Vx::VxPrismatic *m_vxPrismatic;
15 
16  osg::ref_ptr<osg::Geometry> m_osgCylinder;
17  osg::ref_ptr<osg::Geode> m_osgCylinderGeode;
18  osg::ref_ptr<osg::MatrixTransform> m_osgCylinderMT;
19  osg::ref_ptr<osg::Material> m_osgCylinderMat;
20  osg::ref_ptr<osg::StateSet> m_osgCylinderSS;
21 
22  osg::ref_ptr<osg::Geometry> m_osgBox;
23  osg::ref_ptr<osg::MatrixTransform> m_osgBoxMT;
24  osg::ref_ptr<osg::Material> m_osgBoxMat;
25  osg::ref_ptr<osg::StateSet> m_osgBoxSS;
26 
27  virtual void SetLimitValues();
28 
29  public:
31  virtual ~VsPrismaticLimit();
32 
33  virtual void PrismaticRef(Vx::VxPrismatic *vxPrismatic);
34 
35  virtual void Alpha(float fltA);
36  virtual void SetLimitPos();
37 
38  osg::Geometry *BoxGeometry();
39  osg::MatrixTransform *BoxMT();
40  osg::Material *BoxMat();
41  osg::StateSet *BoxSS();
42 
43  osg::Geometry *CylinderGeometry();
44  osg::MatrixTransform *CylinderMT();
45  osg::Material *CylinderMat();
46  osg::StateSet *CylinderSS();
47 
48  virtual void SetupGraphics();
49  virtual void DeleteGraphics();
50  };
51 
52  } //Joints
53  } // Environment
54 } //VortexAnimatSim
Classes for implementing the cm-labs vortex physics engine for AnimatLab.