Defines a visitor of the scene graph elements. More...
#include <cadex/ModelData/ModelElementVisitor.hxx>
Public Member Functions | |
virtual void | operator() (const Part &thePart)=0 |
virtual bool | VisitEnter (const Assembly &theAssembly)=0 |
virtual void | VisitLeave (const Assembly &theAssembly)=0 |
virtual bool | VisitEnter (const Instance &theInstance)=0 |
virtual void | VisitLeave (const Instance &theInstance)=0 |
Defines a visitor of the scene graph elements.
The Visitor follows a hierarchical visitor pattern (see http://c2.com/cgi/wiki?HierarchicalVisitorPattern) what enables to track entering and leaving composite entities - assemblies and instances.
Methods VisitEnter() returns true if the child elements of the assembly or a referred element of the instance should be visited. If the method returns false then they will not be visited. The method VisitLeave() will always be called.
|
pure virtual |
Implemented in cadex::ModelData::ModelElementUniqueVisitor.
|
pure virtual |
Implemented in cadex::ModelData::ModelElementUniqueVisitor.
|
pure virtual |
Implemented in cadex::ModelData::ModelElementUniqueVisitor.
|
pure virtual |
Implemented in cadex::ModelData::ModelElementUniqueVisitor.
|
pure virtual |
Implemented in cadex::ModelData::ModelElementUniqueVisitor.