VirtualPhysics the realtime dynamics simulation library

vpPJoint Class Reference

Prismatic joint. More...

#include <vpPJoint.h>

Inheritance diagram for vpPJoint:

vpJoint

List of all members.

Public Member Functions

void SetDirection (const Vec3 &)
void SetDisplacement (const scalar &)
void SetVelocity (const scalar &)
void SetAcceleration (const scalar &)
void SetForce (const scalar &)
void AddForce (const scalar &)
void SetInitialDisplacement (const scalar &)
void SetElasticity (const scalar &)
void SetDamping (const scalar &)
void SetUpperLimit (const scalar &)
void SetLowerLimit (const scalar &)
void SetRestitution (const scalar &)
const Vec3GetDirection (void) const
scalar GetDisplacement (void) const
scalar GetVelocity (void) const
scalar GetAcceleration (void) const
scalar GetForce (void) const
scalar GetInitialDisplacement (void) const
scalar GetElasticity (void) const
scalar GetDamping (void) const
scalar GetUpperLimit (void) const
scalar GetLowerLimit (void) const
void DisableUpperLimit (void)
void DisableLowerLimit (void)
bool IsEnabledUpperLimit (void) const
bool IsEnabledLowerLimit (void) const
virtual int GetDOF (void) const
virtual scalar GetNormalForce (void) const
virtual scalar GetNormalTorque (void) const


Detailed Description

vpPJoint is a class to model a prismatic joint. Connected bodies can slide relatively about a given direction.
pjoint.gif

Member Function Documentation

VP_INLINE void vpPJoint::SetDirection ( const Vec3 d  ) 

set a sliding direction of the joint.

VP_INLINE void vpPJoint::SetDisplacement ( const scalar &  x  ) 

set a displacement of the joint variable.

VP_INLINE void vpPJoint::SetVelocity ( const scalar &  x  ) 

set a velocity of the joint variable.

VP_INLINE void vpPJoint::SetAcceleration ( const scalar &  x  ) 

set an acceleration of the joint variable.

VP_INLINE void vpPJoint::SetForce ( const scalar &  x  ) 

set a force of the joint. The force will be reset after every simulation step

VP_INLINE void vpPJoint::AddForce ( const scalar &  x  ) 

add a force to the joint. The force will be reset after every simulation step

VP_INLINE void vpPJoint::SetInitialDisplacement ( const scalar &  x  ) 

set an initial distance of the joint variable.

VP_INLINE void vpPJoint::SetElasticity ( const scalar &  x  ) 

set an elasticity of the joint variable.

VP_INLINE void vpPJoint::SetDamping ( const scalar &  x  ) 

set a damping parameter of the joint variable.

VP_INLINE void vpPJoint::SetUpperLimit ( const scalar &  x  ) 

set an upper joint limit.

VP_INLINE void vpPJoint::SetLowerLimit ( const scalar &  x  ) 

set an upper joint limit.

VP_INLINE void vpPJoint::SetRestitution ( const scalar &  e  ) 

set a restitution.

VP_INLINE const Vec3 & vpPJoint::GetDirection ( void   )  const

get a sliding direction of the joint.

VP_INLINE scalar vpPJoint::GetDisplacement ( void   )  const

get a displacement of the joint variable.

VP_INLINE scalar vpPJoint::GetVelocity ( void   )  const

get a velocity of the joint variable.

VP_INLINE scalar vpPJoint::GetAcceleration ( void   )  const

get an acceleration of the joint variable.

VP_INLINE scalar vpPJoint::GetForce ( void   )  const

get a force of the joint.

VP_INLINE scalar vpPJoint::GetInitialDisplacement ( void   )  const

get an intial displacement of the joint variable.

VP_INLINE scalar vpPJoint::GetElasticity ( void   )  const

get an elasticity of the joint variable.

VP_INLINE scalar vpPJoint::GetDamping ( void   )  const

get a damping parameterof the joint variable.

VP_INLINE scalar vpPJoint::GetUpperLimit ( void   )  const

get a upper joint limit.

VP_INLINE scalar vpPJoint::GetLowerLimit ( void   )  const

get an lower joint limit.

VP_INLINE void vpPJoint::DisableUpperLimit ( void   ) 

disable upper joint limit.

VP_INLINE void vpPJoint::DisableLowerLimit ( void   ) 

disable lower joint limit.

VP_INLINE bool vpPJoint::IsEnabledUpperLimit ( void   )  const

return whether this joint is set to have upper limit

VP_INLINE bool vpPJoint::IsEnabledLowerLimit ( void   )  const

return whether this joint is set to have lower limit

VP_INLINE int vpPJoint::GetDOF ( void   )  const [virtual]

return the degrees of freedom.

Implements vpJoint.

VP_INLINE scalar vpPJoint::GetNormalForce ( void   )  const [virtual]

get a magnitude of normal force applied to the joint.

Implements vpJoint.

VP_INLINE scalar vpPJoint::GetNormalTorque ( void   )  const [virtual]

get a magnitude of normal torque applied to the joint.

Implements vpJoint.


Generated on Wed Jun 11 23:11:49 2008 for VirtualPhysics by  doxygen 1.5.5