NullEmitter Class Reference
Null emitter which doesn't emit any light, defined at a single point in 3-space. More...
#include <NullEmitter.h>
Inheritance diagram for NullEmitter:

Public Member Functions | |
Constructors | |
| NullEmitter (SurfacePoint &pt, Material *parent=NULL) | |
| virtual | ~NullEmitter () |
Initialization | |
| virtual void | init () |
| Performs any initialization that may be necessary before beginning to use this Emitter. | |
Main usage interface | |
| virtual SpectralSampleSet | getLe (const Vector3 &wo) |
| virtual void | preview (Shape *shape) |
| Sets up OpenGL material state (light properties) to enable a crude/fast preview of this light in OpenGL. | |
Detailed Description
Null emitter which doesn't emit any light, defined at a single point in 3-space.
- Date:
- Fall 2008
Definition at line 17 of file NullEmitter.h.
Constructor & Destructor Documentation
| NullEmitter::NullEmitter | ( | SurfacePoint & | pt, | |
| Material * | parent = NULL | |||
| ) | [inline, explicit] |
Definition at line 22 of file NullEmitter.h.
| virtual NullEmitter::~NullEmitter | ( | ) | [inline, virtual] |
Definition at line 26 of file NullEmitter.h.
Member Function Documentation
| void NullEmitter::init | ( | ) | [virtual] |
Performs any initialization that may be necessary before beginning to use this Emitter.
- Note:
- initializes spectral power and radiant exitance to black
Reimplemented from Emitter.
Definition at line 14 of file NullEmitter.cpp.
| SpectralSampleSet NullEmitter::getLe | ( | const Vector3 & | wo | ) | [virtual] |
- Returns:
- the spectral radiance emitted along the given vector
- Note:
- returns SpectralSampleSet::black (null emitter)
Implements Emitter.
Definition at line 19 of file NullEmitter.cpp.
| void NullEmitter::preview | ( | Shape * | shape | ) | [virtual] |
Sets up OpenGL material state (light properties) to enable a crude/fast preview of this light in OpenGL.
- Note:
- overrides default implementation to not modify GL light state at all
Reimplemented from Emitter.
Definition at line 23 of file NullEmitter.cpp.
The documentation for this class was generated from the following files:
Generated on 28 Feb 2009 for Milton by
1.5.6