#include <scene.h>
Public Member Functions | |
| Scene () | |
| Scene (std::string fileName) | |
| ~Scene () | |
| void | loadFile (std::string fileName) |
| void | saveScene (std::string fileName) |
| void | addObject (SceneObject *newObject) |
| void | setName (std::string newName) |
| std::string | name () const |
Protected Member Functions | |
| Shape * | loadShape (TiXmlElement *shapeElement) |
| void | loadGroup (TiXmlElement *groupElement) |
| void | loadNodesEdges (TiXmlElement *NodeEdgeElement, Shape *ownerShape) |
Protected Attributes | |
| std::string | sceneName |
| std::vector< SceneObject * > | objects |
Controls what everything does.
|
|
Creates an empty scene |
|
|
Load a scene from file
|
|
|
Destructor |
|
|
Load a scene from file
|
|
|
Save a scene to file
|
|
|
Add an object to the scene.
|
|
|
Set the name of the scene
|
|
|
|
|
|
Parse an XML element of type <shape> (or <square> etc.) and add it properly to the scene
|
|
|
Parse an XML element of type <group> and add it properly to the scene
|
|
||||||||||||
|
Parse an XML element of type <node> (or <edge> etc.) and add it properly to the shape (or square etc.)
|
|
|
Name of scene |
|
|
Shapes in scene |