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

Command class for visualizing an Axis-Aligned Bounding Box (AABB). More...

#include <VisualizerAABBCommand.h>

Inheritance diagram for VisualizerAABBCommand:
Inheritance graph

Public Member Functions

 VisualizerAABBCommand (const VisualizerAABBCommand &)=delete
 
VisualizerAABBCommandoperator= (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.
 
- Public Member Functions inherited from VisualizerCommandBase
virtual ~VisualizerCommandBase ()=default
 Virtual destructor for VisualizerCommandBase.
 

Private Attributes

const CollisionVolumeAABBaabb
 Pointer to the CollisionVolumeAABB to visualize.
 
Vect color
 Color of the AABB.
 
GraphicsObject_WireframeConstantColor * wfUnitAABB
 Pointer to the GraphicsObject_WireframeConstantColor used for rendering.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ VisualizerAABBCommand()

VisualizerAABBCommand::VisualizerAABBCommand ( const CollisionVolumeAABB * ab,
const Vect & c,
GraphicsObject_WireframeConstantColor * w )

Constructor for VisualizerAABBCommand.

Parameters
abPointer to the CollisionVolumeAABB to visualize.
cColor of the AABB.
wPointer to the GraphicsObject_WireframeConstantColor used for rendering.

Member Function Documentation

◆ Execute()

void VisualizerAABBCommand::Execute ( )
overridevirtual

Executes the AABB visualization command (renders the AABB).

Implements VisualizerCommandBase.

Here is the call graph for this function:

◆ GetVolumeType()

VolumeType VisualizerAABBCommand::GetVolumeType ( )
overridevirtual

Gets the volume type associated with this command.

Returns
The VolumeType for this visualizer command.

Implements VisualizerCommandBase.

◆ Set()

void VisualizerAABBCommand::Set ( const CollisionVolumeAABB * ab,
const Vect & c,
GraphicsObject_WireframeConstantColor * w )

Sets the parameters for the AABB command.

Parameters
abPointer to the CollisionVolumeAABB to visualize.
cColor of the AABB.
wPointer to the GraphicsObject_WireframeConstantColor used for rendering.
Here is the caller graph for this function:

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