Module imp3d

Interface SceneTree.Visitor

All Known Implementing Classes:
ClassicVRMLExport, DXFExport, GLTFExport, MTGExport, OBJExport, PLYExport, POVExport, RootlessXMLExporter, SceneGraphExport, STLExport, TEXExport, VRML97Export, WebGLExport, X3DExport, XEGExportScene
Enclosing class:
SceneTree

public static interface SceneTree.Visitor
A Visitor is used to visit a SceneTree. On invocation of SceneTree.accept(Visitor), the complete tree is passed to the specified visitor. This interface follows the design pattern "Hierarchical Visitor".
Author:
Ole Kniemeyer
  • Method Details

    • visitEnter

      void visitEnter(SceneTree.InnerNode node)
      Informs the visitor that an inner node has been entered.
      Parameters:
      node - the node being entered
    • visitLeave

      void visitLeave(SceneTree.InnerNode node)
      Informs the visitor that an inner node has been left.
      Parameters:
      node - the node being left
    • visit

      void visit(SceneTree.Leaf node)
      Informs the visitor that a leaf is visited.
      Parameters:
      node - the leaf being visited