CS488 PA8
All Classes Functions Variables
Public Member Functions | Protected Attributes | List of all members
Colorizer Class Referenceabstract

#include <Colorizer.h>

Inherited by DefaultColorizer.

Public Member Functions

virtual Color calculateColor (int fromSideFirstIndex, int fromSideSecondIndex, double lambda, int toSideFirstIndex, int toSideSecondIndex, double rho, double tau)=0
 
virtual void setProjection (const Matrix< 4, 4 > &projection)
 
virtual void setTriangle (Triangle *triangle)
 

Protected Attributes

Matrix< 4, 4 > projection
 
Triangle * triangle
 

Detailed Description

A Colorizer is used by a Rasterizer3D to determine the Color of a pixel.

Member Function Documentation

◆ 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
fromSideFirstIndexThe first index of the from side
fromSideSecondIndexThe second index of the from side
lambdaThe weight for the from side
toSideFirstIndexThe first index of the to side
toSideSecondIndexThe second index of the to side
rhoThe weight for the to side
tauThe 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
projectionThe projection Matrix

◆ setTriangle()

void Colorizer::setTriangle ( Triangle *  triangle)
virtual

Set the Triangle.

Parameters
triangleA pointer to the Triangle

Member Data Documentation

◆ 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: