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

toxic::PerfectSpecularBRDF Class Reference

#include <perfectspecularbrdf.h>

Inheritance diagram for toxic::PerfectSpecularBRDF:

toxic::IBRDF toxic::IBDF sheep::IClonable< IBDF > List of all members.

Public Member Functions

virtual ~PerfectSpecularBRDF ()
virtual PerfectSpecularBRDFClone () const
virtual bool IsDiffuse () const
virtual bool IsSpecular () const
virtual sheep::Real Evaluate (const Context &context, const sheep::Vector3 &incoming, const sheep::Vector3 &outgoing) const
virtual sheep::Real EvaluateSpecular (const Context &context, const sheep::Vector3 &incoming, sheep::Vector3 *outgoing) const
virtual void Sample (const Context &context, const sheep::Vector3 &incoming, sheep::Vector3 *outgoing, sheep::Real *prob, sheep::Real *value) const
virtual sheep::Real ComputeScatteringProbability (const sheep::Vector3 &incoming, const sheep::Vector3 &outgoing) const
virtual sheep::Real ComputeReflectance (const Context &context) const
 Computes and returns the hemispherical hemispherical reflectance.

virtual sheep::Real ComputeReflectance (const Context &context, const sheep::Vector3 &incoming) const

Constructor & Destructor Documentation

virtual toxic::PerfectSpecularBRDF::~PerfectSpecularBRDF  )  [inline, virtual]
 

Incoming and outgoing directions are both always expressed in the upper part of the unit hemisphere, and they are always unit-length.

Definition at line 42 of file perfectspecularbrdf.h.


Member Function Documentation

PerfectSpecularBRDF * PerfectSpecularBRDF::Clone  )  const [virtual]
 

Implements sheep::IClonable< IBDF >.

Definition at line 27 of file perfectspecularbrdf.cpp.

sheep::Real PerfectSpecularBRDF::ComputeReflectance const Context context,
const sheep::Vector3 incoming
const [inline, virtual]
 

Computes and returns the directional hemispherical reflectance. The incoming direction is expressed in local space.

Todo:
Implement.

Reimplemented from toxic::IBDF.

Definition at line 180 of file perfectspecularbrdf.h.

sheep::Real PerfectSpecularBRDF::ComputeReflectance const Context context  )  const [inline, virtual]
 

Computes and returns the hemispherical hemispherical reflectance.

Todo:
Implement.

Reimplemented from toxic::IBDF.

Definition at line 173 of file perfectspecularbrdf.h.

sheep::Real PerfectSpecularBRDF::ComputeScatteringProbability const sheep::Vector3 incoming,
const sheep::Vector3 outgoing
const [inline, virtual]
 

Computes the probability of scattering from 'incoming' direction to 'outgoing' direction. Both incoming and outgoing directions are expressed in local space.

Reimplemented from toxic::IBDF.

Definition at line 161 of file perfectspecularbrdf.h.

sheep::Real PerfectSpecularBRDF::Evaluate const Context context,
const sheep::Vector3 incoming,
const sheep::Vector3 outgoing
const [inline, virtual]
 

Evaluates the function. Both the incoming and outgoing directions are expressed in local space.

Implements toxic::IBDF.

Definition at line 112 of file perfectspecularbrdf.h.

sheep::Real PerfectSpecularBRDF::EvaluateSpecular const Context context,
const sheep::Vector3 incoming,
sheep::Vector3 outgoing
const [inline, virtual]
 

Reimplemented from toxic::IBDF.

Definition at line 120 of file perfectspecularbrdf.h.

virtual bool toxic::PerfectSpecularBRDF::IsDiffuse  )  const [inline, virtual]
 

Reimplemented from toxic::IBDF.

Definition at line 46 of file perfectspecularbrdf.h.

virtual bool toxic::PerfectSpecularBRDF::IsSpecular  )  const [inline, virtual]
 

Reimplemented from toxic::IBDF.

Definition at line 47 of file perfectspecularbrdf.h.

void PerfectSpecularBRDF::Sample const Context context,
const sheep::Vector3 incoming,
sheep::Vector3 outgoing,
sheep::Real prob,
sheep::Real value
const [inline, virtual]
 

Samples the function in order to obtain an outgoing direction, given an incoming direction. The probability with which the direction has been chosen is also computed. Both incoming and outgoing directions are expressed in local space.

Reimplemented from toxic::IBDF.

Definition at line 138 of file perfectspecularbrdf.h.


The documentation for this class was generated from the following files:
Generated on Tue May 11 01:31:57 2004 for toxic by doxygen 1.3.6