For viewing the Newton rigid bodies visually.
More...
#include <OgreNewt_Debugger.h>
|
| ~Debugger () |
|
void | init (Ogre::SceneManager *smgr) |
| init the debugger.
|
|
void | deInit () |
| de-init the debugger (cleantup)
|
|
virtual void | nodeDestroyed (const Ogre::Node *) |
| called when one of the nodes used in this class are destroyed
|
|
void | showDebugInformation () |
| show the newton world
|
|
void | hideDebugInformation () |
| remove lines and text drawn
|
|
void | setDefaultColor (Ogre::ColourValue col) |
| set default color
|
|
void | setMaterialColor (const MaterialID *mat, Ogre::ColourValue col) |
| set Material color
|
|
void | startRaycastRecording (bool markhitbodies=false) |
| enable additional raycast-debugging (this also enables displaying of recorded raycasts!)
|
|
bool | isRaycastRecording () |
| returns true, if currently recording raycasts
|
|
bool | isRaycastRecordingHitBodies () |
| returns true, if hit bodies are currently recording
|
|
void | clearRaycastsRecorded () |
| clears all raycasts, that are currently shown, should probably be done once per frame!
|
|
void | stopRaycastRecording () |
| disables raycast-debugging
|
|
void | setRaycastRecordingColor (Ogre::ColourValue rayCol, Ogre::ColourValue convexCol, Ogre::ColourValue hitBodyCol, Ogre::ColourValue prefilterDiscardedBodyCol) |
| set the color of the raycast-debug-lines
|
|
void | addRay (const Ogre::Vector3 &startpt, const Ogre::Vector3 &endpt) |
| this function is used internally
|
|
void | addConvexRay (const OgreNewt::ConvexCollisionPtr &col, const Ogre::Vector3 &startpt, const Ogre::Quaternion &colori, const Ogre::Vector3 &endpt) |
| this function is used internally
|
|
void | addDiscardedBody (const OgreNewt::Body *body) |
| this function is used internally
|
|
void | addHitBody (const OgreNewt::Body *body) |
| this function is used internally
|
|
void | buildDebugObjectFromCollision (Ogre::ManualObject *object, Ogre::ColourValue colour, const NewtonCollision *shape) const |
|
For viewing the Newton rigid bodies visually.
This class implements a debug view of the Newton world. You can access it via World::getDebugger(). It needs to be initialized (call World::getDebugger().init(...)).
Definition at line 34 of file OgreNewt_Debugger.h.
◆ BodyDebugDataMap
◆ ManualObjectList
◆ MaterialIdColorMap
◆ ~Debugger()
OgreNewt::Debugger::~Debugger |
( |
| ) |
|
◆ Debugger()
◆ addConvexRay()
void OgreNewt::Debugger::addConvexRay |
( |
const OgreNewt::ConvexCollisionPtr & |
col, |
|
|
const Ogre::Vector3 & |
startpt, |
|
|
const Ogre::Quaternion & |
colori, |
|
|
const Ogre::Vector3 & |
endpt |
|
) |
| |
◆ addDiscardedBody()
void OgreNewt::Debugger::addDiscardedBody |
( |
const OgreNewt::Body * |
body | ) |
|
◆ addHitBody()
◆ addRay()
void OgreNewt::Debugger::addRay |
( |
const Ogre::Vector3 & |
startpt, |
|
|
const Ogre::Vector3 & |
endpt |
|
) |
| |
◆ buildDebugObjectFromCollision()
void OgreNewt::Debugger::buildDebugObjectFromCollision |
( |
Ogre::ManualObject * |
object, |
|
|
Ogre::ColourValue |
colour, |
|
|
const NewtonCollision * |
shape |
|
) |
| const |
◆ clearBodyDebugDataCache()
void OgreNewt::Debugger::clearBodyDebugDataCache |
( |
| ) |
|
|
protected |
◆ clearRaycastsRecorded()
void OgreNewt::Debugger::clearRaycastsRecorded |
( |
| ) |
|
clears all raycasts, that are currently shown, should probably be done once per frame!
Definition at line 334 of file OgreNewt_Debugger.cpp.
◆ deInit()
void OgreNewt::Debugger::deInit |
( |
| ) |
|
◆ hideDebugInformation()
void OgreNewt::Debugger::hideDebugInformation |
( |
| ) |
|
◆ init()
void OgreNewt::Debugger::init |
( |
Ogre::SceneManager * |
smgr | ) |
|
◆ isRaycastRecording()
bool OgreNewt::Debugger::isRaycastRecording |
( |
| ) |
|
◆ isRaycastRecordingHitBodies()
bool OgreNewt::Debugger::isRaycastRecordingHitBodies |
( |
| ) |
|
◆ nodeDestroyed()
void OgreNewt::Debugger::nodeDestroyed |
( |
const Ogre::Node * |
node | ) |
|
|
virtual |
◆ processBody()
◆ processJoint()
void OgreNewt::Debugger::processJoint |
( |
Joint * |
joint | ) |
|
|
protected |
◆ setDefaultColor()
void OgreNewt::Debugger::setDefaultColor |
( |
Ogre::ColourValue |
col | ) |
|
◆ setMaterialColor()
void OgreNewt::Debugger::setMaterialColor |
( |
const MaterialID * |
mat, |
|
|
Ogre::ColourValue |
col |
|
) |
| |
◆ setRaycastRecordingColor()
void OgreNewt::Debugger::setRaycastRecordingColor |
( |
Ogre::ColourValue |
rayCol, |
|
|
Ogre::ColourValue |
convexCol, |
|
|
Ogre::ColourValue |
hitBodyCol, |
|
|
Ogre::ColourValue |
prefilterDiscardedBodyCol |
|
) |
| |
◆ showDebugInformation()
void OgreNewt::Debugger::showDebugInformation |
( |
| ) |
|
show the newton world
Draws the Newton world as 3D lines with informative text above each body
Definition at line 112 of file OgreNewt_Debugger.cpp.
◆ startRaycastRecording()
void OgreNewt::Debugger::startRaycastRecording |
( |
bool |
markhitbodies = false | ) |
|
enable additional raycast-debugging (this also enables displaying of recorded raycasts!)
Definition at line 318 of file OgreNewt_Debugger.cpp.
◆ stopRaycastRecording()
void OgreNewt::Debugger::stopRaycastRecording |
( |
| ) |
|
◆ OgreNewt::World
◆ m_cachemap
◆ m_convexcol
Ogre::ColourValue OgreNewt::Debugger::m_convexcol |
|
protected |
◆ m_debugnode
Ogre::SceneNode* OgreNewt::Debugger::m_debugnode |
|
protected |
◆ m_defaultcolor
Ogre::ColourValue OgreNewt::Debugger::m_defaultcolor |
|
protected |
◆ m_hitbodycol
Ogre::ColourValue OgreNewt::Debugger::m_hitbodycol |
|
protected |
◆ m_markhitbodies
bool OgreNewt::Debugger::m_markhitbodies |
|
protected |
◆ m_materialcolors
◆ m_prefilterdiscardedcol
Ogre::ColourValue OgreNewt::Debugger::m_prefilterdiscardedcol |
|
protected |
◆ m_raycastsnode
Ogre::SceneNode* OgreNewt::Debugger::m_raycastsnode |
|
protected |
◆ m_raycol
Ogre::ColourValue OgreNewt::Debugger::m_raycol |
|
protected |
◆ m_recordraycasts
bool OgreNewt::Debugger::m_recordraycasts |
|
protected |
◆ m_sceneManager
Ogre::SceneManager* OgreNewt::Debugger::m_sceneManager |
|
protected |
◆ m_world
◆ mRecordedRaycastObjects
The documentation for this class was generated from the following files: