Classes in this namespace hold scene data: Location of objects, colors, textures, cameras, lights`, etc.
Classes | |
| class | Camera |
| Camera data, algorithms and functions used for creating camera rays. More... | |
| class | Color |
| Color data and operations. More... | |
| class | Light |
| Light interface. More... | |
| class | PointLight |
| Scene point light. More... | |
| class | AmbientLight |
| Scene ambient light. More... | |
| class | Material |
| Material data and operations. More... | |
| class | Object |
| Basic object data and interface. More... | |
| class | Plane |
| Object abstracting infinite plane. More... | |
| class | Scene |
| Collision detection and scene management. More... | |
| class | XMLError |
| Exception internal to XML reader. More... | |
| class | Sphere |
| Mathematical sphere (ball rather). More... | |
| class | Texture |
| Texture interface. More... | |
Namespaces | |
| namespace | ColLib |
| Color library. | |
| namespace | MatLib |
| Material library. | |
| namespace | TexLib |
| Texture library. | |
Functions | |
| std::ostream & | operator<< (std::ostream &os, const Camera &C) |
| std::ostream & | operator<< (std::ostream &os, const Color &C) |
| std::ostream & | operator<< (std::ostream &os, const Light &L) |
| std::ostream & | operator<< (std::ostream &os, const Material &M) |
| std::ostream & | operator<< (std::ostream &os, const Object &O) |
| static const Double | NearestCollision (0.001) |
| template<typename T> | |
| static std::string | ToStr (const T &var) |
| static Double | ToDouble (const std::string &str) |
| static Bool | IsDouble (const std::string &str) |
| static std::string | GetProp (xmlNodePtr Node, const char *id) |
| static Double | GetDoubleProp (xmlNodePtr Node, const char *str) |
| static Double | GetDoubleProp (xmlNodePtr Node, const char *str, Double DefaultValue) |
| static void | EnsureColorTag (xmlNodePtr Node, xmlNodePtr ErrorCtx=NULL) |
| static std::string | GetID (xmlNodePtr Node) |
| static Bool | IsToken (xmlNodePtr Node, const char *Token) |
| static void | OmitComments (xmlNodePtr &Node) |
| std::ostream & | operator<< (std::ostream &os, const Texture &T) |
| static void World::EnsureColorTag | ( | xmlNodePtr | Node, | |
| xmlNodePtr | ErrorCtx = NULL | |||
| ) | [static] |
Ensures given tag name is "Color"
Definition at line 119 of file SceneXML.cc.
Referenced by World::Scene::ParseLight(), and World::Scene::ParseTexture().

| static Double World::GetDoubleProp | ( | xmlNodePtr | Node, | |
| const char * | str, | |||
| Double | DefaultValue | |||
| ) | [static] |
Read optional numerical property and convert to double if property is not given use the given default value
Definition at line 105 of file SceneXML.cc.
References GetProp(), and ToDouble().

| static Double World::GetDoubleProp | ( | xmlNodePtr | Node, | |
| const char * | str | |||
| ) | [static] |
Read compulsory numerical property and convert to double
Definition at line 90 of file SceneXML.cc.
References GetProp(), IsDouble(), and ToDouble().
Referenced by World::Scene::ParseCamera(), World::Scene::ParseIdx(), World::Scene::ParseMaterial(), World::Scene::ParsePlane(), and World::Scene::ParseSphere().


| static std::string World::GetID | ( | xmlNodePtr | Node | ) | [static] |
Read compulsory ID
Definition at line 136 of file SceneXML.cc.
References GetProp().
Referenced by World::Scene::ParseTexture().


| static std::string World::GetProp | ( | xmlNodePtr | Node, | |
| const char * | id | |||
| ) | [static] |
Helper function retrieving property
Definition at line 79 of file SceneXML.cc.
Referenced by GetDoubleProp(), GetID(), World::Scene::ParseColor(), World::Scene::ParseIdx(), World::Scene::ParseLight(), World::Scene::ParseMaterial(), World::Scene::ParsePlane(), World::Scene::ParseSphere(), World::Scene::ParseTexture(), and World::Scene::ParseVector().

| static Bool World::IsDouble | ( | const std::string & | str | ) | [static] |
Check numerical value syntax
Definition at line 57 of file SceneXML.cc.
Referenced by GetDoubleProp(), and World::Scene::ParseIdx().

| static Bool World::IsToken | ( | xmlNodePtr | Node, | |
| const char * | Token | |||
| ) | [static] |
Checks if the current node matches token
Definition at line 146 of file SceneXML.cc.
Referenced by OmitComments(), World::Scene::ParseCamera(), World::Scene::ParseFile(), World::Scene::ParseLight(), World::Scene::ParsePlane(), and World::Scene::ParseSphere().

| static const Double World::NearestCollision | ( | 0. | 001 | ) | [static] |
Nearest taken in account Ray collision
Referenced by World::Sphere::Collide(), and World::Plane::Collide().

| static void World::OmitComments | ( | xmlNodePtr & | Node | ) | [static] |
Increment token while omitting any commentaries
Definition at line 154 of file SceneXML.cc.
References IsToken().
Referenced by World::Scene::ParseCamera(), World::Scene::ParseFile(), World::Scene::ParseLight(), World::Scene::ParsePlane(), World::Scene::ParseSphere(), and World::Scene::ParseTexture().


| std::ostream& World::operator<< | ( | std::ostream & | os, | |
| const Texture & | T | |||
| ) |
Pretty-printer
Definition at line 33 of file Texture.cc.
References World::Texture::Dump().

| std::ostream& World::operator<< | ( | std::ostream & | os, | |
| const Object & | O | |||
| ) |
Pretty-printer
Definition at line 38 of file Object.cc.
References World::Object::Dump().

| std::ostream& World::operator<< | ( | std::ostream & | os, | |
| const Material & | M | |||
| ) |
Pretty-printer
Definition at line 24 of file Material.cc.
References World::Material::Diffuse, World::Material::Index, World::Material::Reflect, World::Material::Refract, World::Material::Shininess, and World::Material::Specular.
| std::ostream& World::operator<< | ( | std::ostream & | os, | |
| const Light & | L | |||
| ) |
Pretty-printer
Definition at line 22 of file Light.cc.
References World::Light::Dump().

| std::ostream& World::operator<< | ( | std::ostream & | os, | |
| const Color & | C | |||
| ) |
Pretty-printer
Definition at line 20 of file Color.cc.
References Math::Tuple< T, DoCropping, Count >::Dump().

| std::ostream& World::operator<< | ( | std::ostream & | os, | |
| const Camera & | C | |||
| ) |
Pretty-printer
Definition at line 91 of file Camera.cc.
References World::Camera::Dir, World::Camera::FOV, World::Camera::Pos, and World::Camera::Top.
| static Double World::ToDouble | ( | const std::string & | str | ) | [static] |
Convert string to double without checking syntax
Definition at line 28 of file SceneXML.cc.
Referenced by GetDoubleProp(), World::Scene::ParseColor(), World::Scene::ParseTexture(), and World::Scene::ParseVector().

| static std::string World::ToStr | ( | const T & | var | ) | [inline, static] |
Convert any type to string (debug function )
Definition at line 21 of file SceneXML.cc.
Referenced by World::Scene::ParseFile().

1.5.5