#include <sphericalfunction.h>
Public Member Functions | |
CompositeSphericalFunction () | |
void | Add (boost::shared_ptr< const SphericalFunction > aFunc) |
RGBColor | f (float phi, float theta) const |
Private Attributes | |
vector< boost::shared_ptr < const SphericalFunction > > | funcs |
A spherical functions that composes multiple spherical functions by multiplying their results.
Definition at line 91 of file sphericalfunction.h.
lux::CompositeSphericalFunction::CompositeSphericalFunction | ( | ) | [inline] |
Definition at line 93 of file sphericalfunction.h.
void lux::CompositeSphericalFunction::Add | ( | boost::shared_ptr< const SphericalFunction > | aFunc | ) | [inline] |
Definition at line 95 of file sphericalfunction.h.
References funcs.
RGBColor lux::CompositeSphericalFunction::f | ( | float | phi, | |
float | theta | |||
) | const [inline, virtual] |
Evaluates this function for the given direction.
phi | The angle in the xy plane. | |
theta | The angle from the z axis. |
Implements lux::SphericalFunction.
Definition at line 100 of file sphericalfunction.h.
References funcs.
vector< boost::shared_ptr<const SphericalFunction> > lux::CompositeSphericalFunction::funcs [private] |
Definition at line 107 of file sphericalfunction.h.