SoJointFixed Class Reference
[libipsa classesJoint Classes]

Defines a fixed joint which fixates the both connected bodies. More...

#include <SoJointFixed.h>

Inheritance diagram for SoJointFixed:

Inheritance graph
[legend]
Collaboration diagram for SoJointFixed:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SoJointFixed (const SbString &BodyOne="", const SbString &BodyTwo="", const SbString &nodeName="")

Static Public Member Functions

static void initClass ()

Public Attributes

SoSFBool soFixed

Protected Member Functions

virtual void createOdeJoint (const dWorldID soWorldId)
virtual void updateOdeJointProperties (const SbMatrix &modelMatrix)

Private Member Functions

 SO_KIT_HEADER (SoJointFixed)


Detailed Description

Defines a fixed joint which fixates the both connected bodies.

The fixed joint maintains a fixed relative position and orientation between two bodies, or between a body and the static environment.

Warning:
This joint should not be used extensively.

Definition at line 32 of file SoJointFixed.h.


Constructor & Destructor Documentation

SoJointFixed::SoJointFixed ( const SbString &  BodyOne = "",
const SbString &  BodyTwo = "",
const SbString &  nodeName = "" 
)

The parameterized constructor of SoJointFixed.

Parameters:
BodyOne name of the first body to connect with (default = "")
BodyTwo name of the second body to connect with (default = "")
nodeName name of the node in the Inventor scenegraph

Definition at line 60 of file SoJointFixed.cpp.

References soFixed.


Member Function Documentation

void SoJointFixed::createOdeJoint ( const dWorldID  soWorldId  )  [protected, virtual]

This method creates a fixed joint using the soWorldId.

Parameters:
soWorldId the ODE world ID used for creating the joint

Reimplemented from SoJoint.

Definition at line 77 of file SoJointFixed.cpp.

References SoJoint::soJointGroupId, and SoJoint::soJointId.

void SoJointFixed::initClass (  )  [static]

Initialises the class and it's type id variables.

Reimplemented from SoJoint.

Definition at line 49 of file SoJointFixed.cpp.

SoJointFixed::SO_KIT_HEADER ( SoJointFixed   )  [private]

void SoJointFixed::updateOdeJointProperties ( const SbMatrix &  modelMatrix  )  [protected, virtual]

This method updates fixed property of the fixed joint based on the value of the member soFixed.

Parameters:
modelMatrix UNUSED

Reimplemented from SoJoint.

Definition at line 89 of file SoJointFixed.cpp.

References soFixed, and SoJoint::soJointId.


Member Data Documentation

The status of the fixed joint (default = true).

  • true = fixed
  • false = not fixed/useless.

Definition at line 42 of file SoJointFixed.h.

Referenced by SoJointFixed(), and updateOdeJointProperties().


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

Get IPSA - Inventor Physics Simulation API at SourceForge.net. Fast, secure and Free Open Source software downloads
Generated on Sat Mar 10 20:00:20 2012 for IPSA by  doxygen 1.5.8