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, lastEnteredIsNodeFields inherited from class de.grogra.imp3d.Visitor3D
layer, resolution, state, transformation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetLog()protected booleanisInVisibleLayer(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 voidInforms this visitor about the beginning of an instantiation.booleanInforms this visitor that an instantiation has been processed completely.protected voidvisitLeaveImpl(Object object, boolean asNode, Path path) This method has to be implemented by subclasses.voidvisitScene(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, isInVisibleScaleMethods 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:
resolveShaderin classDisplayVisitor
-
isInVisibleLayer
- Overrides:
isInVisibleLayerin 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:
visitImplin classDisplayVisitor
-
visitEnterImpl
Description copied from class:Visitor3DThis method has to be implemented by subclasses. It is invoked whenobjectis entered.- Overrides:
visitEnterImplin classDisplayVisitor- 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
-
visitInstanceEnter
Description copied from interface:VisitorInforms this visitor about the beginning of an instantiation. This method invokation is nested immediately withinvisitEnter/visitLeaveof 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:
visitInstanceEnterin interfaceVisitor- Overrides:
visitInstanceEnterin classVisitor3D- Returns:
- value to pass to
visitInstanceLeave, may beVisitor.STOP
-
visitInstanceLeave
Description copied from interface:VisitorInforms this visitor that an instantiation has been processed completely. The valueois 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., thevisitLeavemethod for the enclosing node will be invoked immediately.- Specified by:
visitInstanceLeavein interfaceVisitor- Overrides:
visitInstanceLeavein classVisitor3D- Parameters:
o- returned value ofvisitInstanceEnter- Returns:
trueiff processing of current level shall be continued
-
visitLeaveImpl
Description copied from class:Visitor3DThis method has to be implemented by subclasses. It is invoked whenobjectis left.- Overrides:
visitLeaveImplin classDisplayVisitor- 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
-
getGroupCount
public int getGroupCount() -
getChannels
-
getShaders
-
getLog
-
getLightBuilder
-