![]() |
scg3
0.6
|
Base class for all leaf nodes, i.e., nodes without children (composite pattern, abstract). More...
#include "Leaf.h"
Public Member Functions | |
| Leaf () | |
| virtual | ~Leaf ()=0 |
| virtual void | traverse (Traverser *traverser) |
Public Member Functions inherited from scg::Node | |
| Node () | |
| virtual | ~Node ()=0 |
| virtual void | clear () |
| virtual void | destroy () |
| int | getNCores () const |
| const std::string & | getMetaInfo (const std::string &key) const |
| void | setMetaInfo (const std::string &key, const std::string &value) |
| bool | isVisible () const |
| void | setVisible (bool isVisible=true) |
| virtual void | accept (Traverser *traverser) |
| virtual void | render (RenderState *renderState) |
Additional Inherited Members | |
Protected Member Functions inherited from scg::Node | |
| void | addSibling_ (NodeSP sibling) |
| void | removeSibling_ (Node *node, bool &result) |
| void | processCores_ (RenderState *renderState) |
| void | postProcessCores_ (RenderState *renderState) |
Protected Attributes inherited from scg::Node | |
| NodeSP | rightSibling_ |
| Composite * | parent_ |
| std::vector< CoreSP > | cores_ |
| bool | isVisible_ |
| std::unordered_map< std::string, std::string > | metaInfo_ |
Base class for all leaf nodes, i.e., nodes without children (composite pattern, abstract).
| scg::Leaf::Leaf | ( | ) |
Constructor.
|
pure virtual |
Destructor.
|
virtual |
Traverse node tree (depth-first, pre-order) with given traverser.
Implements scg::Node.