AnimatLab
2
Test
|
Vortex hinge joint class. More...
#include <OsgHinge.h>
Public Member Functions | |
OsgHinge () | |
Default constructor. More... | |
virtual | ~OsgHinge () |
Destructor. More... | |
Protected Member Functions | |
virtual void | CreateCylinderGraphics (float fltHeight, float fltRadius) |
Creates the cylinder graphics. More... | |
virtual void | CreateHingeGraphics (float fltHeight, float fltRadius, float fltFlapWidths, osg::ref_ptr< osg::MatrixTransform > osgJointMT, OsgHingeLimit *lpUpperLimit, OsgHingeLimit *lpLowerLimit, OsgHingeLimit *lpPosFlap) |
virtual void | DeleteHingeGraphics (osg::ref_ptr< osg::MatrixTransform > osgJointMT, OsgHingeLimit *lpUpperLimit, OsgHingeLimit *lpLowerLimit, OsgHingeLimit *lpPosFlap) |
Protected Attributes | |
osg::ref_ptr< osg::Geometry > | m_osgCylinder |
The osg cylinder geometry. | |
osg::ref_ptr< osg::Geode > | m_osgCylinderGeode |
The osg cylinder geode. | |
osg::ref_ptr< osg::Material > | m_osgCylinderMat |
The osg cylinder material. | |
osg::ref_ptr< osg::MatrixTransform > | m_osgCylinderMT |
The osg cylinder matrix transform. | |
osg::ref_ptr< osg::StateSet > | m_osgCylinderSS |
The osg cylinder state set. | |
Vortex hinge joint class.
This class implements a hinge joint. This type of joint prevents linear motion for all three dimensions and it prevents angular motion for two axises. Allowing the two connected bodies to rotate about one axis freely. You can define constraint limits to prevent the motion beyond certain angular limits. This type of joint is also motorized and thus implements the IMotorized interface using the VsMotorized class. This allows the user to control the movement of this joint as if it were a servo motor or a velocity controlled motor.
Definition at line 31 of file OsgHinge.h.
OsgAnimatSim::Environment::Joints::OsgHinge::OsgHinge | ( | ) |
|
virtual |
|
protectedvirtual |
Creates the cylinder graphics.
Definition at line 72 of file OsgHinge.cpp.
References OsgAnimatSim::Environment::CreateConeGeometry(), m_osgCylinder, m_osgCylinderGeode, m_osgCylinderMat, m_osgCylinderMT, and m_osgCylinderSS.