java.lang.Object
de.grogra.imp3d.Visitor3D
de.grogra.imp3d.DisplayVisitor
- All Implemented Interfaces:
Visitor
- Direct Known Subclasses:
FluxLightVisitor,FluxSceneVisitor,GLDisplay.GLVisitor,MergeShapeVisitor,SceneVisitor
This abstract visitor is used as base class
- Author:
- Ole Kniemeyer
-
Field Summary
FieldsFields inherited from class de.grogra.imp3d.Visitor3D
layer, resolution, state, transformation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(GraphState gs, EdgePattern pattern, Matrix4d t, ViewConfig3D view, boolean checkLayer) voidinit(GraphState gs, Matrix4d t, ViewConfig3D view, boolean checkLayer) protected booleanisInVisibleLayer(Object o, boolean asNode) protected booleanisInVisibleScale(Object o, boolean asNode) protected ShaderresolveShader(Shader shader) protected voidvisitEnterImpl(Object object, boolean asNode, Path path) This method has to be implemented by subclasses.protected abstract voidprotected voidvisitLeaveImpl(Object object, boolean asNode, Path path) This method has to be implemented by subclasses.Methods inherited from class de.grogra.imp3d.Visitor3D
getCurrentTransformation, getGraphState, init, setResolution, visitEnter, visitEnter, visitInstanceEnter, visitInstanceLeave, visitLeave
-
Field Details
-
lastEntered
-
lastEnteredIsNode
protected boolean lastEnteredIsNode
-
-
Constructor Details
-
DisplayVisitor
public DisplayVisitor()
-
-
Method Details
-
init
-
init
public void init(GraphState gs, EdgePattern pattern, Matrix4d t, ViewConfig3D view, boolean checkLayer) -
getCurrentShader
-
resolveShader
-
isInVisibleLayer
-
isInVisibleScale
-
visitEnterImpl
Description copied from class:Visitor3DThis method has to be implemented by subclasses. It is invoked whenobjectis entered.- Specified by:
visitEnterImplin classVisitor3D- Parameters:
object- the object being enteredasNode- isobjecta node or an edge?path- the path toobjectifobjectis a node, the path to the node whereobjectpoints to ifobjectis an edge
-
visitImpl
-
visitLeaveImpl
Description copied from class:Visitor3DThis method has to be implemented by subclasses. It is invoked whenobjectis left.- Specified by:
visitLeaveImplin classVisitor3D- Parameters:
object- the object being leftasNode- isobjecta node or an edge?path- the path toobjectifobjectis a node, the path to the node whereobjectpoints to ifobjectis an edge
-