Module imp3d

Class DisplayVisitor

java.lang.Object
de.grogra.imp3d.Visitor3D
de.grogra.imp3d.DisplayVisitor
All Implemented Interfaces:
Visitor
Direct Known Subclasses:
FluxLightVisitor, FluxSceneVisitor, GLDisplay.GLVisitor, MergeShapeVisitor, SceneVisitor

public abstract class DisplayVisitor extends Visitor3D
This abstract visitor is used as base class
Author:
Ole Kniemeyer
  • Field Details

    • lastEntered

      protected Object lastEntered
    • lastEnteredIsNode

      protected boolean lastEnteredIsNode
  • Constructor Details

    • DisplayVisitor

      public DisplayVisitor()
  • Method Details

    • init

      public void init(GraphState gs, Matrix4d t, ViewConfig3D view, boolean checkLayer)
    • init

      public void init(GraphState gs, EdgePattern pattern, Matrix4d t, ViewConfig3D view, boolean checkLayer)
    • getCurrentShader

      public Shader getCurrentShader()
    • resolveShader

      protected Shader resolveShader(Shader shader)
    • isInVisibleLayer

      protected boolean isInVisibleLayer(Object o, boolean asNode)
    • isInVisibleScale

      protected boolean isInVisibleScale(Object o, boolean asNode)
    • visitEnterImpl

      protected void visitEnterImpl(Object object, boolean asNode, Path path)
      Description copied from class: Visitor3D
      This method has to be implemented by subclasses. It is invoked when object is entered.
      Specified by:
      visitEnterImpl in class Visitor3D
      Parameters:
      object - the object being entered
      asNode - is object a node or an edge?
      path - the path to object if object is a node, the path to the node where object points to if object is an edge
    • visitImpl

      protected abstract void visitImpl(Object object, boolean asNode, Shader s, Path path)
    • visitLeaveImpl

      protected void visitLeaveImpl(Object object, boolean asNode, Path path)
      Description copied from class: Visitor3D
      This method has to be implemented by subclasses. It is invoked when object is left.
      Specified by:
      visitLeaveImpl in class Visitor3D
      Parameters:
      object - the object being left
      asNode - is object a node or an edge?
      path - the path to object if object is a node, the path to the node where object points to if object is an edge