QtSculptor
v1.0.0
|
Concrete class PutEllipsoid - Used to display a set of voxels belonging to an elliptical volume. More...
#include <PutEllipsoid.h>
Public Member Functions | |
PutEllipsoid (int x_center_, int y_center_, int z_center_, int x_radius_, int y_radius_, int z_radius_, float r_, float g_, float b_, float a_) | |
PutEllipsoid class constructor. More... | |
~PutEllipsoid () | |
Destructor of the PutEllipsoid 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 | x_radius |
int | y_radius |
int | z_radius |
Additional Inherited Members | |
Protected Attributes inherited from GeometricFigure | |
float | r |
float | g |
float | b |
float | a |
Concrete class PutEllipsoid - Used to display a set of voxels belonging to an elliptical volume.
It will inform the system that all voxels present in a given elliptical region and belonging to the space of the three-dimensional array of voxels allocated by an instance of the Sculptor class, it should be displayed.
x_center | Represents a coordinate on the x axis belonging to the voxel matrix that denotes the center of the ellipse to be created; |
y_center | Represents a coordinate on the y axis belonging to the voxel matrix that denotes the center of the ellipse to be created; |
z_center | Represents a coordinate on the z axis belonging to the voxel matrix that denotes the center of the ellipse to be created; |
x_radius | Represents the radius of the ellipse to be created on the x axis; |
y_radius | Represents the radius of the ellipse to be created on the y axis; |
z_radius | Represents the radius of the ellipse to be created on the z axis; |
It inherits directly from the GeometricFigure abstract class.
PutEllipsoid::PutEllipsoid | ( | int | x_center_, |
int | y_center_, | ||
int | z_center_, | ||
int | x_radius_, | ||
int | y_radius_, | ||
int | z_radius_, | ||
float | r_, | ||
float | g_, | ||
float | b_, | ||
float | a_ | ||
) |
PutEllipsoid class constructor.
This constructor will receive as parameters the dimensional coordinates of the voxel ellipse to be created, as well as its color and transparency. Therefore, will construct an instance of the PutEllipsoid class.
x_center_ | Central coordinate of the ellipse on the x axis; |
y_center_ | Central coordinate of the ellipse on the y axis; |
z_center_ | Central coordinate of the ellipse on the z axis; |
x_radius_ | Radius of the ellipse on the x axis; |
y_radius_ | Radius of the ellipse on the y axis; |
z_radius_ | Radius of the ellipse on the z axis; |
r_ | Represents the red component of the color that the ellipse will be painted on; |
g_ | Represents the green component of the color that the ellipse will be painted on; |
b_ | Represents the blue component of the color that the ellipse will be painted on; |
a_ | Represents the transparency component of the color that the ellipse will be painted on; |
|
inline |
Destructor of the PutEllipsoid class.
Acts as the default destructor;
|
virtual |
Member function draw.
Method that will create, from an instance of the Sculptor class passed as a parameter, an ellipse present in its array of voxels.
sculptor | instance of the Sculptor class; |
Implements GeometricFigure.
|
private |
Central coordinate of the ellipse on the x axis.
|
private |
Radius of the ellipse on the x axis.
|
private |
Central coordinate of the ellipse on the y axis.
|
private |
Radius of the ellipse on the y axis.
|
private |
Central coordinate of the ellipse on the z axis.
|
private |
Radius of the ellipse on the z axis.