Nebula
|
#include <visualdebugger.h>
Class that communicates with the physics visual debugger program.
Holds utility methods to easily display stuff such as arrow and text in the debugger.
Classes | |
class | TimedDrawData |
base class for draw-calls that should be done over a number of steps More... | |
Public Member Functions | |
VisualDebugger () | |
constructor | |
virtual | ~VisualDebugger () |
destructor | |
virtual void | OnStep () |
do one step | |
virtual void | Initialize (Scene *s) |
initialize debugger connection | |
void | SetSimulationFrameTime (float time) |
set how much time that should pass each step | |
float | SetSimulationFrameTime () const |
get how much time that should pass each step | |
void | DrawTimedArrow (const Math::point &p, const Math::vector &dir, uint numSteps, const Math::vec4 &color=Math::vec4(1, 1, 1, 1)) |
draw an arrow during a number of steps | |
void | DrawTimedLine (const Math::point &p, const Math::vector &dir, uint numSteps, const Math::vec4 &color=Math::vec4(1, 1, 1, 1)) |
draw a line during a number of steps | |
void | DrawTimedPlane (const Math::point &p, const Math::vector &dir, float scale, uint numSteps, const Math::vec4 &color=Math::vec4(1, 1, 1, 1)) |
draw a plane during a number of steps | |
void | DrawTimedText (const Math::point &p, const Util::String &text, uint numSteps, const Math::vec4 &color=Math::vec4(1, 1, 1, 1)) |
draw text during a number of steps | |
void | DrawTimedAABB (const Math::bbox &bbox, uint numSteps, const Math::vec4 &color=Math::vec4(1, 1, 1, 1)) |
draw an AABB during a number of steps | |
virtual void | SetCameraView (const Math::mat4 &viewMatrix) |
set the camera view | |
virtual void | DrawArrow (const Math::point &p, const Math::vector &dir, const Math::vec4 &color=Math::vec4(1, 1, 1, 1)) |
draw an arrow | |
virtual void | DrawLine (const Math::point &p, const Math::vector &dir, const Math::vec4 &color=Math::vec4(1, 1, 1, 1)) |
draw a line | |
virtual void | DrawPlane (const Math::point &p, const Math::vector &dir, float scale, const Math::vec4 &color=Math::vec4(1, 1, 1, 1)) |
draw a plane | |
virtual void | DrawText (const Math::point &p, const Util::String &text, const Math::vec4 &color=Math::vec4(1, 1, 1, 1)) |
draw text | |
virtual void | DrawAABB (const Math::bbox &bbox, const Math::vec4 &color=Math::vec4(1, 1, 1, 1)) |
draw an AABB | |
Protected Member Functions | |
void | Draw (const TimedDrawData &data) |
perform drawing | |
Protected Attributes | |
Scene * | scene |
float | simulationFrameTime |
Util::Array< TimedDrawData > | timedDrawData |
Private Member Functions | |
__DeclareInterfaceSingleton (VisualDebugger) | |
Physics::VisualDebugger::VisualDebugger | ( | ) |
constructor
|
virtual |
destructor
|
private |
|
protected |
perform drawing
|
virtual |
draw an AABB
|
virtual |
draw an arrow
|
virtual |
draw a line
|
virtual |
draw a plane
|
virtual |
draw text
void Physics::VisualDebugger::DrawTimedAABB | ( | const Math::bbox & | bbox, |
uint | numSteps, | ||
const Math::vec4 & | color = Math::vec4(1, 1, 1, 1) ) |
draw an AABB during a number of steps
void Physics::VisualDebugger::DrawTimedArrow | ( | const Math::point & | p, |
const Math::vector & | dir, | ||
uint | numSteps, | ||
const Math::vec4 & | color = Math::vec4(1, 1, 1, 1) ) |
draw an arrow during a number of steps
void Physics::VisualDebugger::DrawTimedLine | ( | const Math::point & | p, |
const Math::vector & | dir, | ||
uint | numSteps, | ||
const Math::vec4 & | color = Math::vec4(1, 1, 1, 1) ) |
draw a line during a number of steps
void Physics::VisualDebugger::DrawTimedPlane | ( | const Math::point & | p, |
const Math::vector & | dir, | ||
float | scale, | ||
uint | numSteps, | ||
const Math::vec4 & | color = Math::vec4(1, 1, 1, 1) ) |
draw a plane during a number of steps
void Physics::VisualDebugger::DrawTimedText | ( | const Math::point & | p, |
const Util::String & | text, | ||
uint | numSteps, | ||
const Math::vec4 & | color = Math::vec4(1, 1, 1, 1) ) |
draw text during a number of steps
|
virtual |
initialize debugger connection
|
virtual |
do one step
|
virtual |
set the camera view
|
inline |
get how much time that should pass each step
|
inline |
set how much time that should pass each step
|
protected |
|
protected |
|
protected |