java.lang.Object
de.grogra.imp3d.Visitor3D
de.grogra.imp3d.DisplayVisitor
de.grogra.gpuflux.scene.FluxSceneVisitor
- All Implemented Interfaces:
Visitor
-
Field Summary
Fields inherited from class de.grogra.imp3d.DisplayVisitor
lastEntered, lastEnteredIsNode
Fields inherited from class de.grogra.imp3d.Visitor3D
layer, resolution, state, transformation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getLog()
protected boolean
isInVisibleLayer
(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 void
Informs this visitor about the beginning of an instantiation.boolean
Informs this visitor that an instantiation has been processed completely.protected void
visitLeaveImpl
(Object object, boolean asNode, Path path) This method has to be implemented by subclasses.void
visitScene
(Graph graph, ViewConfig3D view, ObjectFilter measureFilter, boolean enableSensors, boolean sampleExplicit, boolean radiation, ProgressMonitor monitor, float flatness, boolean[] visibleLayers) Methods inherited from class de.grogra.imp3d.DisplayVisitor
getCurrentShader, init, init, isInVisibleScale
Methods inherited from class de.grogra.imp3d.Visitor3D
getCurrentTransformation, getGraphState, init, setResolution, visitEnter, visitEnter, visitLeave
-
Constructor Details
-
FluxSceneVisitor
public FluxSceneVisitor()
-
-
Method Details
-
getPrimitives
-
getSensors
-
getLights
-
getInfPrimitives
-
getNodeToGroup
-
getCloner
-
resolveShader
- Overrides:
resolveShader
in classDisplayVisitor
-
isInVisibleLayer
- Overrides:
isInVisibleLayer
in classDisplayVisitor
-
visitScene
public void visitScene(Graph graph, ViewConfig3D view, ObjectFilter measureFilter, boolean enableSensors, boolean sampleExplicit, boolean radiation, ProgressMonitor monitor, float flatness, boolean[] visibleLayers) -
visitImpl
- Specified by:
visitImpl
in classDisplayVisitor
-
visitEnterImpl
Description copied from class:Visitor3D
This method has to be implemented by subclasses. It is invoked whenobject
is entered.- Overrides:
visitEnterImpl
in classDisplayVisitor
- 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
-
visitInstanceEnter
Description copied from interface:Visitor
Informs this visitor about the beginning of an instantiation. This method invokation is nested immediately withinvisitEnter
/visitLeave
of a node. Later on,Visitor.visitInstanceLeave(Object)
will be invoked with the returned value of this invocation as argument. If this method returnsVisitor.STOP
, thevisitInstanceLeave
-method will be invoked immediately after this method, i.e., the visitor does not dive into the instantiation. Otherwise, the instantiation is performed, starting with an edge.- Specified by:
visitInstanceEnter
in interfaceVisitor
- Overrides:
visitInstanceEnter
in classVisitor3D
- Returns:
- value to pass to
visitInstanceLeave
, may beVisitor.STOP
-
visitInstanceLeave
Description copied from interface:Visitor
Informs this visitor that an instantiation has been processed completely. The valueo
is the return value of the corresponding invocation ofVisitor.visitInstanceEnter()
. If this invocation returnsfalse
, no further instantiations or edges of the current level of hierarchy will be passed to this visitor, i.e., thevisitLeave
method for the enclosing node will be invoked immediately.- Specified by:
visitInstanceLeave
in interfaceVisitor
- Overrides:
visitInstanceLeave
in classVisitor3D
- Parameters:
o
- returned value ofvisitInstanceEnter
- Returns:
true
iff processing of current level shall be continued
-
visitLeaveImpl
Description copied from class:Visitor3D
This method has to be implemented by subclasses. It is invoked whenobject
is left.- Overrides:
visitLeaveImpl
in classDisplayVisitor
- 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
-
getGroupCount
public int getGroupCount() -
getChannels
-
getShaders
-
getLog
-
getLightBuilder
-