#include <Scene.h>
Collaboration diagram for Scene:

Public Member Functions | |
| void | load (std::string fileName) |
| Load scene from XML file. | |
| void | applyEmission () |
| Set initial radiosity for light sources. | |
| void | divide (float size) |
| Divide scene triangles to patches. | |
| RadiosityRenderer * | createRadiosityRenderer (int stepCount, float formFactorTreshold, long maxCacheSize) |
| |
| void | save (std::string fileName) |
| Save scene to XML file. | |
| TriangleSetExt * | dumpForVis () |
| |
Friends | |
| std::ostream & | operator<< (std::ostream &out, Scene &scene) |
| Dump all scene patches to output stream in human readable format. | |
Definition at line 26 of file Scene.h.
| void Scene::load | ( | std::string | fileName | ) |
Load scene from XML file.
| fileName | Name of file to load. |
| void Scene::applyEmission | ( | ) |
Set initial radiosity for light sources.
This is a way of acceleration - you get useful output after 1st step.
| void Scene::divide | ( | float | size | ) |
Divide scene triangles to patches.
Recursive division of triangles until they are smaller as given size.
| size | Maximum acceptable size of patch. |
| RadiosityRenderer* Scene::createRadiosityRenderer | ( | int | stepCount, | |
| float | formFactorTreshold, | |||
| long | maxCacheSize | |||
| ) |
| stepCount | Number of radiosity computation steps. | |
| formFactorTreshold | Pair of patches with smaller form factor than formFactorTreshold will be ignored. | |
| maxCacheSize | Maximum size of patch cache (in bytes). |
| void Scene::save | ( | std::string | fileName | ) |
Save scene to XML file.
| fileName | Name of file to save scene to. |
| TriangleSetExt* Scene::dumpForVis | ( | ) |
This method is used for scene visualization.
| std::ostream& operator<< | ( | std::ostream & | out, | |
| Scene & | scene | |||
| ) | [friend] |
Dump all scene patches to output stream in human readable format.
| out | Output stream to write to. | |
| scene | Reference to Scene object to dump. |
1.5.2