Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]

vl::RenderingTree Class Reference

The RenderingTree class organizes a set of renderings into a tree-like data structure. More...

#include <RenderingTree.hpp>

Inheritance diagram for vl::RenderingTree:

vl::RenderingAbstract vl::Object

List of all members.

Public Member Functions

virtual const char * className ()
 Returns the name of the class.
 RenderingTree ()
 Constructor.
 RenderingTree (const RenderingTree &other)
 Copy constructor.
RenderingTreeoperator= (const RenderingTree &other)
 Assignment operator.
virtual void render ()
 Recursively calls the render() method of its children.
Collection< RenderingAbstract > * subRenderings ()
 The sub-Rendering (or child-Rendering) objects of a Rendering. A sub-Rendering is rendered before it's parent and after its children.
const Collection
< RenderingAbstract > * 
subRenderings () const
 The sub-Rendering (or child-Rendering) objects of a Rendering. A sub-Rendering is rendered before it's parent and after its children.

Protected Attributes

ref< Collection
< RenderingAbstract > > 
mSubRendering


Detailed Description

The RenderingTree class organizes a set of renderings into a tree-like data structure.

To enable the RenderingTree set the enableMask() to a value != 0, otherwise the RenderingTree will be disabled.


Constructor & Destructor Documentation

RenderingTree::RenderingTree (  ) 

Constructor.

vl::RenderingTree::RenderingTree ( const RenderingTree other  )  [inline]

Copy constructor.


Member Function Documentation

virtual const char* vl::RenderingTree::className (  )  [inline, virtual]

Returns the name of the class.

Reimplemented from vl::Object.

RenderingTree & RenderingTree::operator= ( const RenderingTree other  ) 

Assignment operator.

void RenderingTree::render (  )  [virtual]

Recursively calls the render() method of its children.

Note:

Implements vl::RenderingAbstract.

Collection<RenderingAbstract>* vl::RenderingTree::subRenderings (  )  [inline]

The sub-Rendering (or child-Rendering) objects of a Rendering. A sub-Rendering is rendered before it's parent and after its children.

const Collection<RenderingAbstract>* vl::RenderingTree::subRenderings (  )  const [inline]

The sub-Rendering (or child-Rendering) objects of a Rendering. A sub-Rendering is rendered before it's parent and after its children.


Member Data Documentation


The documentation for this class was generated from the following files:

Visualization Library v2009.08 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Sun Nov 8 14:29:02 2009.
Permission is granted to use this page to write and publish articles regarding Visualization Library.