PhotoGENius V1.0.0
A basic library for generating photorealistic images, developed for the course Numerical techniques for photorealistic image generation.
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PGENLib.Pigment Class Reference

This abstract class represents a pigment with a function that associates a color with each point on a parametric surface (u,v). More...

Inheritance diagram for PGENLib.Pigment:
PGENLib.CheckeredPigment PGENLib.ImagePigment PGENLib.UniformPigment

Public Member Functions

virtual Color GetColor (Vec2d uv)
 Calculate a color (type color) associated with a (u,v) coordinate. More...
 

Protected Member Functions

 Pigment (Color color=default)
 

Protected Attributes

Color Color
 

Detailed Description

This abstract class represents a pigment with a function that associates a color with each point on a parametric surface (u,v).

Member Function Documentation

◆ GetColor()

virtual Color PGENLib.Pigment.GetColor ( Vec2d  uv)
virtual

Calculate a color (type color) associated with a (u,v) coordinate.

Parameters
uv2D vector
Returns
the color of the pigment at the specified coordinates

Reimplemented in PGENLib.UniformPigment, PGENLib.CheckeredPigment, and PGENLib.ImagePigment.


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