Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The RenderingTree class organizes a set of renderings into an N-ary tree. More...
#include <RenderingTree.hpp>
Public Member Functions | |
RenderingTree () | |
Constructor. | |
RenderingTree (const RenderingTree &other) | |
Copy constructor. | |
RenderingTree & | operator= (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 |
The RenderingTree class organizes a set of renderings into an N-ary tree.
To enable the RenderingTree set the enableMask() to a value != 0, otherwise the RenderingTree will be disabled.
Definition at line 41 of file RenderingTree.hpp.
RenderingTree::RenderingTree | ( | ) |
vl::RenderingTree::RenderingTree | ( | const RenderingTree & | other ) | [inline] |
Copy constructor.
Definition at line 50 of file RenderingTree.hpp.
RenderingTree & RenderingTree::operator= | ( | const RenderingTree & | other ) |
void RenderingTree::render | ( | ) | [virtual] |
Recursively calls the render() method of its children.
Implements vl::RenderingAbstract.
Definition at line 49 of file RenderingTree.cpp.
References vl::Collection< T >::at(), vl::RenderingAbstract::dispatchOnRenderingFinished(), vl::RenderingAbstract::dispatchOnRenderingStarted(), vl::RenderingAbstract::enableMask(), vl::RenderingAbstract::frameClock(), vl::RenderingAbstract::render(), vl::RenderingAbstract::setFrameClock(), vl::Collection< T >::size(), and subRenderings().
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.
Definition at line 61 of file RenderingTree.hpp.
Referenced by render().
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.
Definition at line 63 of file RenderingTree.hpp.
ref< Collection<RenderingAbstract> > vl::RenderingTree::mSubRendering [protected] |
Definition at line 66 of file RenderingTree.hpp.
Referenced by operator=(), and RenderingTree().