#include <Colorizer.h>
Inherited by DefaultColorizer.
A Colorizer is used by a Rasterizer3D to determine the Color of a pixel.
◆ calculateColor()
virtual Color Colorizer::calculateColor |
( |
int |
fromSideFirstIndex, |
|
|
int |
fromSideSecondIndex, |
|
|
double |
lambda, |
|
|
int |
toSideFirstIndex, |
|
|
int |
toSideSecondIndex, |
|
|
double |
rho, |
|
|
double |
tau |
|
) |
| |
|
pure virtual |
Calculate the Color of a pixel.
- Parameters
-
fromSideFirstIndex | The first index of the from side |
fromSideSecondIndex | The second index of the from side |
lambda | The weight for the from side |
toSideFirstIndex | The first index of the to side |
toSideSecondIndex | The second index of the to side |
rho | The weight for the to side |
tau | The side-to-side weight |
- Returns
- The Color
Implemented in DefaultColorizer.
◆ setProjection()
void Colorizer::setProjection |
( |
const Matrix< 4, 4 > & |
projection | ) |
|
|
virtual |
Set the projection Matrix.
- Parameters
-
projection | The projection Matrix |
◆ setTriangle()
void Colorizer::setTriangle |
( |
Triangle * |
triangle | ) |
|
|
virtual |
Set the Triangle.
- Parameters
-
triangle | A pointer to the Triangle |
◆ projection
Matrix<4, 4> Colorizer::projection |
|
protected |
The projection Matrix to use.
◆ triangle
Triangle* Colorizer::triangle |
|
protected |
The Triangle of interest.
The documentation for this class was generated from the following files: