lux::SphericalFunction Class Reference

#include <sphericalfunction.h>

Inheritance diagram for lux::SphericalFunction:
[legend]

List of all members.

Public Member Functions

virtual ~SphericalFunction ()
RGBColor f (const Vector &w) const
virtual RGBColor f (float phi, float theta) const =0

Detailed Description

A simple interface for functions on a sphere.

Definition at line 35 of file sphericalfunction.h.


Constructor & Destructor Documentation

virtual lux::SphericalFunction::~SphericalFunction (  )  [inline, virtual]

Definition at line 37 of file sphericalfunction.h.


Member Function Documentation

virtual RGBColor lux::SphericalFunction::f ( float  phi,
float  theta 
) const [pure virtual]

Evaluates this function for the given direction.

Parameters:
phi The angle in the xy plane.
theta The angle from the z axis.
Returns:
The function value for the given direction.

Implemented in HemiSphereSphericalFunction, lux::NoopSphericalFunction, lux::MipMapSphericalFunction, lux::CompositeSphericalFunction, and lux::SampleableSphericalFunction.

RGBColor lux::SphericalFunction::f ( const Vector w  )  const [inline]

Evaluates this function for the given direction.

Parameters:
w A normalized direction.
Returns:
The function value for the given direction.

Definition at line 46 of file sphericalfunction.h.

References lux::SphericalPhi(), and lux::SphericalTheta().


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.2-20100208