#include <Scene.h>
Public Member Functions | |
| Scene () | |
| virtual | ~Scene () |
| Object * | getObject () const |
| void | setObject (Object *obj) |
| Background * | getBackground () const |
| void | setBackground (Background *bg) |
| Camera * | getCamera () const |
| void | setCamera (Camera *cam) |
| Image * | getImage () const |
| void | setImage (Image *im) |
| void | addLight (Light *light) |
| const std::vector< Light * > & | getLights () const |
| Color | getAmbient () const |
| void | setAmbient (const Color &amb) |
| int | getMaxRayDepth () const |
| void | setMaxRayDepth (int rd) |
| double | getMinAttenuation () const |
| void | setMinAttenuation (double atten) |
| void | preprocess () |
| void | render () |
| double | traceRay (Color &result, const RenderContext &context, const Ray &ray, const Color &attenuation, int depth) const |
| double | traceRay (Color &result, const RenderContext &context, const Object *obj, const Ray &ray, const Color &attenuation, int depth) const |
Definition at line 21 of file Scene.h.
|
|
|
|
|
|
|
|
Definition at line 54 of file Scene.h. Referenced by Parser::parseScene(). |
|
|
Definition at line 61 of file Scene.h. Referenced by LambertianMaterial::shade(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 57 of file Scene.h. Referenced by LambertianMaterial::shade(). |
|
|
|
|
|
|
|
|
Definition at line 26 of file Scene.h. Referenced by LambertianMaterial::shade(). |
|
|
Definition at line 42 of file Scene.cc. References Background::preprocess(). |
|
|
Definition at line 54 of file Scene.cc. References Background::getBackgroundColor(), HitRecord::getMaterial(), HitRecord::getPrimitive(), Image::getXresolution(), Image::getYresolution(), Object::intersect(), Camera::makeRay(), one_only, Image::set(), Material::shade(), xpixel, and ypixel. |
|
|
Definition at line 64 of file Scene.h. Referenced by Parser::parseScene(). |
|
|
Definition at line 36 of file Scene.h. Referenced by Parser::parseScene(). |
|
|
Definition at line 43 of file Scene.h. Referenced by Parser::parseScene(). |
|
|
|
|
|
Definition at line 71 of file Scene.h. Referenced by Parser::parseScene(). |
|
|
Definition at line 77 of file Scene.h. Referenced by Parser::parseScene(). |
|
|
Definition at line 29 of file Scene.h. Referenced by Parser::parseScene(). |
|
||||||||||||||||||||||||||||
|
Definition at line 135 of file Scene.cc. References Color::maxComponent(). |
|
||||||||||||||||||||||||
|
Definition at line 115 of file Scene.cc. References Color::maxComponent(). |
1.4.6