OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MWRender::DebugDrawer Class Reference

#include <bulletdebugdraw.hpp>

Inheritance diagram for MWRender::DebugDrawer:
Collaboration diagram for MWRender::DebugDrawer:

Public Member Functions

 DebugDrawer (osg::ref_ptr< osg::Group > parentNode, btCollisionWorld *world)
 
 ~DebugDrawer ()
 
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 Member Functions

void createGeometry ()
 
void destroyGeometry ()
 

Protected Attributes

osg::ref_ptr< osg::Group > mParentNode
 
btCollisionWorld * mWorld
 
osg::ref_ptr< osg::Geometry > mGeometry
 
osg::ref_ptr< osg::Vec3Array > mVertices
 
osg::ref_ptr< osg::DrawArrays > mDrawArrays
 
bool mDebugOn
 

Constructor & Destructor Documentation

MWRender::DebugDrawer::DebugDrawer ( osg::ref_ptr< osg::Group >  parentNode,
btCollisionWorld *  world 
)

Here is the call graph for this function:

MWRender::DebugDrawer::~DebugDrawer ( )

Here is the call graph for this function:

Member Function Documentation

void MWRender::DebugDrawer::createGeometry ( )
protected

Here is the caller graph for this function:

void MWRender::DebugDrawer::destroyGeometry ( )
protected

Here is the caller graph for this function:

void MWRender::DebugDrawer::draw3dText ( const btVector3 &  location,
const char *  textString 
)
inline
void MWRender::DebugDrawer::drawContactPoint ( const btVector3 &  PointOnB,
const btVector3 &  normalOnB,
btScalar  distance,
int  lifeTime,
const btVector3 &  color 
)

Here is the call graph for this function:

void MWRender::DebugDrawer::drawLine ( const btVector3 &  from,
const btVector3 &  to,
const btVector3 &  color 
)

Here is the call graph for this function:

int MWRender::DebugDrawer::getDebugMode ( ) const
void MWRender::DebugDrawer::reportErrorWarning ( const char *  warningString)
void MWRender::DebugDrawer::setDebugMode ( int  isOn)

Here is the call graph for this function:

void MWRender::DebugDrawer::step ( )

Member Data Documentation

bool MWRender::DebugDrawer::mDebugOn
protected
osg::ref_ptr<osg::DrawArrays> MWRender::DebugDrawer::mDrawArrays
protected
osg::ref_ptr<osg::Geometry> MWRender::DebugDrawer::mGeometry
protected
osg::ref_ptr<osg::Group> MWRender::DebugDrawer::mParentNode
protected
osg::ref_ptr<osg::Vec3Array> MWRender::DebugDrawer::mVertices
protected
btCollisionWorld* MWRender::DebugDrawer::mWorld
protected

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