#include <SphereFlake.h>
Inheritance diagram for SphereFlake:
Public Member Functions | |
SphereFlake (const SDS &proto, unsigned factor, float radius=1.0) | |
SceneGraphObject::OID | appendModel (Parser &parser, const Matrix4 *m=NULL) |
SceneGraphObject::OID | appendObject (SceneGraphObject *primitive) |
SceneGraphObject::OID | appendLight (LightSource *light) |
void | build (void) |
bool | haveLight (void) const |
Group * | root (void) |
virtual void | __debug (void) |
Protected Member Functions | |
void | _create_lights (void) |
AutoPtr< Material > ** | _create_materials (unsigned &) |
void | _create_object_set (Vector3[9]) |
void | _create_spheres (unsigned, const Vector4 &, const Vector4 &, Vector3[9], AutoPtr< Material > **, unsigned) |
Protected Attributes | |
SceneGraphObject::OID | _lastOID |
Group | _sceneGraph |
bool | _haveLight |
Definition at line 18 of file SphereFlake.h.
|
Number of spheres = 9^factor + number_of__spheres(factor-1)
factor # spheres # squares 0 1 1 1 10 1 2 91 1 3 820 1 4 7381 1 5 66430 1 6 597871 1 7 5380840 1
Definition at line 140 of file SphereFlake.cc. References SphereFlake::_create_lights(), SphereFlake::_create_materials(), SphereFlake::_create_object_set(), SphereFlake::_create_spheres(), Scene::_lastOID, Scene::appendObject(), and Scene::build(). |
|
Used only for debugging. Definition at line 63 of file Scene.cc. References Scene::_sceneGraph. |
|
Definition at line 9 of file SphereFlake.cc. References Scene::appendLight(). Referenced by SphereFlake::SphereFlake(). |
|
Definition at line 19 of file SphereFlake.cc. Referenced by SphereFlake::SphereFlake(). |
|
Definition at line 48 of file SphereFlake.cc. Referenced by SphereFlake::SphereFlake(). |
|
Definition at line 77 of file SphereFlake.cc. References Scene::_lastOID, and Scene::appendObject(). Referenced by SphereFlake::SphereFlake(). |
|
Appends a light source to the scene.
Definition at line 53 of file Scene.cc. References Scene::_haveLight, Scene::_lastOID, and Scene::_sceneGraph. Referenced by CornellBox::_build_lights(), SphereFlake::_create_lights(), and FractalMount::_create_lights(). |
|
Appends model to the scene.
Definition at line 7 of file Scene.cc. References Scene::_lastOID, and Scene::_sceneGraph. |
|
Appends single object to the scene.
Definition at line 32 of file Scene.cc. References Scene::_lastOID, and Scene::_sceneGraph. Referenced by CornellBox::_build_sphere_flake(), CornellBox::_build_walls(), SphereFlake::_create_spheres(), FractalMount::_create_spheres(), CornellBox::addCrystalicSphere(), CornellBox::addMirrorSphere(), and SphereFlake::SphereFlake(). |
|
Prepares the scene for manipulation. There is no guarantee that the scene is realy created until the build() method is called. After the build() call the scene is created. Nevertheless, you _can_ still append additional primitives and/or models. Definition at line 65 of file Scene.h. Referenced by FractalMount::FractalMount(), and SphereFlake::SphereFlake(). |
|
|
|
|
Definition at line 22 of file Scene.h. Referenced by Scene::appendLight(). |
|
|
Definition at line 21 of file Scene.h. Referenced by Scene::__debug(), Scene::appendLight(), Scene::appendModel(), and Scene::appendObject(). |