Back to index

supertuxkart  0.5+dfsg1
Public Member Functions | Public Attributes
btOdeTypedJoint Class Reference

#include <btOdeTypedJoint.h>

Inheritance diagram for btOdeTypedJoint:
Inheritance graph
[legend]
Collaboration diagram for btOdeTypedJoint:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 btOdeTypedJoint ()
 btOdeTypedJoint (btTypedConstraint *constraint, int index, bool swap, btOdeSolverBody *body0, btOdeSolverBody *body1)
virtual void GetInfo1 (Info1 *info)
virtual void GetInfo2 (Info2 *info)

Public Attributes

btTypedConstraintm_constraint
int m_index
bool m_swapBodies
btOdeSolverBodym_body0
btOdeSolverBodym_body1
int flags
BU_ContactJointNode node [2]
btScalar lambda [6]

Detailed Description

Definition at line 31 of file btOdeTypedJoint.h.


Constructor & Destructor Documentation

Definition at line 40 of file btOdeTypedJoint.h.

{}
btOdeTypedJoint::btOdeTypedJoint ( btTypedConstraint constraint,
int  index,
bool  swap,
btOdeSolverBody body0,
btOdeSolverBody body1 
) [inline]

Definition at line 41 of file btOdeTypedJoint.h.

                                                                                :
                     m_constraint(constraint),
                     m_index(index),
                     m_swapBodies(swap),
                     m_body0(body0),
                     m_body1(body1)
       {
       }

Member Function Documentation

void btOdeTypedJoint::GetInfo1 ( Info1 info) [virtual]

Implements btOdeJoint.

Reimplemented in OdeD6Joint, and OdeP2PJoint.

Definition at line 20 of file btOdeTypedJoint.cpp.

{
    int joint_type = m_constraint->getConstraintType();
    switch (joint_type)
    {
    case POINT2POINT_CONSTRAINT_TYPE:
    {
        OdeP2PJoint p2pjoint(m_constraint,m_index,m_swapBodies,m_body0,m_body1);
        p2pjoint.GetInfo1(info);
    }
    break;
    case D6_CONSTRAINT_TYPE:
    {
        OdeD6Joint d6joint(m_constraint,m_index,m_swapBodies,m_body0,m_body1);
        d6joint.GetInfo1(info);
    }
    break;
    };
}

Here is the call graph for this function:

void btOdeTypedJoint::GetInfo2 ( Info2 info) [virtual]

Implements btOdeJoint.

Reimplemented in OdeD6Joint, and OdeP2PJoint.

Definition at line 40 of file btOdeTypedJoint.cpp.

{
    int joint_type = m_constraint->getConstraintType();
    switch (joint_type)
    {
    case POINT2POINT_CONSTRAINT_TYPE:
    {
        OdeP2PJoint p2pjoint(m_constraint,m_index,m_swapBodies,m_body0,m_body1);
        p2pjoint.GetInfo2(info);
    }
    break;
    case D6_CONSTRAINT_TYPE:
    {
        OdeD6Joint d6joint(m_constraint,m_index,m_swapBodies,m_body0,m_body1);
        d6joint.GetInfo2(info);
    }
    break;
    };
}

Here is the call graph for this function:


Member Data Documentation

int btOdeJoint::flags [inherited]

Definition at line 88 of file btOdeJoint.h.

btScalar btOdeJoint::lambda[6] [inherited]

Definition at line 90 of file btOdeJoint.h.

Definition at line 37 of file btOdeTypedJoint.h.

Definition at line 38 of file btOdeTypedJoint.h.

Definition at line 34 of file btOdeTypedJoint.h.

Definition at line 35 of file btOdeTypedJoint.h.

Definition at line 36 of file btOdeTypedJoint.h.

Definition at line 89 of file btOdeJoint.h.


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