igor::iNodeVisitor Class Referenceabstract

#include <iNodeVisitor.h>

Inherited by igor::iModelDataIOOMPF, igor::iNodeVisitorBoundings, igor::iNodeVisitorPrintTree, igor::iNodeVisitorRenderBoundings, igor::iNodeVisitorRenderColorID, igor::iNodeVisitorSearchName, and igor::iNodeVisitorUpdateTransform.

Public Member Functions

 iNodeVisitor ()=default
 
virtual ~iNodeVisitor ()=default
 
void setTraverseInactiveChildren (bool traverseInactive=true)
 
void setTraverseSiblings (bool traverseSiblings=true)
 
void traverseTree (iNodePtr node)
 

Protected Member Functions

virtual void preTraverse ()=0
 
virtual bool preOrderVisit (iNodePtr node, iNodePtr nextSibling)=0
 
virtual void postOrderVisit (iNodePtr node)=0
 
virtual void postTraverse ()=0
 

Detailed Description

base class for traversing a node tree

Constructor & Destructor Documentation

◆ iNodeVisitor()

igor::iNodeVisitor::iNodeVisitor ( )
default

does nothing

◆ ~iNodeVisitor()

virtual igor::iNodeVisitor::~iNodeVisitor ( )
virtualdefault

does nothing

Member Function Documentation

◆ postOrderVisit()

virtual void igor::iNodeVisitor::postOrderVisit ( iNodePtr  node)
protectedpure virtual

◆ postTraverse()

virtual void igor::iNodeVisitor::postTraverse ( )
protectedpure virtual

◆ preOrderVisit()

virtual bool igor::iNodeVisitor::preOrderVisit ( iNodePtr  node,
iNodePtr  nextSibling 
)
protectedpure virtual

◆ preTraverse()

virtual void igor::iNodeVisitor::preTraverse ( )
protectedpure virtual

◆ setTraverseInactiveChildren()

void igor::iNodeVisitor::setTraverseInactiveChildren ( bool  traverseInactive = true)

setter if inactive children shall be traversed too

Parameters
traverseInactiveif true inactive children will be traversed too

◆ setTraverseSiblings()

void igor::iNodeVisitor::setTraverseSiblings ( bool  traverseSiblings = true)

sets wether or not traversal will check for next sibling

Parameters
traverseSiblingsif true traversal will call preOrderVisit with next sibling if available

◆ traverseTree()

void igor::iNodeVisitor::traverseTree ( iNodePtr  node)

traverses tree from given node on

Parameters
nodenode to start from

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