AnimatLab  2
Test
VsHinge.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace VortexAnimatSim
10 {
11  namespace Environment
12  {
13 
19  namespace Joints
20  {
37  {
38  protected:
40  Vx::VxHinge *m_vxHinge;
41 
42  //Graphics objects for the hinge drawing code
44  osg::ref_ptr<osg::Geometry> m_osgCylinder;
45 
47  osg::ref_ptr<osg::Geode> m_osgCylinderGeode;
48 
50  osg::ref_ptr<osg::MatrixTransform> m_osgCylinderMT;
51 
53  osg::ref_ptr<osg::Material> m_osgCylinderMat;
54 
56  osg::ref_ptr<osg::StateSet> m_osgCylinderSS;
57 
58  virtual void DeleteJointGraphics();
59  virtual void CreateJointGraphics();
60  virtual void SetupGraphics();
61  virtual void SetupPhysics();
62  virtual void DeletePhysics();
63  virtual void CreateCylinderGraphics();
64 
65  public:
66  VsHinge();
67  virtual ~VsHinge();
68 
69  virtual void JointPosition(float fltPos);
70 
71  virtual void SetAlpha();
72 
73 #pragma region DataAccesMethods
74 
75  virtual float *GetDataPointer(const std::string &strDataType);
76  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
77  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
78 
79 #pragma endregion
80 
81  virtual void EnableLimits(bool bVal);
82  virtual void CreateJoint();
83  virtual void StepSimulation();
84  };
85 
86  } //Joints
87  } // Environment
88 } //VortexAnimatSim
osg::ref_ptr< osg::MatrixTransform > m_osgCylinderMT
The osg cylinder matrix transform.
Definition: VsHinge.h:50
osg::ref_ptr< osg::Material > m_osgCylinderMat
The osg cylinder material.
Definition: VsHinge.h:53
osg::ref_ptr< osg::Geode > m_osgCylinderGeode
The osg cylinder geode.
Definition: VsHinge.h:47
Vx::VxHinge * m_vxHinge
The vortex hinge class.
Definition: VsHinge.h:40
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
osg::ref_ptr< osg::Geometry > m_osgCylinder
The osg cylinder geometry.
Definition: VsHinge.h:44
osg::ref_ptr< osg::StateSet > m_osgCylinderSS
The osg cylinder state set.
Definition: VsHinge.h:56
Vortex hinge joint class.
Definition: VsHinge.h:36
A hinge type of joint.
Definition: Hinge.h:39