|
virtual | ~btIDebugDraw () |
|
virtual DefaultColors | getDefaultColors () const |
|
virtual void | setDefaultColors (const DefaultColors &) |
| the default implementation for setDefaultColors has no effect. A derived class can implement it and store the colors. More...
|
|
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 (btScalar radius, const btTransform &transform, const btVector3 &color) |
|
virtual void | drawSphere (const btVector3 &p, btScalar radius, const btVector3 &color) |
|
virtual void | drawTriangle (const btVector3 &v0, const btVector3 &v1, const btVector3 &v2, const btVector3 &, const btVector3 &, const btVector3 &, const btVector3 &color, btScalar alpha) |
|
virtual void | drawTriangle (const btVector3 &v0, const btVector3 &v1, const btVector3 &v2, const btVector3 &color, btScalar) |
|
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 |
|
virtual void | drawAabb (const btVector3 &from, const btVector3 &to, const btVector3 &color) |
|
virtual void | drawTransform (const btTransform &transform, btScalar orthoLen) |
|
virtual void | drawArc (const btVector3 ¢er, const btVector3 &normal, const btVector3 &axis, btScalar radiusA, btScalar radiusB, btScalar minAngle, btScalar maxAngle, const btVector3 &color, bool drawSect, btScalar stepDegrees=btScalar(10.f)) |
|
virtual void | drawSpherePatch (const btVector3 ¢er, const btVector3 &up, const btVector3 &axis, btScalar radius, btScalar minTh, btScalar maxTh, btScalar minPs, btScalar maxPs, const btVector3 &color, btScalar stepDegrees=btScalar(10.f), bool drawCenter=true) |
|
virtual void | drawBox (const btVector3 &bbMin, const btVector3 &bbMax, const btVector3 &color) |
|
virtual void | drawBox (const btVector3 &bbMin, const btVector3 &bbMax, const btTransform &trans, const btVector3 &color) |
|
virtual void | drawCapsule (btScalar radius, btScalar halfHeight, int upAxis, const btTransform &transform, const btVector3 &color) |
|
virtual void | drawCylinder (btScalar radius, btScalar halfHeight, int upAxis, const btTransform &transform, const btVector3 &color) |
|
virtual void | drawCone (btScalar radius, btScalar height, int upAxis, const btTransform &transform, const btVector3 &color) |
|
virtual void | drawPlane (const btVector3 &planeNormal, btScalar planeConst, const btTransform &transform, const btVector3 &color) |
|
virtual void | clearLines () |
|
virtual void | flushLines () |
|
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 will need to provide non-empty implementations of the the drawLine and getDebugMode methods at a minimum. For color arguments the X,Y,Z components refer to Red, Green and Blue each in the range [0..1]
Definition at line 26 of file btIDebugDraw.h.