#include <Shape.h>
Inherits DynamicObject.
Inherited by ImplicitShape.
Inheritance diagram for Shape:


Public Methods | |
| virtual | ~Shape () |
| void | setShade (ShadeBlend *s) |
| virtual Vertex3 | normal (const Vertex3 &v) |
| virtual real | intersect (const Ray &ray, real t=step, real T=infinity) |
| virtual Color4 | calculateShade (const SurfaceInfo &s, Vertex3 &transformed, Scene &scene) |
| virtual void | transform (Matrix4 &m) |
| 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... | |
Static Public Attributes | |
| const real | step = 1.0e-4 |
| const real | infinity = 1.0e+5 |
Protected Types | |
| typedef RefCount< ShadeBlend > | RefBlend |
Protected Methods | |
| void | createSymbols () |
| Creates all parameter symbols that are used within the body of the object description. | |
Protected Attributes | |
| RefShade | shade |
|
||||||||||||
|
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. Reimplemented in Box. |
|
|
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. Reimplemented in Box. |