Back to index

supertuxkart  0.5+dfsg1
Public Types | Public Member Functions
btIDebugDraw Class Reference

#include <btIDebugDraw.h>

Inheritance diagram for btIDebugDraw:
Inheritance graph
[legend]

List of all members.

Public Types

enum  DebugDrawModes {
  DBG_NoDebug = 0, DBG_DrawWireframe = 1, DBG_DrawAabb = 2, DBG_DrawFeaturesText = 4,
  DBG_DrawContactPoints = 8, DBG_NoDeactivation = 16, DBG_NoHelpText = 32, DBG_DrawText = 64,
  DBG_ProfileTimings = 128, DBG_EnableSatComparison = 256, DBG_DisableBulletLCP = 512, DBG_EnableCCD = 1024,
  DBG_MAX_DEBUG_DRAW_MODE
}

Public Member Functions

virtual ~btIDebugDraw ()
virtual void drawLine (const btVector3 &from, const btVector3 &to, const btVector3 &color)=0
virtual void drawTriangle (const btVector3 &v0, const btVector3 &v1, const btVector3 &v2, const btVector3 &n0, const btVector3 &n1, const btVector3 &n2, const btVector3 &color, btScalar alpha)
virtual void drawTriangle (const btVector3 &v0, const btVector3 &v1, const btVector3 &v2, const btVector3 &color, btScalar alpha)
virtual void drawContactPoint (const btVector3 &PointOnB, const btVector3 &normalOnB, btScalar distance, int lifeTime, const btVector3 &color)=0
virtual void reportErrorWarning (const char *warningString)=0
virtual void draw3dText (const btVector3 &location, const char *textString)=0
virtual void setDebugMode (int debugMode)=0
virtual int getDebugMode () const =0
void drawAabb (const btVector3 &from, const btVector3 &to, const btVector3 &color)

Detailed Description

Definition at line 34 of file btIDebugDraw.h.


Member Enumeration Documentation

Enumerator:
DBG_NoDebug 
DBG_DrawWireframe 
DBG_DrawAabb 
DBG_DrawFeaturesText 
DBG_DrawContactPoints 
DBG_NoDeactivation 
DBG_NoHelpText 
DBG_DrawText 
DBG_ProfileTimings 
DBG_EnableSatComparison 
DBG_DisableBulletLCP 
DBG_EnableCCD 
DBG_MAX_DEBUG_DRAW_MODE 

Definition at line 38 of file btIDebugDraw.h.


Constructor & Destructor Documentation

virtual btIDebugDraw::~btIDebugDraw ( ) [inline, virtual]

Definition at line 55 of file btIDebugDraw.h.

{};

Member Function Documentation

virtual void btIDebugDraw::draw3dText ( const btVector3 location,
const char *  textString 
) [pure virtual]

Implemented in GLDebugDrawer.

void btIDebugDraw::drawAabb ( const btVector3 from,
const btVector3 to,
const btVector3 color 
) [inline]

Definition at line 80 of file btIDebugDraw.h.

       {

              btVector3 halfExtents = (to-from)* 0.5f;
              btVector3 center = (to+from) *0.5f;
              int i,j;

              btVector3 edgecoord(1.f,1.f,1.f),pa,pb;
              for (i=0;i<4;i++)
              {
                     for (j=0;j<3;j++)
                     {
                            pa = btVector3(edgecoord[0]*halfExtents[0], edgecoord[1]*halfExtents[1],            
                                   edgecoord[2]*halfExtents[2]);
                            pa+=center;

                            int othercoord = j%3;
                            edgecoord[othercoord]*=-1.f;
                            pb = btVector3(edgecoord[0]*halfExtents[0], edgecoord[1]*halfExtents[1],     
                                   edgecoord[2]*halfExtents[2]);
                            pb+=center;

                            drawLine(pa,pb,color);
                     }
                     edgecoord = btVector3(-1.f,-1.f,-1.f);
                     if (i<3)
                            edgecoord[i]*=-1.f;
              }
       }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void btIDebugDraw::drawContactPoint ( const btVector3 PointOnB,
const btVector3 normalOnB,
btScalar  distance,
int  lifeTime,
const btVector3 color 
) [pure virtual]

Implemented in GLDebugDrawer.

Here is the caller graph for this function:

virtual void btIDebugDraw::drawLine ( const btVector3 from,
const btVector3 to,
const btVector3 color 
) [pure virtual]

Implemented in GLDebugDrawer.

Here is the caller graph for this function:

virtual void btIDebugDraw::drawTriangle ( const btVector3 v0,
const btVector3 v1,
const btVector3 v2,
const btVector3 n0,
const btVector3 n1,
const btVector3 n2,
const btVector3 color,
btScalar  alpha 
) [inline, virtual]

Definition at line 59 of file btIDebugDraw.h.

       {
              drawTriangle(v0,v1,v2,color,alpha);
       }
virtual void btIDebugDraw::drawTriangle ( const btVector3 v0,
const btVector3 v1,
const btVector3 v2,
const btVector3 color,
btScalar  alpha 
) [inline, virtual]

Definition at line 63 of file btIDebugDraw.h.

       {
              drawLine(v0,v1,color);
              drawLine(v1,v2,color);
              drawLine(v2,v0,color);
       }

Here is the call graph for this function:

virtual int btIDebugDraw::getDebugMode ( ) const [pure virtual]

Implemented in GLDebugDrawer.

Here is the caller graph for this function:

virtual void btIDebugDraw::reportErrorWarning ( const char *  warningString) [pure virtual]

Implemented in GLDebugDrawer.

Here is the caller graph for this function:

virtual void btIDebugDraw::setDebugMode ( int  debugMode) [pure virtual]

Implemented in GLDebugDrawer.

Here is the caller graph for this function:


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