scg3  0.6
scg::Leaf Class Referenceabstract

Base class for all leaf nodes, i.e., nodes without children (composite pattern, abstract). More...

#include "Leaf.h"

Inheritance diagram for scg::Leaf:
[legend]
Collaboration diagram for scg::Leaf:
[legend]

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_
 
Compositeparent_
 
std::vector< CoreSPcores_
 
bool isVisible_
 
std::unordered_map< std::string, std::string > metaInfo_
 

Detailed Description

Base class for all leaf nodes, i.e., nodes without children (composite pattern, abstract).

Definition at line 36 of file Leaf.h.

Constructor & Destructor Documentation

◆ Leaf()

scg::Leaf::Leaf ( )

Constructor.

◆ ~Leaf()

virtual scg::Leaf::~Leaf ( )
pure virtual

Destructor.

Member Function Documentation

◆ traverse()

virtual void scg::Leaf::traverse ( Traverser traverser)
virtual

Traverse node tree (depth-first, pre-order) with given traverser.

Implements scg::Node.


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