QtSculptor  v1.0.0
CutVoxel Class Reference

Concrete class CutVoxel - Used to delete a single voxel. More...

#include <CutVoxel.h>

Inheritance diagram for CutVoxel:
GeometricFigure

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
 

Detailed Description

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.

Parameters
xRepresents the coordinate on the x axis of the voxel;
yRepresents the coordinate on the y axis of the voxel;
zRepresents the coordinate on the z axis of the voxel;

It inherits directly from the GeometricFigure abstract class.

Constructor & Destructor Documentation

◆ CutVoxel()

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.

Parameters
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;

◆ ~CutVoxel()

CutVoxel::~CutVoxel ( )
inline

Destructor of the CutVoxel class.

Acts as the default destructor;

Member Function Documentation

◆ draw()

void CutVoxel::draw ( Sculptor sculptor)
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.

Parameters
sculptorinstance of the Sculptor class;

Implements GeometricFigure.

Member Data Documentation

◆ x

int CutVoxel::x
private

Axis voxel coordinate x.

◆ y

int CutVoxel::y
private

Axis voxel coordinate y.

◆ z

int CutVoxel::z
private

Axis voxel coordinate z.


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