Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

oxygen::SliderJoint Class Reference

#include <sliderjoint.h>

Inheritance diagram for oxygen::SliderJoint:

Inheritance graph
[legend]
Collaboration diagram for oxygen::SliderJoint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SliderJoint ()
virtual ~SliderJoint ()
float GetPosition ()
 returns the slider linear position, i.e.
float GetPositionRate ()
 returns the time derivative of the sliders linear position

Protected Member Functions

virtual void Attach (boost::shared_ptr< Body > body1, boost::shared_ptr< Body > body2)
 attaches the joint to some new bodies
virtual void OnLink ()
 creates a new slider joint
virtual void SetParameter (int parameter, float value)
 sets a joint parameter value
virtual float GetParameter (int parameter)
 returns a joint parameter value

Detailed Description

Definition at line 29 of file sliderjoint.h.


Constructor & Destructor Documentation

SliderJoint::SliderJoint  ) 
 

Definition at line 27 of file sliderjoint.cpp.

SliderJoint::~SliderJoint  )  [virtual]
 

Definition at line 31 of file sliderjoint.cpp.


Member Function Documentation

virtual void oxygen::SliderJoint::Attach boost::shared_ptr< Body body1,
boost::shared_ptr< Body body2
[protected, virtual]
 

attaches the joint to some new bodies

Reimplemented from oxygen::Joint.

float SliderJoint::GetParameter int  parameter  )  [protected, virtual]
 

returns a joint parameter value

Implements oxygen::Joint.

Definition at line 70 of file sliderjoint.cpp.

References oxygen::Joint::mODEJoint.

float SliderJoint::GetPosition  ) 
 

returns the slider linear position, i.e.

the slider's `extension'. When the axis is set, the current position of the attached bodies is examined and that position will be the zero position.

Definition at line 55 of file sliderjoint.cpp.

References oxygen::Joint::mODEJoint.

float SliderJoint::GetPositionRate  ) 
 

returns the time derivative of the sliders linear position

Definition at line 60 of file sliderjoint.cpp.

References oxygen::Joint::mODEJoint.

void SliderJoint::OnLink  )  [protected, virtual]
 

creates a new slider joint

Reimplemented from oxygen::Joint.

Definition at line 35 of file sliderjoint.cpp.

References oxygen::ODEObject::GetWorldID(), and oxygen::Joint::mODEJoint.

Here is the call graph for this function:

void SliderJoint::SetParameter int  parameter,
float  value
[protected, virtual]
 

sets a joint parameter value

Implements oxygen::Joint.

Definition at line 65 of file sliderjoint.cpp.

References oxygen::Joint::mODEJoint.


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:46:29 2006 for rcssserver3d by  doxygen 1.4.4