QtSculptor
v1.0.0
|
Concrete class CutBox - Used to delete a block of voxels. More...
#include <CutBox.h>
Public Member Functions | |
CutBox (int xi_, int xf_, int yi_, int yf_, int zi_, int zf_) | |
CutBox class constructor. More... | |
~CutBox () | |
CutBox class destructor. More... | |
void | draw (Sculptor &sculptor) |
Member function draw. More... | |
Public Member Functions inherited from GeometricFigure | |
virtual | ~GeometricFigure () |
GeometricFigure class constructor. More... | |
Private Attributes | |
int | xi |
int | xf |
int | yi |
int | yf |
int | zi |
int | zf |
Additional Inherited Members | |
Protected Attributes inherited from GeometricFigure | |
float | r |
float | g |
float | b |
float | a |
Concrete class CutBox - Used to delete a block of voxels.
It will inform the system that all voxels present in a given cubic region and belonging to the space of the three-dimensional array of voxels allocated by an instance of the Sculptor class, must be deleted.
xi | Represents a coordinate on the x axis belonging to the voxel matrix that denotes the beginning of the voxel range; |
xf | Represents a coordinate on the x axis belonging to the voxel matrix that denotes the end of the voxel range; |
yi | Represents a coordinate on the y axis belonging to the voxel matrix that denotes the beginning of the voxel range; |
yf | Represents a coordinate on the y axis belonging to the voxel matrix that denotes the end of the voxel range; |
zi | Represents a coordinate on the z axis belonging to the voxel matrix that denotes the beginning of the voxel range; |
zf | Represents a coordinate on the z axis belonging to the voxel matrix that denotes the end of the voxel range; |
It inherits directly from the abstract class GeometricFigure.
CutBox::CutBox | ( | int | xi_, |
int | xf_, | ||
int | yi_, | ||
int | yf_, | ||
int | zi_, | ||
int | zf_ | ||
) |
CutBox class constructor.
This constructor will receive as parameters the dimensional coordinates of the voxel box to be deleted and, with that, will construct an instance of the CutBox class.
xi_ | Represents a coordinate on the x axis belonging to the voxel array that denotes the beginning of the voxel range; |
xf_ | Represents a coordinate on the x axis belonging to the voxel array that denotes the end of the voxel range |
yi_ | Represents a coordinate on the y axis belonging to the voxel array that denotes the beginning of the voxel range; |
yf_ | Represents a coordinate on the y axis belonging to the voxel array that denotes the end of the voxel range |
zi_ | Represents a coordinate on the z axis belonging to the voxel array that denotes the beginning of the voxel range; |
zf_ | Represents a coordinate on the z axis belonging to the voxel array that denotes the end of the voxel range |
|
inline |
CutBox class destructor.
Acts as default destructor;
|
virtual |
Member function draw.
Method that will delete, from an instance of the Sculptor class passed as a parameter, a box present in its array of voxels.
sculptor | instance of the Sculptor class;; |
Implements GeometricFigure.
|
private |
Final coordinate of the box on the axis x.
|
private |
Initial coordinate of the box on the axis x.
|
private |
Final coordinate of the box on the axis y.
|
private |
Initial coordinate of the box on the axis y.
|
private |
Final coordinate of the box on the axis z.
|
private |
Initial coordinate of the box on the axis z.