#include <Light.h>
Inherits DynamicObject.
Inheritance diagram for Light:


Public Methods | |
| Light (Vertex3 p=Vertex3(0.0, 0.0, 1.0)) | |
| const Vertex3 & | getPosition () |
| const Color4 | getAmbient () |
| const Color4 | getDiffuse () |
| const Color4 | getSpecular () |
| virtual real | illuminationFactor (const Vertex3 &v) |
| void | parseSymbol (Token &t, ObjectFile &file) |
| Reads a single parameter sections inside the body of the object description. More... | |
| void | writeParams (ostream &stream) |
| Writes all parameter sections inside the body of the object description. More... | |
Protected Methods | |
| void | createSymbols () |
| Creates all parameter symbols that are used within the body of the object description. | |
Protected Attributes | |
| Vertex3 | position |
| Color4 | ambient |
| Color4 | diffuse |
| Color4 | specular |
| Vertex3 | attenuation |
| Vertex3 | direction |
| real | density |
| real | cutoff |
|
||||||||||||
|
Reads a single parameter sections inside the body of the object description. Each object has a set of parameter names associated with it, called symbols. Symbols are declared inside the createSymbols method. The method parseSymbol expects the Token t to be such a symbol and reads the corresponding parameters. Unknown symbols are passed to its super class.
Reimplemented from DynamicObject. |
|
|
Writes all parameter sections inside the body of the object description. This method writes all object parameters to ostream. Inhereting classes will always call super::writeParams().
Reimplemented from DynamicObject. |