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

Command for visualizing a box defined by min/max points in the collision visualizer. More...

#include <VisualizerMinMaxCommand.h>

Inheritance diagram for VisualizerMinMaxCommand:
Inheritance graph

Public Member Functions

 VisualizerMinMaxCommand (const VisualizerMinMaxCommand &)=delete
 
VisualizerMinMaxCommandoperator= (const VisualizerMinMaxCommand &)=delete
 
 VisualizerMinMaxCommand (const Vect &minPoint, const Vect &maxPoint, const Vect &color, GraphicsObject_WireframeConstantColor *wireframe)
 Constructs a VisualizerMinMaxCommand with specified min/max points and color.
 
virtual void Execute () override
 Executes the command to render the wireframe box.
 
void Set (const Vect &minPoint, const Vect &maxPoint, const Vect &color, GraphicsObject_WireframeConstantColor *wireframe)
 Executes the min/max box visualization command (renders the box).
 
VolumeType GetVolumeType () override
 Sets the parameters for the min/max box command.
 
- Public Member Functions inherited from VisualizerCommandBase
virtual ~VisualizerCommandBase ()=default
 Virtual destructor for VisualizerCommandBase.
 

Private Attributes

Vect minPoint
 Minimum point of the box.
 
Vect maxPoint
 Maximum point of the box.
 
Vect color
 Color of the wireframe box.
 
GraphicsObject_WireframeConstantColor * wfUnitAABB
 Pointer to the wireframe graphics object used for rendering.
 

Detailed Description

Command for visualizing a box defined by min/max points in the collision visualizer.

The VisualizerMinMaxCommand class is used to render a colored wireframe box in the engine's visualizer system, defined by minimum and maximum points in 3D space. It stores the min/max points, color, and a reference to a wireframe graphics object. This command is typically used for debugging, collision visualization, or drawing helper bounding boxes in the scene.

Example usage:

VisualizerMinMaxCommand* cmd = new VisualizerMinMaxCommand(
Vect(-1,-1,-1), Vect(1,1,1), Vect(0,1,0), pWireframeObj);
cmd->Execute();
virtual void Execute() override
Executes the command to render the wireframe box.
Definition VisualizerMinMaxCommand.cpp:7
See also
VisualizerCommandBase, GraphicsObject_WireframeConstantColor

Constructor & Destructor Documentation

◆ VisualizerMinMaxCommand()

VisualizerMinMaxCommand::VisualizerMinMaxCommand ( const Vect & minPoint,
const Vect & maxPoint,
const Vect & color,
GraphicsObject_WireframeConstantColor * wireframe )

Constructs a VisualizerMinMaxCommand with specified min/max points and color.

Parameters
minPointThe minimum point of the box.
maxPointThe maximum point of the box.
colorThe color of the wireframe box.
wireframePointer to the GraphicsObject_WireframeConstantColor used for rendering.

Member Function Documentation

◆ Execute()

void VisualizerMinMaxCommand::Execute ( )
overridevirtual

Executes the command to render the wireframe box.

Implements VisualizerCommandBase.

Here is the call graph for this function:

◆ GetVolumeType()

VolumeType VisualizerMinMaxCommand::GetVolumeType ( )
overridevirtual

Sets the parameters for the min/max box command.

Parameters
minPointThe minimum point of the box.
maxPointThe maximum point of the box.
colorThe color of the box.
wireframePointer to the wireframe graphics object used for rendering.

Implements VisualizerCommandBase.


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