Instance Class Reference
[Advanced]

Redraws all the nodes of a group with different characteristics. More...

#include <Instance.hpp>

Inheritance diagram for Instance:
Node Applicable

List of all members.

Public Member Functions

 Instance (const Tag &tag)
virtual void apply ()
virtual bool areChildrenDestroyable () const
virtual bool areChildrenPrintable () const
virtual void associate ()
virtual void associateAfter ()
virtual void finalize ()
virtual void finalizeAfter ()
virtual void remove ()
virtual string toString () const

Protected Member Functions

void assignParents ()
void findChildren ()
void findGroup ()
void findShapes ()
void findUniforms ()
void restoreShapes ()
void restoreUniforms ()
void storeShapes ()
void storeUniforms ()

Private Attributes

bool suppress
Suppressor suppressor
Groupgroup
string of
map< Shape *, ShapeSnapshot > shapes
map< Uniform *, UniformSnapshot > uniforms

Detailed Description

Redraws all the nodes of a group with different characteristics.

Warning:
Default uniforms on shapes in an instance may not work correctly.

Constructor & Destructor Documentation

Instance ( const Tag tag  ) 

Initializes the and suppress attributes.


Member Function Documentation

void apply (  )  [virtual]

Resets all the uniforms to be under this instance.

Implements Applicable.

void assignParents (  )  [protected]

Makes sure the instance's children point to it.

void associate (  )  [virtual]

Finds the group, its children, and all the uniforms in it.

Reimplemented from Node.

void associateAfter (  )  [virtual]

Stores the programs of the uniforms so they can be reset later.

Reimplemented from Node.

void finalize (  )  [virtual]

Resets all the uniforms to be under this instance.

Reimplemented from Node.

void finalizeAfter (  )  [virtual]

Stores the locations of the uniforms so they can be reset later.

Reimplemented from Node.

void findChildren (  )  [protected]

Adds the group's children to the instance's children.

void findGroup (  )  [protected]

Finds the group named by of.

Exceptions:
NodeException if the group cannot be found.
void findShapes (  )  [protected]

Finds all the shapes in the group.

void findUniforms (  )  [protected]

Finds all the uniforms in the group.

void restoreShapes (  )  [protected]

Resets the shapes to their stored snapshots.

void restoreUniforms (  )  [protected]

Resets the uniforms to their stored snapshots.

void storeShapes (  )  [protected]

Saves snapshots of the shapes.

void storeUniforms (  )  [protected]

Saves snapshots of the uniforms.

string toString (  )  const [virtual]
Returns:
Adds of and suppress attributes to description.

Reimplemented from Node.


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