Orxonox  0.0.5 Codename: Arcturus
Classes | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
orxonox::BulletDebugDrawer Class Reference

Originally from http://www.ogre3d.org/tikiwiki/BulletDebugDrawer&structure=Cookbook This source code is released into the Public Domain. More...

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/tools/BulletDebugDrawer.h>

Inheritance diagram for orxonox::BulletDebugDrawer:

Classes

struct  ContactPoint
 

Public Member Functions

 BulletDebugDrawer (Ogre::SceneManager *sceneManager)
 
 ~BulletDebugDrawer ()
 
void configure (bool bFill, float fillAlpha)
 
virtual void draw3dText (const btVector3 &location, const char *textString) override
 
virtual void drawBox (const btVector3 &bbMin, const btVector3 &bbMax, const btVector3 &color) override
 
virtual void drawBox (const btVector3 &bbMin, const btVector3 &bbMax, const btTransform &trans, const btVector3 &color) override
 
virtual void drawCone (btScalar radius, btScalar height, int upAxis, const btTransform &transform, const btVector3 &color) override
 
virtual void drawContactPoint (const btVector3 &PointOnB, const btVector3 &normalOnB, btScalar distance, int lifeTime, const btVector3 &color) override
 
virtual void drawCylinder (btScalar radius, btScalar halfHeight, int upAxis, const btTransform &transform, const btVector3 &color) override
 
virtual void drawLine (const btVector3 &from, const btVector3 &to, const btVector3 &color) override
 
virtual void drawSphere (const btVector3 &p, btScalar radius, const btVector3 &color) override
 
virtual void drawSphere (btScalar radius, const btTransform &transform, const btVector3 &color) override
 
virtual int getDebugMode () const override
 
virtual void reportErrorWarning (const char *warningString) override
 
virtual void setDebugMode (int debugMode) override
 

Protected Member Functions

virtual bool frameEnded (const Ogre::FrameEvent &evt) override
 
virtual bool frameStarted (const Ogre::FrameEvent &evt) override
 

Private Attributes

bool bFill_
 
DebugDrawerdrawer_
 
std::vector< ContactPoint > * mContactPoints
 
std::vector< ContactPointmContactPoints1
 
std::vector< ContactPointmContactPoints2
 
DebugDrawModes mDebugMode
 

Detailed Description

Originally from http://www.ogre3d.org/tikiwiki/BulletDebugDrawer&structure=Cookbook This source code is released into the Public Domain.

Modified by Fabian 'x3n' Landau by using DebugDrawer and Orxonox specific utilities (e.g. output).

Constructor & Destructor Documentation

orxonox::BulletDebugDrawer::BulletDebugDrawer ( Ogre::SceneManager *  sceneManager)
orxonox::BulletDebugDrawer::~BulletDebugDrawer ( )

Member Function Documentation

void orxonox::BulletDebugDrawer::configure ( bool  bFill,
float  fillAlpha 
)
void orxonox::BulletDebugDrawer::draw3dText ( const btVector3 &  location,
const char *  textString 
)
overridevirtual
void orxonox::BulletDebugDrawer::drawBox ( const btVector3 &  bbMin,
const btVector3 &  bbMax,
const btVector3 &  color 
)
overridevirtual
void orxonox::BulletDebugDrawer::drawBox ( const btVector3 &  bbMin,
const btVector3 &  bbMax,
const btTransform &  trans,
const btVector3 &  color 
)
overridevirtual
void orxonox::BulletDebugDrawer::drawCone ( btScalar  radius,
btScalar  height,
int  upAxis,
const btTransform &  transform,
const btVector3 &  color 
)
overridevirtual
void orxonox::BulletDebugDrawer::drawContactPoint ( const btVector3 &  PointOnB,
const btVector3 &  normalOnB,
btScalar  distance,
int  lifeTime,
const btVector3 &  color 
)
overridevirtual
void orxonox::BulletDebugDrawer::drawCylinder ( btScalar  radius,
btScalar  halfHeight,
int  upAxis,
const btTransform &  transform,
const btVector3 &  color 
)
overridevirtual
void orxonox::BulletDebugDrawer::drawLine ( const btVector3 &  from,
const btVector3 &  to,
const btVector3 &  color 
)
overridevirtual
void orxonox::BulletDebugDrawer::drawSphere ( const btVector3 &  p,
btScalar  radius,
const btVector3 &  color 
)
overridevirtual
void orxonox::BulletDebugDrawer::drawSphere ( btScalar  radius,
const btTransform &  transform,
const btVector3 &  color 
)
overridevirtual
bool orxonox::BulletDebugDrawer::frameEnded ( const Ogre::FrameEvent &  evt)
overrideprotectedvirtual
bool orxonox::BulletDebugDrawer::frameStarted ( const Ogre::FrameEvent &  evt)
overrideprotectedvirtual
int orxonox::BulletDebugDrawer::getDebugMode ( ) const
overridevirtual
void orxonox::BulletDebugDrawer::reportErrorWarning ( const char *  warningString)
overridevirtual
void orxonox::BulletDebugDrawer::setDebugMode ( int  debugMode)
overridevirtual

Member Data Documentation

bool orxonox::BulletDebugDrawer::bFill_
private
DebugDrawer* orxonox::BulletDebugDrawer::drawer_
private
std::vector<ContactPoint>* orxonox::BulletDebugDrawer::mContactPoints
private
std::vector<ContactPoint> orxonox::BulletDebugDrawer::mContactPoints1
private
std::vector<ContactPoint> orxonox::BulletDebugDrawer::mContactPoints2
private
DebugDrawModes orxonox::BulletDebugDrawer::mDebugMode
private

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