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 Public Member Functions

static void ShowBSphere (const CollisionVolumeBSphere &S, const Vect &col=DEFAULT_COLOR)
 Shows B Sphere 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

◆ ShowBSphere()

void Visualizer::ShowBSphere ( const CollisionVolumeBSphere & S,
const Vect & col = DEFAULT_COLOR )
static

Shows B Sphere of an object using a given color.

This is the visualizing debug tool for showing B Spheres. A color vect can be selected when visualizing the sphere 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 B Sphere.

//Option One
Visualizer::ShowBSphere(this->GetBSphere());
//Option Two
Visualizer::ShowBSphere(this->GetBSphere(), Color::Red);
static void ShowBSphere(const CollisionVolumeBSphere &S, const Vect &col=DEFAULT_COLOR)
Shows B Sphere of an object using a given color.
Definition Visualizer.cpp:41
static const Vect Red
Definition ColorsCommon.h:132
Parameters
S
col
Example of Red BSphere and Default Color BSphere

Member Data Documentation

◆ DEFAULT_COLOR

Vect Visualizer::DEFAULT_COLOR = Color::Blue
staticprivate

Visualizer default color is blue.