QtSculptor  v1.0.0
GeometricFigure Class Referenceabstract

Abstract class GeometricFigure - Base for generating geometries. More...

#include <GeometricFigure.h>

Inheritance diagram for GeometricFigure:
CutBox CutEllipsoid CutSphere CutVoxel PutBox PutEllipsoid PutSphere PutVoxel

Public Member Functions

virtual ~GeometricFigure ()
 GeometricFigure class constructor. More...
 
virtual void draw (Sculptor &sculptor)=0
 Pure virtual Draw function. More...
 

Protected Attributes

float r
 
float g
 
float b
 
float a
 

Detailed Description

Abstract class GeometricFigure - Base for generating geometries.

Base class for the geometric application of all elements that can be built or deleted from the voxel array of an instance of the Sculptor class.

Parameters
rRepresents the red component of the color that the voxel(s) will be painted;
gRepresents the green component of the color that the voxel(s) will be painted;
bRepresents the blue component of the color that the voxel(s) will be painted;
aRepresents the transparency component of the color that the voxel(s) will be painted;

Constructor & Destructor Documentation

◆ ~GeometricFigure()

virtual GeometricFigure::~GeometricFigure ( )
inlinevirtual

GeometricFigure class constructor.

Member Function Documentation

◆ draw()

virtual void GeometricFigure::draw ( Sculptor sculptor)
pure virtual

Pure virtual Draw function.

Base method for implementing the application logic of each geometry that inherits from this class on top of a digital sculptor instance of the Sculptor class.

Parameters
sculptorinstance of the Sculptor class;

Implemented in PutBox, PutEllipsoid, CutBox, PutSphere, CutEllipsoid, CutSphere, PutVoxel, and CutVoxel.

Member Data Documentation

◆ a

float GeometricFigure::a
protected

Transparency component in RGBA color format in a floating point range from 0 to 1.

◆ b

float GeometricFigure::b
protected

Blue component RGBA color format in a floating point range from 0 to 1.

◆ g

float GeometricFigure::g
protected

Green component RGBA color format in a floating point range from 0 to 1.

◆ r

float GeometricFigure::r
protected

Red component RGBA color format in a floating point range from 0 to 1.


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