Slippers Engine
 
Loading...
Searching...
No Matches
Visualizer Class Reference

Debugging tool for visualizing information. More...

#include <Visualizer.h>

Collaboration diagram for Visualizer:
Collaboration graph

Static Private Member Functions

static void ShowSegment (const Vect &p1, const Vect &p2, const Vect &col=DEFAULT_COLOR)
 Shows a line segment with a given color.
 
static void ShowPoint (const Vect &pos, const Vect &col=DEFAULT_COLOR)
 Shows a point in space with a given color.
 
static void ShowCollisionVolume (const CollisionVolume &cv, const Vect &col=DEFAULT_COLOR)
 Shows a collision volume of an object using a given color.
 

Static Private Attributes

static Vect DEFAULT_COLOR = Color::Blue
 Visualizer default color is blue.
 

Detailed Description

Debugging tool for visualizing information.

This debugging tool aims to display graphical information to the user. It can display bounding spheres.

Member Function Documentation

◆ ShowCollisionVolume()

void Visualizer::ShowCollisionVolume ( const CollisionVolume & cv,
const Vect & col = DEFAULT_COLOR )
staticprivate

Shows a collision volume of an object using a given color.

This is the visualizing debug tool for showing collisions. A color vect can be selected when visualizing the volume or it will default to blue. This function can be called anywhere within ones code. Go to Collidables for more information on setting up a collision volume.

//Option One
Visualizer::ShowCollisionVolume(this->GetColVolume());
//Option Two
static void ShowCollisionVolume(const CollisionVolume &cv, const Vect &col=DEFAULT_COLOR)
Shows a collision volume of an object using a given color.
Definition Visualizer.cpp:128
static const Vect Red
Definition ColorsCommon.h:132
Parameters
S
col
Example of Red BSphere and Default Color BSphere

◆ ShowPoint()

void Visualizer::ShowPoint ( const Vect & pos,
const Vect & col = DEFAULT_COLOR )
staticprivate

Shows a point in space with a given color.

This is a visualizing debug tool for showing points. A color vect can be selected when visualizing the segment or it will default to blue. This function can be called anywhere within ones code.

//Option One
Visualizer::ShowPoint(Vect(0, 0, 0));
//Option Two
static void ShowPoint(const Vect &pos, const Vect &col=DEFAULT_COLOR)
Shows a point in space with a given color.
Definition Visualizer.cpp:122
static const Vect Pink
Definition ColorsCommon.h:128
Parameters
pos
col

◆ ShowSegment()

void Visualizer::ShowSegment ( const Vect & p1,
const Vect & p2,
const Vect & col = DEFAULT_COLOR )
staticprivate

Shows a line segment with a given color.

This is a visualizing debug tool for showing line segments. A color vect can be selected when visualizing the segment or it will default to blue. This function can be called anywhere within ones code. This function requires both a start and end point for the segment.

//Option One
Visualizer::ShowSegment(Vect(0, 0, 0), Vect(0, 100, 0));
//Option Two
Visualizer::ShowSegment(Vect(0, 0, 0), Vect(0, 0, 100), Color::Green);
static void ShowSegment(const Vect &p1, const Vect &p2, const Vect &col=DEFAULT_COLOR)
Shows a line segment with a given color.
Definition Visualizer.cpp:89
static const Vect Green
Definition ColorsCommon.h:70
Parameters
p1
p2
col

Member Data Documentation

◆ DEFAULT_COLOR

Vect Visualizer::DEFAULT_COLOR = Color::Blue
staticprivate

Visualizer default color is blue.