de.grogra.gpuflux.scene
public class FluxSceneVisitor extends DisplayVisitor
lastEntered, lastEnteredIsNodelayer, state, transformation| Constructor and Description |
|---|
FluxSceneVisitor() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Vector<FluxChannelMap> |
getChannels() |
GridClonerNode |
getCloner() |
int |
getGroupCount() |
java.util.Vector<FluxPrimitive> |
getInfPrimitives() |
FluxLightBuilder |
getLightBuilder() |
java.util.Vector<LightNode> |
getLights() |
java.lang.String |
getLog() |
LongToIntHashMap |
getNodeToGroup() |
java.util.Vector<FluxPrimitive> |
getPrimitives() |
java.util.Vector<FluxSensor> |
getSensors() |
java.util.Vector<FluxShader> |
getShaders() |
protected boolean |
isInVisibleLayer(java.lang.Object o,
boolean asNode) |
protected Shader |
resolveShader(Shader shader) |
protected void |
visitEnterImpl(java.lang.Object object,
boolean asNode,
Path path)
This method has to be implemented by subclasses.
|
protected void |
visitImpl(java.lang.Object object,
boolean asNode,
Shader s,
Path path) |
java.lang.Object |
visitInstanceEnter()
Informs this visitor about the beginning of an instantiation.
|
boolean |
visitInstanceLeave(java.lang.Object o)
Informs this visitor that an instantiation has been processed
completely.
|
protected void |
visitLeaveImpl(java.lang.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) |
getCurrentShader, init, isInVisibleScalegetCurrentTransformation, getGraphState, init, visitEnter, visitEnter, visitLeavepublic java.util.Vector<FluxChannelMap> getChannels()
public GridClonerNode getCloner()
public int getGroupCount()
public java.util.Vector<FluxPrimitive> getInfPrimitives()
public FluxLightBuilder getLightBuilder()
public java.util.Vector<LightNode> getLights()
public java.lang.String getLog()
public LongToIntHashMap getNodeToGroup()
public java.util.Vector<FluxPrimitive> getPrimitives()
public java.util.Vector<FluxSensor> getSensors()
public java.util.Vector<FluxShader> getShaders()
protected boolean isInVisibleLayer(java.lang.Object o,
boolean asNode)
isInVisibleLayer in class DisplayVisitorprotected Shader resolveShader(Shader shader)
resolveShader in class DisplayVisitorprotected void visitEnterImpl(java.lang.Object object,
boolean asNode,
Path path)
Visitor3Dobject is entered.visitEnterImpl in class DisplayVisitorobject - the object being enteredasNode - 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 edgeprotected void visitImpl(java.lang.Object object,
boolean asNode,
Shader s,
Path path)
visitImpl in class DisplayVisitorpublic java.lang.Object visitInstanceEnter()
VisitorvisitEnter/visitLeave of a node. Later on,
Visitor.visitInstanceLeave(Object) will be invoked with
the returned value of this invocation as argument. If this method returns
Visitor.STOP, the visitInstanceLeave-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.visitInstanceEnter in interface VisitorvisitInstanceEnter in class Visitor3DvisitInstanceLeave, may be Visitor.STOPpublic boolean visitInstanceLeave(java.lang.Object o)
Visitoro is the return value
of the corresponding invocation of Visitor.visitInstanceEnter().
If this invocation returns false, no further
instantiations or edges of the current level of hierarchy will
be passed to this
visitor, i.e., the visitLeave method for the enclosing
node will be invoked immediately.visitInstanceLeave in interface VisitorvisitInstanceLeave in class Visitor3Do - returned value of visitInstanceEntertrue iff processing of current level shall be continuedprotected void visitLeaveImpl(java.lang.Object object,
boolean asNode,
Path path)
Visitor3Dobject is left.visitLeaveImpl in class DisplayVisitorobject - the object being leftasNode - 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 edgepublic void visitScene(Graph graph, ViewConfig3D view, ObjectFilter measureFilter, boolean enableSensors, boolean sampleExplicit, boolean radiation, ProgressMonitor monitor, float flatness, boolean[] visibleLayers)