Node Class Reference
[Scene]

Basic element of the scene graph. More...

#include <Node.hpp>

Inheritance diagram for Node:
Attachable Bind Blend Clear Cull Depth Framebuffer Group Instance Outputs Program Screen Shader SimpleTransformable Sort Texture Transformation Uniform Wireframe

List of all members.

Public Types

typedef vector< Node * >::iterator iterator

Public Member Functions

 Node (const Tag &tag)
void addChild (Node *child)
virtual bool areChildrenDestroyable () const
virtual bool areChildrenPreparable () const
virtual bool areChildrenPrintable () const
virtual bool areChildrenSelectable () const
virtual bool areChildrenTraversable () const
virtual void associate ()
virtual void associateAfter ()
iterator begin ()
void erase (iterator it)
iterator end ()
virtual void finalize ()
virtual void finalizeAfter ()
virtual string getAttribute (const string &key) const
vector< Node * > getChildren () const
string getClassName () const
float getDepth () const
NodegetParent () const
Tag getTag () const
bool hasChildren () const
virtual bool setAttribute (pair< string, string > attribute)
void setDepth (float depth)
void setParent (Node *parent)
virtual string toString () const

Static Public Member Functions

static bool compare (Node *A, Node *B)
static void destroy (Node *node)
static NodefindRoot (Node *node)

Protected Attributes

float depth
Nodeparent
Tag tag
vector< Node * > children

Friends

ostream & operator<< (ostream &stream, const Node &node)

Detailed Description

Basic element of the scene graph.


Constructor & Destructor Documentation

Node ( const Tag tag  ) 

Creates a new node with no parent.


Member Function Documentation

void addChild ( Node child  ) 

Adds a child to this node.

bool compare ( Node A,
Node B 
) [static]

Compares two Node pointers by depth.


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