Command class for visualizing an OBB (Oriented Bounding Box) in the scene. More...
#include <VisualizerOBBCommand.h>

Public Member Functions | |
| VisualizerOBBCommand (const VisualizerOBBCommand &)=delete | |
| VisualizerOBBCommand & | operator= (const VisualizerOBBCommand &)=delete |
| VisualizerOBBCommand (const CollisionVolumeOBB *ab, const Vect &c, GraphicsObject_WireframeConstantColor *w) | |
| Constructor for VisualizerOBBCommand. | |
| virtual void | Execute () override |
| Executes the OBB visualization command (renders the OBB). | |
| void | Set (const CollisionVolumeOBB *ab, const Vect &c, GraphicsObject_WireframeConstantColor *w) |
| Sets the OBB and color for visualization. | |
| 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 CollisionVolumeOBB * | obb |
| Pointer to the CollisionVolumeOBB object to visualize. | |
| Vect | color |
| Color of the OBB. | |
| GraphicsObject_WireframeConstantColor * | wfUnitOBB |
| Pointer to the GraphicsObject_WireframeConstantColor for rendering. | |
Command class for visualizing an OBB (Oriented Bounding Box) in the scene.
The VisualizerOBBCommand class is responsible for rendering an OBB using a wireframe representation. It inherits from VisualizerCommandBase and implements the Execute method to perform the rendering.
Example usage:
| VisualizerOBBCommand::VisualizerOBBCommand | ( | const CollisionVolumeOBB * | ab, |
| const Vect & | c, | ||
| GraphicsObject_WireframeConstantColor * | w ) |
Constructor for VisualizerOBBCommand.
| ab | Pointer to the CollisionVolumeOBB object to visualize. |
| c | Color of the OBB. |
| w | Pointer to the GraphicsObject_WireframeConstantColor for rendering. |
|
overridevirtual |
Executes the OBB visualization command (renders the OBB).
Implements VisualizerCommandBase.

|
overridevirtual |
Gets the volume type associated with this command.
Implements VisualizerCommandBase.
| void VisualizerOBBCommand::Set | ( | const CollisionVolumeOBB * | ab, |
| const Vect & | c, | ||
| GraphicsObject_WireframeConstantColor * | w ) |
Sets the OBB and color for visualization.
| ab | Pointer to the CollisionVolumeOBB object to visualize. |
| c | Color of the OBB. |
| w | Pointer to the GraphicsObject_WireframeConstantColor for rendering. |
