Command for visualizing a box defined by min/max points in the collision visualizer. More...
#include <VisualizerMinMaxCommand.h>
Public Member Functions | |
VisualizerMinMaxCommand (const VisualizerMinMaxCommand &)=delete | |
VisualizerMinMaxCommand & | operator= (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. | |
![]() | |
virtual | ~VisualizerCommandBase ()=default |
Virtual destructor for VisualizerCommandBase. | |
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::VisualizerMinMaxCommand | ( | const Vect & | minPoint, |
const Vect & | maxPoint, | ||
const Vect & | color, | ||
GraphicsObject_WireframeConstantColor * | wireframe ) |
Constructs a VisualizerMinMaxCommand with specified min/max points and color.
minPoint | The minimum point of the box. |
maxPoint | The maximum point of the box. |
color | The color of the wireframe box. |
wireframe | Pointer to the GraphicsObject_WireframeConstantColor used for rendering. |
|
overridevirtual |
Executes the command to render the wireframe box.
Implements VisualizerCommandBase.
|
overridevirtual |
Sets the parameters for the min/max box command.
minPoint | The minimum point of the box. |
maxPoint | The maximum point of the box. |
color | The color of the box. |
wireframe | Pointer to the wireframe graphics object used for rendering. |
Implements VisualizerCommandBase.