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
Fields inherited from class de.grogra.imp3d.Visitor3D
layer, resolution, state, transformation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(GraphState gs, EdgePattern pattern, Matrix4d t, ViewConfig3D view, boolean checkLayer) void
init
(GraphState gs, Matrix4d t, ViewConfig3D view, boolean checkLayer) protected boolean
isInVisibleLayer
(Object o, boolean asNode) protected boolean
isInVisibleScale
(Object o, boolean asNode) protected Shader
resolveShader
(Shader shader) protected void
visitEnterImpl
(Object object, boolean asNode, Path path) This method has to be implemented by subclasses.protected abstract void
protected void
visitLeaveImpl
(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:Visitor3D
This method has to be implemented by subclasses. It is invoked whenobject
is entered.- Specified by:
visitEnterImpl
in classVisitor3D
- Parameters:
object
- the object being enteredasNode
- isobject
a node or an edge?path
- the path toobject
ifobject
is a node, the path to the node whereobject
points to ifobject
is an edge
-
visitImpl
-
visitLeaveImpl
Description copied from class:Visitor3D
This method has to be implemented by subclasses. It is invoked whenobject
is left.- Specified by:
visitLeaveImpl
in classVisitor3D
- Parameters:
object
- the object being leftasNode
- isobject
a node or an edge?path
- the path toobject
ifobject
is a node, the path to the node whereobject
points to ifobject
is an edge
-