Command class for visualizing an Axis-Aligned Bounding Box (AABB). More...
#include <VisualizerAABBCommand.h>
Public Member Functions | |
VisualizerAABBCommand (const VisualizerAABBCommand &)=delete | |
VisualizerAABBCommand & | operator= (const VisualizerAABBCommand &)=delete |
VisualizerAABBCommand (const CollisionVolumeAABB *ab, const Vect &c, GraphicsObject_WireframeConstantColor *w) | |
Constructor for VisualizerAABBCommand. | |
virtual void | Execute () override |
Executes the AABB visualization command (renders the AABB). | |
void | Set (const CollisionVolumeAABB *ab, const Vect &c, GraphicsObject_WireframeConstantColor *w) |
Sets the parameters for the AABB command. | |
VolumeType | GetVolumeType () override |
Gets the volume type associated with this command. | |
![]() | |
virtual | ~VisualizerCommandBase ()=default |
Virtual destructor for VisualizerCommandBase. | |
Private Attributes | |
const CollisionVolumeAABB * | aabb |
Pointer to the CollisionVolumeAABB to visualize. | |
Vect | color |
Color of the AABB. | |
GraphicsObject_WireframeConstantColor * | wfUnitAABB |
Pointer to the GraphicsObject_WireframeConstantColor used for rendering. | |
Command class for visualizing an Axis-Aligned Bounding Box (AABB).
The VisualizerAABBCommand class is used to visualize an AABB in the game world. It inherits from VisualizerCommandBase and implements the Execute method to render the AABB using a wireframe graphics object.
VisualizerAABBCommand::VisualizerAABBCommand | ( | const CollisionVolumeAABB * | ab, |
const Vect & | c, | ||
GraphicsObject_WireframeConstantColor * | w ) |
Constructor for VisualizerAABBCommand.
ab | Pointer to the CollisionVolumeAABB to visualize. |
c | Color of the AABB. |
w | Pointer to the GraphicsObject_WireframeConstantColor used for rendering. |
|
overridevirtual |
Executes the AABB visualization command (renders the AABB).
Implements VisualizerCommandBase.
|
overridevirtual |
Gets the volume type associated with this command.
Implements VisualizerCommandBase.
void VisualizerAABBCommand::Set | ( | const CollisionVolumeAABB * | ab, |
const Vect & | c, | ||
GraphicsObject_WireframeConstantColor * | w ) |
Sets the parameters for the AABB command.
ab | Pointer to the CollisionVolumeAABB to visualize. |
c | Color of the AABB. |
w | Pointer to the GraphicsObject_WireframeConstantColor used for rendering. |