#include <OgreHapticsDebugRenderer.h>
Public Member Functions | |
| DebugRenderer (SceneManager *sceneMgr, int renderMode=0) | |
| Creates a new DebugRenderer. | |
| virtual | ~DebugRenderer () |
| Virtual destructor. | |
| void | setRenderMode (int mode) |
| Specifies the elements to be rendered by the debug renderer. | |
| void | setTouchWorkspaceDisplayEnabled (bool enable) |
| Sets whether the rendering of touch workspaces is enabled or not. | |
| void | setStylusDisplayEnabled (bool enable) |
| Sets whether the rendering of stylusses is enabled or not. | |
| bool | isTouchWorkspaceDisplayEnabled (void) const |
| Returns whether or not touch workspaces are rendered. | |
| bool | isStylusDisplayEnabled (void) const |
| Returns whether or nt stylusses are rendered. | |
| void | addLine (const Vector3 &start, const Vector3 &end, const ColourValue &colour=ColourValue::White) |
| Adds a line between the specified end points that will be drawn the next call. | |
| void | addLine (Real startX, Real startY, Real startZ, Real endX, Real endY, Real endZ, const ColourValue &colour=ColourValue::White) |
| Adds a line between the specified end points that will be drawn the next call. | |
| void | addPoint (const Vector3 &point, const ColourValue &colour=ColourValue::White) |
| Adds a point that will be drawn the next call. | |
| void | addPoint (Real x, Real y, Real z, const ColourValue &colour=ColourValue::White) |
| Adds a point that will be drawn the next call. | |
| void | clear (void) |
| Clears all objects currently drawn. | |
| void | draw (void) |
| Draws all debug objects (e.g. | |
| Real | getBoundingRadius (void) const |
| Implements Ogre::MovableObject::getBoundingRadius. | |
| const String & | getMovableType (void) const |
| Implements Ogre::MovableObject::getMovableType. | |
| const AxisAlignedBox & | getBoundingBox (void) const |
| Implements Ogre::MovableObject::getBoundingBox. | |
| void | _updateRenderQueue (RenderQueue *queue) |
| Implements Ogre::MovableObject::_updateRenderQueue. | |
| void | visitRenderables (Renderable::Visitor *visitor, bool debugRenderables=false) |
| Implements Ogre::MovableObject::visitRenderables. | |
| const MaterialPtr & | getMaterial (void) const |
| Implements Ogre::Renderable::getMaterial. | |
| void | getRenderOperation (RenderOperation &op) |
| Implements Ogre::Renderable::getRenderOperation. | |
| void | getWorldTransforms (Matrix4 *xform) const |
| Implements Ogre::Renderable::getWorldTransforms. | |
| Real | getSquaredViewDepth (const Camera *cam) const |
| Implements Ogre::Renderable::getSquaredViewDepth. | |
| const LightList & | getLights (void) const |
| Implements Ogre::Renderable::getLights. | |
Protected Attributes | |
| SceneManager * | mSceneMgr |
| Pointer to the Ogre::SceneManager to which the objects are added. | |
| SceneNode * | mSceneNode |
| Pointer to the Ogre::SceneNode to which the renderer will be attached. | |
| bool | mIsDrawn |
| Are objects drawn? | |
| int | mRenderMode |
| Bitmask of the objects to display. | |
| RenderOperation | mRenderOperation |
| The render operation. | |
| MaterialPtr | mMaterial |
| Pointer to the material to use. | |
| AxisAlignedBox | mAABB |
| Bounds of all lines drawn. | |
The objects are displayed in a single renderable object using line and point drawing.
Definition at line 50 of file OgreHapticsDebugRenderer.h.
| OgreHaptics::DebugRenderer::DebugRenderer | ( | SceneManager * | sceneMgr, | |
| int | renderMode = 0 | |||
| ) |
Creates a new DebugRenderer.
| sceneMgr | The SceneManager to which the elements to draw will be added. | |
| renderMode | Bitmask specifying the elements to render. |
| virtual OgreHaptics::DebugRenderer::~DebugRenderer | ( | ) | [virtual] |
Virtual destructor.
| void OgreHaptics::DebugRenderer::setRenderMode | ( | int | mode | ) |
Specifies the elements to be rendered by the debug renderer.
| mode | Bitmask specifying the elements to render. |
Definition at line 70 of file OgreHapticsDebugRenderer.h.
| void OgreHaptics::DebugRenderer::setTouchWorkspaceDisplayEnabled | ( | bool | enable | ) |
Sets whether the rendering of touch workspaces is enabled or not.
| void OgreHaptics::DebugRenderer::setStylusDisplayEnabled | ( | bool | enable | ) |
Sets whether the rendering of stylusses is enabled or not.
| bool OgreHaptics::DebugRenderer::isTouchWorkspaceDisplayEnabled | ( | void | ) | const |
Returns whether or not touch workspaces are rendered.
| bool OgreHaptics::DebugRenderer::isStylusDisplayEnabled | ( | void | ) | const |
Returns whether or nt stylusses are rendered.
| void OgreHaptics::DebugRenderer::addLine | ( | const Vector3 & | start, | |
| const Vector3 & | end, | |||
| const ColourValue & | colour = ColourValue::White | |||
| ) |
Adds a line between the specified end points that will be drawn the next call.
| start | The start point of the line in world coordinates. | |
| end | The end point of the line in world coordinates. | |
| colour | The colour in which the line is drawn. |
| void OgreHaptics::DebugRenderer::addLine | ( | Real | startX, | |
| Real | startY, | |||
| Real | startZ, | |||
| Real | endX, | |||
| Real | endY, | |||
| Real | endZ, | |||
| const ColourValue & | colour = ColourValue::White | |||
| ) |
Adds a line between the specified end points that will be drawn the next call.
| startX | The x coordinate of the start point of the line in world coordinates. | |
| startY | The y coordinate of the start point of the line in world coordinates. | |
| startZ | The z coordinate of the start point of the line in world coordinates. | |
| endX | The x coordinate of the end point of the line in world coordinates. | |
| endY | The y coordinate of the end point of the line in world coordinates. | |
| endZ | The z coordinate of the end point of the line in world coordinates. | |
| colour | The colour in which the line is drawn. |
| void OgreHaptics::DebugRenderer::addPoint | ( | const Vector3 & | point, | |
| const ColourValue & | colour = ColourValue::White | |||
| ) |
Adds a point that will be drawn the next call.
| point | The point in world coordinates. | |
| colour | The colour in which the point is drawn. |
| void OgreHaptics::DebugRenderer::addPoint | ( | Real | x, | |
| Real | y, | |||
| Real | z, | |||
| const ColourValue & | colour = ColourValue::White | |||
| ) |
Adds a point that will be drawn the next call.
| x | The x coordinate of the point in world coordinates. | |
| y | The y coordinate of the point in world coordinates. | |
| z | The z coordinate of the point in world coordinates. | |
| colour | The colour in which the point is drawn. |
| void OgreHaptics::DebugRenderer::clear | ( | void | ) |
Clears all objects currently drawn.
| void OgreHaptics::DebugRenderer::draw | ( | void | ) |
Draws all debug objects (e.g.
touch workspaces, stylusses) of all currently managed devices.
| Real OgreHaptics::DebugRenderer::getBoundingRadius | ( | void | ) | const |
Implements Ogre::MovableObject::getBoundingRadius.
| const String& OgreHaptics::DebugRenderer::getMovableType | ( | void | ) | const |
Implements Ogre::MovableObject::getMovableType.
| const AxisAlignedBox& OgreHaptics::DebugRenderer::getBoundingBox | ( | void | ) | const |
Implements Ogre::MovableObject::getBoundingBox.
| void OgreHaptics::DebugRenderer::_updateRenderQueue | ( | RenderQueue * | queue | ) |
Implements Ogre::MovableObject::_updateRenderQueue.
| void OgreHaptics::DebugRenderer::visitRenderables | ( | Renderable::Visitor * | visitor, | |
| bool | debugRenderables = false | |||
| ) |
Implements Ogre::MovableObject::visitRenderables.
| const MaterialPtr& OgreHaptics::DebugRenderer::getMaterial | ( | void | ) | const |
Implements Ogre::Renderable::getMaterial.
| void OgreHaptics::DebugRenderer::getRenderOperation | ( | RenderOperation & | op | ) |
Implements Ogre::Renderable::getRenderOperation.
| void OgreHaptics::DebugRenderer::getWorldTransforms | ( | Matrix4 * | xform | ) | const |
Implements Ogre::Renderable::getWorldTransforms.
| Real OgreHaptics::DebugRenderer::getSquaredViewDepth | ( | const Camera * | cam | ) | const |
Implements Ogre::Renderable::getSquaredViewDepth.
| const LightList& OgreHaptics::DebugRenderer::getLights | ( | void | ) | const |
Implements Ogre::Renderable::getLights.
SceneManager* OgreHaptics::DebugRenderer::mSceneMgr [protected] |
Pointer to the Ogre::SceneManager to which the objects are added.
Definition at line 170 of file OgreHapticsDebugRenderer.h.
SceneNode* OgreHaptics::DebugRenderer::mSceneNode [protected] |
Pointer to the Ogre::SceneNode to which the renderer will be attached.
Definition at line 172 of file OgreHapticsDebugRenderer.h.
bool OgreHaptics::DebugRenderer::mIsDrawn [protected] |
int OgreHaptics::DebugRenderer::mRenderMode [protected] |
RenderOperation OgreHaptics::DebugRenderer::mRenderOperation [protected] |
MaterialPtr OgreHaptics::DebugRenderer::mMaterial [protected] |
AxisAlignedBox OgreHaptics::DebugRenderer::mAABB [protected] |
Last modified Tue Jan 6 22:31:25 2009