![]()  | 
  
    QtSculptor
    v1.0.0
    
   | 
 
Concrete class CutSphere - Used to erase a set of voxels belonging to a spherical volume. More...
#include <CutSphere.h>
  
Public Member Functions | |
| CutSphere (int x_center_, int y_center_, int z_center_, int radius_) | |
| CutSphere class constructor.  More... | |
| ~CutSphere () | |
| Destructor of the CutSphere 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_center | 
| int | y_center | 
| int | z_center | 
| int | radius | 
Additional Inherited Members | |
  Protected Attributes inherited from GeometricFigure | |
| float | r | 
| float | g | 
| float | b | 
| float | a | 
Concrete class CutSphere - Used to erase a set of voxels belonging to a spherical volume.
It will inform the system that all voxels, present in a certain spherical region and belonging to the space of the three-dimensional array of voxels allocated by an instance of the Sculptor class, must be deleted.
| x_center | Represents a coordinate on the x axis belonging to the voxel matrix that denotes the center of the sphere to be deleted; | 
| y_center | Represents a coordinate on the y axis belonging to the voxel matrix that denotes the center of the sphere to be deleted; | 
| z_center | Represents a coordinate on the z axis belonging to the voxel matrix that denotes the center of the sphere to be deleted; | 
| radius | Represents the radius of the sphere to be deleted in three dimensions: x, y and z. | 
It inherits directly from the GeometricFigure abstract class.
| CutSphere::CutSphere | ( | int | x_center_, | 
| int | y_center_, | ||
| int | z_center_, | ||
| int | radius_ | ||
| ) | 
CutSphere class constructor.
This constructor will receive as parameters the dimensional coordinates of the voxel sphere to be deleted, thus, will construct an instance of the CutSphere class.
| x_center_ | Central coordinate of the sphere on the axis**x**; | 
| y_center_ | Central coordinate of the sphere on the axis**y**; | 
| z_center_ | Central coordinate of the sphere on the axis**z**; | 
| radius_ | Sphere radius in three dimensions; | 
      
  | 
  inline | 
Destructor of the CutSphere 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 sphere present in its array of voxels.
| sculptor | instance of the Sculptor class; | 
Implements GeometricFigure.
      
  | 
  private | 
Sphere radius in three dimensions.
      
  | 
  private | 
Central coordinate of the sphere on the axis**x**.
      
  | 
  private | 
Central coordinate of the sphere on the axis**y**.
      
  | 
  private | 
Central coordinate of the sphere on the axis**z**.