AnimatLab  2
Test
OsgAnimatSim::Environment::Joints::OsgHinge Class Reference

Vortex hinge joint class. More...

#include <OsgHinge.h>

+ Inheritance diagram for OsgAnimatSim::Environment::Joints::OsgHinge:
+ Collaboration diagram for OsgAnimatSim::Environment::Joints::OsgHinge:

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.
 

Detailed Description

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.

Author
dcofer
Date
4/15/2011

Definition at line 31 of file OsgHinge.h.

Constructor & Destructor Documentation

OsgAnimatSim::Environment::Joints::OsgHinge::OsgHinge ( )

Default constructor.

Author
dcofer
Date
4/15/2011

Definition at line 34 of file OsgHinge.cpp.

OsgAnimatSim::Environment::Joints::OsgHinge::~OsgHinge ( )
virtual

Destructor.

Author
dcofer
Date
4/15/2011

Definition at line 44 of file OsgHinge.cpp.

Member Function Documentation

void OsgAnimatSim::Environment::Joints::OsgHinge::CreateCylinderGraphics ( float  fltHeight,
float  fltRadius 
)
protectedvirtual

Creates the cylinder graphics.

Author
dcofer
Date
4/15/2011

Definition at line 72 of file OsgHinge.cpp.

References OsgAnimatSim::Environment::CreateConeGeometry(), m_osgCylinder, m_osgCylinderGeode, m_osgCylinderMat, m_osgCylinderMT, and m_osgCylinderSS.

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: