![]() |
QtSculptor
v1.0.0
|
Concrete class CutVoxel - Used to delete a single voxel. More...
#include <CutVoxel.h>
Public Member Functions | |
| CutVoxel (int x_, int y_, int z_) | |
| CutVoxel class constructor. More... | |
| ~CutVoxel () | |
| Destructor of the CutVoxel class. More... | |
| void | draw (Sculptor &sculptor) |
| Member function draw. More... | |
Public Member Functions inherited from GeometricFigure | |
| virtual | ~GeometricFigure () |
| GeometricFigure class constructor. More... | |
Private Attributes | |
| int | x |
| int | y |
| int | z |
Additional Inherited Members | |
Protected Attributes inherited from GeometricFigure | |
| float | r |
| float | g |
| float | b |
| float | a |
Concrete class CutVoxel - Used to delete a single voxel.
It will inform the system that the voxel, present in a certain coordinate and belonging to the space of the three-dimensional array of voxels allocated by an instance of the Sculptor class, should be deleted.
| x | Represents the coordinate on the x axis of the voxel; |
| y | Represents the coordinate on the y axis of the voxel; |
| z | Represents the coordinate on the z axis of the voxel; |
It inherits directly from the GeometricFigure abstract class.
| CutVoxel::CutVoxel | ( | int | x_, |
| int | y_, | ||
| int | z_ | ||
| ) |
CutVoxel class constructor.
This constructor will receive as parameters the coordinates of the voxel box to be created and with that, will construct an instance of the CutVoxel class.
| x_ | Represents the coordinate on the x axis of the voxel; |
| y_ | Represents the coordinate on the y axis of the voxel; |
| z_ | Represents the coordinate on the z axis of the voxel; |
|
inline |
Destructor of the CutVoxel class.
Acts as the default destructor;
|
virtual |
Member function draw.
Method that will delete, from an instance of the Sculptor class passed as a parameter, a voxel in its array of voxels.
| sculptor | instance of the Sculptor class; |
Implements GeometricFigure.
|
private |
Axis voxel coordinate x.
|
private |
Axis voxel coordinate y.
|
private |
Axis voxel coordinate z.