Scene Class Reference
[Scene]

Collection of nodes opened from a file. More...

#include <Scene.hpp>

List of all members.

Public Member Functions

 Scene ()
 ~Scene ()
void addAllToSelection ()
void addToSelection (Node *node)
string getFilename () const
NodegetRoot () const
SelectiongetSelection ()
void open (string filename)
void prepare ()
void removeAllFromSelection ()
void removeFromSelection (Node *node)
void print ()
void setRoot (Node *node)

Protected Member Functions

void associate (Node *node)
void finalize (Node *node)

Private Attributes

Noderoot
Selection selection
string filename

Detailed Description

Collection of nodes opened from a file.


Constructor & Destructor Documentation

Scene (  ) 

Creates and initializes a new scene.

~Scene (  ) 

Destroys all the nodes in the scene.


Member Function Documentation

void addAllToSelection (  )  [inline]

Selects all the nodes in the scene.

void addToSelection ( Node node  )  [inline]

Selects a single item in the scene.

void associate ( Node node  )  [protected]

Associate all the nodes in the scene.

void finalize ( Node node  )  [protected]

Finalize all the nodes in the scene.

Parameters:
node Pointer to current node
string getFilename (  )  const [inline]
Returns:
file the scene was opened from
Node * getRoot (  )  const [inline]
Returns:
top-most node in the scene
Selection & getSelection (  )  [inline]
Returns:
pointers to all the selected nodes in the scene
void open ( string  filename  ) 

Opens a scene from a file.

Parameters:
filename Path to the file.
void prepare (  ) 

Allows nodes in graph to associate and finalize themselves.

void print (  ) 

Prints all the nodes in the scene.

void removeAllFromSelection (  )  [inline]

Deselects all the nodes in the scene.

void removeFromSelection ( Node node  )  [inline]

Deselects a single node in the scene

void setRoot ( Node node  ) 

Replaces the root of the scene with a new node.

Exceptions:
Exception if the root has children already
Exception if node is NULL

The documentation for this class was generated from the following files:
Generated on Wed Jun 9 01:36:36 2010 for Gander by  doxygen 1.6.3