SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
VisualizerBSphereCommand Class Reference

Command to visualize a collision volume bounding sphere. More...

#include <VisualizerBSphereCommand.h>

Inheritance diagram for VisualizerBSphereCommand:
Inheritance graph

Public Member Functions

 VisualizerBSphereCommand (const VisualizerBSphereCommand &)=delete
 
VisualizerBSphereCommandoperator= (const VisualizerBSphereCommand &)=delete
 
 VisualizerBSphereCommand (const CollisionVolumeBSphere *sphere, const Vect &color, GraphicsObject_WireframeConstantColor *wfUnitSphere)
 Constructor for VisualizerBSphereCommand with parameters.
 
virtual void Execute () override
 Executes the visualization command for the bounding sphere.
 
void Set (const CollisionVolumeBSphere *sphere, const Vect &color, GraphicsObject_WireframeConstantColor *wfUnitSphere)
 Sets the collision volume bounding sphere, color, and wireframe constant color graphics object.
 
VolumeType GetVolumeType () override
 Gets the volume type associated with this command.
 
- Public Member Functions inherited from VisualizerCommandBase
virtual ~VisualizerCommandBase ()=default
 Virtual destructor for VisualizerCommandBase.
 

Private Attributes

const CollisionVolumeBSpheresphere
 The collision volume bounding sphere.
 
Vect color
 The color to render the bounding sphere.
 
GraphicsObject_WireframeConstantColor * wfUnitSphere
 Pointer to the wireframe constant color graphics object for unit sphere.
 

Detailed Description

Command to visualize a collision volume bounding sphere.

The VisualizerBSphereCommand class is responsible for visualizing a collision volume bounding sphere. It inherits from the VisualizerCommandBase class and overrides the Execute method to perform the visualization.

Constructor & Destructor Documentation

◆ VisualizerBSphereCommand()

VisualizerBSphereCommand::VisualizerBSphereCommand ( const CollisionVolumeBSphere * sphere,
const Vect & color,
GraphicsObject_WireframeConstantColor * wfUnitSphere )

Constructor for VisualizerBSphereCommand with parameters.

Parameters
sphereThe collision volume bounding sphere.
colorThe color to render the bounding sphere.
wfUnitSpherePointer to the wireframe constant color graphics object for unit sphere.

Member Function Documentation

◆ Execute()

void VisualizerBSphereCommand::Execute ( )
overridevirtual

Executes the visualization command for the bounding sphere.

Implements VisualizerCommandBase.

Here is the call graph for this function:

◆ GetVolumeType()

VolumeType VisualizerBSphereCommand::GetVolumeType ( )
overridevirtual

Gets the volume type associated with this command.

Returns
The VolumeType for this visualizer command.

Implements VisualizerCommandBase.

◆ Set()

void VisualizerBSphereCommand::Set ( const CollisionVolumeBSphere * sphere,
const Vect & color,
GraphicsObject_WireframeConstantColor * wfUnitSphere )

Sets the collision volume bounding sphere, color, and wireframe constant color graphics object.

Parameters
sphereThe collision volume bounding sphere.
colorThe color to render the bounding sphere.
wfUnitSpherePointer to the wireframe constant color graphics object for unit sphere.
Here is the caller graph for this function:

The documentation for this class was generated from the following files: