CrystalSpace

Public API Reference

Public Member Functions
CS::Debug::iVisualDebugger Struct Reference

Visual debugging tools. More...

#include <iutil/visualdebug.h>

Inheritance diagram for CS::Debug::iVisualDebugger:
iBase

List of all members.

Public Member Functions

virtual void DebugPosition (const csVector3 &position, bool persist=false, csColor color=csColor(0.0f, 1.0f, 0.0f), size_t size=3)=0
 Add the given position to the list of positions to be displayed on the next call to Display().
virtual void DebugTransform (const csReversibleTransform &transform, bool persist=false, float size=0.1f)=0
 Add the given transform to the list of transforms to be displayed on the next call to Display().
virtual void DebugVector (const csReversibleTransform &transform, const csVector3 &vector, bool persist=false, csColor color=csColor(0.0f, 1.0f, 0.0f))=0
 Add the given vector to the list of vectors to be displayed on the next call to Display().
virtual void Display (iView *view)=0
 Display all transforms and positions defined by DebugTransform() and DebugPosition().

Detailed Description

Visual debugging tools.

Definition at line 42 of file visualdebug.h.


Member Function Documentation

virtual void CS::Debug::iVisualDebugger::DebugPosition ( const csVector3 position,
bool  persist = false,
csColor  color = csColor(0.0f, 1.0f, 0.0f),
size_t  size = 3 
) [pure virtual]

Add the given position to the list of positions to be displayed on the next call to Display().

A square dot will be displayed at that position.

Parameters:
positionThe position to be debugged
persistWhether or not this position has to be displayed in each future frame or only for the next one.
colorThe color to be used when displaying the position
sizeThe size of the dot that will be displayed, in pixels. Pay attention that if you use an even number for this size, then the square will be shifted of an half pixel.
virtual void CS::Debug::iVisualDebugger::DebugTransform ( const csReversibleTransform transform,
bool  persist = false,
float  size = 0.1f 
) [pure virtual]

Add the given transform to the list of transforms to be displayed on the next call to Display().

Each axis of the transform will be displayed, with the X axis in red, the Y axis in green, and the Z axis in blue.

Parameters:
transformThe transform to be displayed
persistWhether or not this transform has to be displayed in each future frame or only for the next one.
sizeThe size of the axis, in world units.
virtual void CS::Debug::iVisualDebugger::DebugVector ( const csReversibleTransform transform,
const csVector3 vector,
bool  persist = false,
csColor  color = csColor(0.0f, 1.0f, 0.0f) 
) [pure virtual]

Add the given vector to the list of vectors to be displayed on the next call to Display().

Parameters:
transformThe coordinate system of the vector
vectorThe vector to be debugged
persistWhether or not this vector has to be displayed in each future frame or only for the next one.
colorThe color to be used when displaying the position
virtual void CS::Debug::iVisualDebugger::Display ( iView view) [pure virtual]

Display all transforms and positions defined by DebugTransform() and DebugPosition().

You have to call this at each frame, after the 3D display of the view. The list of transforms will be cleared.


The documentation for this struct was generated from the following file:

Generated for Crystal Space 2.0 by doxygen 1.7.6.1