CS488 PA8
All Classes Functions Variables
Public Member Functions | List of all members
DefaultColorizer Class Reference

#include <DefaultColorizer.h>

Inherits Colorizer.

Public Member Functions

virtual Color calculateColor (int fromSideFirstIndex, int fromSideSecondIndex, double lambda, int toSideFirstIndex, int toSideSecondIndex, double rho, double tau)
 
- Public Member Functions inherited from Colorizer
virtual void setProjection (const Matrix< 4, 4 > &projection)
 
virtual void setTriangle (Triangle *triangle)
 

Additional Inherited Members

- Protected Attributes inherited from Colorizer
Matrix< 4, 4 > projection
 
Triangle * triangle
 

Detailed Description

A DefaultColorizer is the simplest kind of Colorizer. It simply uses the frontColor of the Triangle.

Member Function Documentation

◆ calculateColor()

Color DefaultColorizer::calculateColor ( int  fromSideFirstIndex,
int  fromSideSecondIndex,
double  lambda,
int  toSideFirstIndex,
int  toSideSecondIndex,
double  rho,
double  tau 
)
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

Implements Colorizer.


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