Defines a visitor of the scene graph elements. More...
Public Member Functions | |
virtual void | operator() (const ModelData_Part &thePart)=0 |
virtual bool | VisitEnter (const ModelData_Assembly &theAssembly)=0 |
virtual void | VisitLeave (const ModelData_Assembly &theAssembly)=0 |
virtual bool | VisitEnter (const ModelData_Instance &theInstance)=0 |
virtual void | VisitLeave (const ModelData_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_SceneGraphElementUniqueVisitor.
|
pure virtual |
Implemented in cadex::ModelData_SceneGraphElementUniqueVisitor.
|
pure virtual |
Implemented in cadex::ModelData_SceneGraphElementUniqueVisitor.
|
pure virtual |
Implemented in cadex::ModelData_SceneGraphElementUniqueVisitor.
|
pure virtual |
Implemented in cadex::ModelData_SceneGraphElementUniqueVisitor.