Logo Search packages:      
Sourcecode: blender version File versions  Download package

btIDebugDraw Class Reference

#include <btIDebugDraw.h>

List of all members.


Detailed Description

The btIDebugDraw interface class allows hooking up a debug renderer to visually debug simulations. Typical use case: create a debug drawer object, and assign it to a btCollisionWorld or btDynamicsWorld using setDebugDrawer and call debugDrawWorld. A class that implements the btIDebugDraw interface has to implement the drawLine method at a minimum.

Definition at line 38 of file btIDebugDraw.h.


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_DrawConstraints = (1 << 11), DBG_DrawConstraintLimits = (1 << 12), DBG_MAX_DEBUG_DRAW_MODE
}

Public Member Functions

virtual void draw3dText (const btVector3 &location, const char *textString)=0
void drawAabb (const btVector3 &from, const btVector3 &to, const btVector3 &color)
void drawArc (const btVector3 &center, const btVector3 &normal, const btVector3 &axis, btScalar radiusA, btScalar radiusB, btScalar minAngle, btScalar maxAngle, const btVector3 &color, bool drawSect, btScalar stepDegrees=btScalar(10.f))
void drawBox (const btVector3 &bbMin, const btVector3 &bbMax, const btTransform &trans, const btVector3 &color)
void drawBox (const btVector3 &bbMin, const btVector3 &bbMax, const btVector3 &color)
virtual void drawBox (const btVector3 &boxMin, const btVector3 &boxMax, const btVector3 &color, btScalar alpha)
virtual void drawContactPoint (const btVector3 &PointOnB, const btVector3 &normalOnB, btScalar distance, int lifeTime, const btVector3 &color)=0
virtual void drawLine (const btVector3 &from, const btVector3 &to, const btVector3 &color)=0
virtual void drawLine (const btVector3 &from, const btVector3 &to, const btVector3 &fromColor, const btVector3 &toColor)
virtual void drawSphere (const btVector3 &p, btScalar radius, const btVector3 &color)
void drawSpherePatch (const btVector3 &center, const btVector3 &up, const btVector3 &axis, btScalar radius, btScalar minTh, btScalar maxTh, btScalar minPs, btScalar maxPs, const btVector3 &color, btScalar stepDegrees=btScalar(10.f))
void drawTransform (const btTransform &transform, btScalar orthoLen)
virtual void drawTriangle (const btVector3 &v0, const btVector3 &v1, const btVector3 &v2, const btVector3 &color, btScalar)
virtual void drawTriangle (const btVector3 &v0, const btVector3 &v1, const btVector3 &v2, const btVector3 &, const btVector3 &, const btVector3 &, const btVector3 &color, btScalar alpha)
virtual int getDebugMode () const =0
virtual void reportErrorWarning (const char *warningString)=0
virtual void setDebugMode (int debugMode)=0

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

Generated by  Doxygen 1.6.0   Back to index