Tinman  1.0
Public Types | Public Member Functions | Protected Attributes | List of all members
PhysicsDebugDrawer Class Reference

#include <physicsdebugdrawer.h>

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

Public Types

typedef std::shared_ptr< PhysicsDebugDrawershared
 

Public Member Functions

 PhysicsDebugDrawer (Ogre::SceneNode *node, btDynamicsWorld *world)
 
 ~PhysicsDebugDrawer ()
 
void step ()
 
void drawLine (const btVector3 &from, const btVector3 &to, const btVector3 &color)
 
void drawContactPoint (const btVector3 &PointOnB, const btVector3 &normalOnB, btScalar distance, int lifeTime, const btVector3 &color)
 
void reportErrorWarning (const char *warningString)
 
void draw3dText (const btVector3 &location, const char *textString)
 
void setDebugMode (int isOn)
 
int getDebugMode () const
 

Protected Attributes

Ogre::SceneNode * mNode
 
btDynamicsWorld * mWorld
 
DynamicLinesmLineDrawer
 
bool mDebugOn
 

Member Typedef Documentation

Constructor & Destructor Documentation

PhysicsDebugDrawer::PhysicsDebugDrawer ( Ogre::SceneNode *  node,
btDynamicsWorld *  world 
)
PhysicsDebugDrawer::~PhysicsDebugDrawer ( )

Member Function Documentation

void PhysicsDebugDrawer::draw3dText ( const btVector3 &  location,
const char *  textString 
)
void PhysicsDebugDrawer::drawContactPoint ( const btVector3 &  PointOnB,
const btVector3 &  normalOnB,
btScalar  distance,
int  lifeTime,
const btVector3 &  color 
)
void PhysicsDebugDrawer::drawLine ( const btVector3 &  from,
const btVector3 &  to,
const btVector3 &  color 
)
int PhysicsDebugDrawer::getDebugMode ( ) const
void PhysicsDebugDrawer::reportErrorWarning ( const char *  warningString)
void PhysicsDebugDrawer::setDebugMode ( int  isOn)
void PhysicsDebugDrawer::step ( )

Member Data Documentation

bool PhysicsDebugDrawer::mDebugOn
protected
DynamicLines* PhysicsDebugDrawer::mLineDrawer
protected
Ogre::SceneNode* PhysicsDebugDrawer::mNode
protected
btDynamicsWorld* PhysicsDebugDrawer::mWorld
protected

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