QtSculptor  v1.0.0
PutEllipsoid Class Reference

Concrete class PutEllipsoid - Used to display a set of voxels belonging to an elliptical volume. More...

#include <PutEllipsoid.h>

Inheritance diagram for PutEllipsoid:
GeometricFigure

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
 

Detailed Description

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.

Parameters
x_centerRepresents a coordinate on the x axis belonging to the voxel matrix that denotes the center of the ellipse to be created;
y_centerRepresents a coordinate on the y axis belonging to the voxel matrix that denotes the center of the ellipse to be created;
z_centerRepresents a coordinate on the z axis belonging to the voxel matrix that denotes the center of the ellipse to be created;
x_radiusRepresents the radius of the ellipse to be created on the x axis;
y_radiusRepresents the radius of the ellipse to be created on the y axis;
z_radiusRepresents the radius of the ellipse to be created on the z axis;

It inherits directly from the GeometricFigure abstract class.

Constructor & Destructor Documentation

◆ PutEllipsoid()

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.

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

◆ ~PutEllipsoid()

PutEllipsoid::~PutEllipsoid ( )
inline

Destructor of the PutEllipsoid class.

Acts as the default destructor;

Member Function Documentation

◆ draw()

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

Parameters
sculptorinstance of the Sculptor class;

Implements GeometricFigure.

Member Data Documentation

◆ x_center

int PutEllipsoid::x_center
private

Central coordinate of the ellipse on the x axis.

◆ x_radius

int PutEllipsoid::x_radius
private

Radius of the ellipse on the x axis.

◆ y_center

int PutEllipsoid::y_center
private

Central coordinate of the ellipse on the y axis.

◆ y_radius

int PutEllipsoid::y_radius
private

Radius of the ellipse on the y axis.

◆ z_center

int PutEllipsoid::z_center
private

Central coordinate of the ellipse on the z axis.

◆ z_radius

int PutEllipsoid::z_radius
private

Radius of the ellipse on the z axis.


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