Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Material Class Reference

Base class for classes representing materials (Diffuse, Phong, Checker). More...

#include <material.h>

Inherited by Checker, Diffuse, and Phong.

Inheritance diagram for Material:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Material (float r=0.0f, float t=0.0f)
virtual ~Material ()
virtual Color getBRDF (const Intersection &is, const Vector &L)=0
 Returns the BRDF at the intersection is for the light direction L.
virtual float getReflectivity (const Intersection &is) const
 Returns the reflectivity of the material in the range [0,1] at the intersection, where 0 means not reflective at all, and 1 gives a perfect mirror.
virtual void setReflectivity (float r)
 Sets the reflectivity of the material.
virtual float getTransparency (const Intersection &is) const
 Returns the transparency of the material in the range [0,1] at the intersection, where 0 is fully opaque, and 1 is fully transparent.
virtual void setTransparency (float t)
 Sets the transparency of the material.

Protected Attributes

float mReflectivity
 The reflectivity of the material.
float mTransparency
 The transparency of the material.

Detailed Description

Base class for classes representing materials (Diffuse, Phong, Checker).


The documentation for this class was generated from the following file:
Generated on Tue Mar 14 09:46:38 2006 for ASR by  doxygen 1.4.4