Back to index

supertuxkart  0.5+dfsg1
Public Member Functions | Private Attributes
DebugDrawcallback Class Reference
Inheritance diagram for DebugDrawcallback:
Inheritance graph
[legend]
Collaboration diagram for DebugDrawcallback:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DebugDrawcallback (btIDebugDraw *debugDrawer, const btTransform &worldTrans, const btVector3 &color)
virtual void internalProcessTriangleIndex (btVector3 *triangle, int partId, int triangleIndex)
virtual void processTriangle (btVector3 *triangle, int partId, int triangleIndex)

Private Attributes

btIDebugDrawm_debugDrawer
btVector3 m_color
btTransform m_worldTrans

Detailed Description

Definition at line 746 of file btDiscreteDynamicsWorld.cpp.


Constructor & Destructor Documentation

DebugDrawcallback::DebugDrawcallback ( btIDebugDraw debugDrawer,
const btTransform worldTrans,
const btVector3 color 
) [inline]

Definition at line 754 of file btDiscreteDynamicsWorld.cpp.

                                                                                                            :
                m_debugDrawer(debugDrawer),
              m_color(color),
              m_worldTrans(worldTrans)
       {
       }

Member Function Documentation

virtual void DebugDrawcallback::internalProcessTriangleIndex ( btVector3 triangle,
int  partId,
int  triangleIndex 
) [inline, virtual]

Implements btInternalTriangleIndexCallback.

Definition at line 761 of file btDiscreteDynamicsWorld.cpp.

       {
              processTriangle(triangle,partId,triangleIndex);
       }

Here is the call graph for this function:

virtual void DebugDrawcallback::processTriangle ( btVector3 triangle,
int  partId,
int  triangleIndex 
) [inline, virtual]

Implements btTriangleCallback.

Definition at line 766 of file btDiscreteDynamicsWorld.cpp.

       {
              (void)partId;
              (void)triangleIndex;

              btVector3 wv0,wv1,wv2;
              wv0 = m_worldTrans*triangle[0];
              wv1 = m_worldTrans*triangle[1];
              wv2 = m_worldTrans*triangle[2];
              m_debugDrawer->drawLine(wv0,wv1,m_color);
              m_debugDrawer->drawLine(wv1,wv2,m_color);
              m_debugDrawer->drawLine(wv2,wv0,m_color);
       }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 749 of file btDiscreteDynamicsWorld.cpp.

Definition at line 748 of file btDiscreteDynamicsWorld.cpp.

Definition at line 750 of file btDiscreteDynamicsWorld.cpp.


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