java.lang.Object
de.grogra.imp3d.Visitor3D
de.grogra.imp3d.DisplayVisitor
de.grogra.glsl.GLDisplay.GLVisitor
de.grogra.glsl.GLSLUpdateCache
- All Implemented Interfaces:
Visitor
GLSLUpdateCache is an Implementation of
GLDisplay.GLVisitor
.
This visitor is used to traverse a Scene Graph. For each node
it visits a reference is saved effectively transforming the graph
into multiple arrays of graph-nodes. The nodes are sorted
by their type into transparent material, solid material, tools labels
and lightsources.- Author:
- Konni Hartmann
-
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
Methods inherited from class de.grogra.glsl.GLDisplay.GLVisitor
init
Methods inherited from class de.grogra.imp3d.DisplayVisitor
getCurrentShader, init, init, isInVisibleLayer, isInVisibleScale, resolveShader, visitEnterImpl, visitLeaveImpl
Methods inherited from class de.grogra.imp3d.Visitor3D
getCurrentTransformation, getGraphState, init, setResolution, visitEnter, visitEnter, visitInstanceEnter, visitInstanceLeave, visitLeave
-
Constructor Details
-
GLSLUpdateCache
Constructor for GLSLUpdateCache. This is used to store a reference to theGLSLDisplay
using this visitor. A reference is needed to gain access to the OpenGLState and the current Rendergraph-State- Parameters:
disp
- The Display using this Visitor
-
-
Method Details
-
init
Initializes the visitor for visiting a graph. This stores the inverse of the current WorldToView matrix.- Parameters:
gs
-t
-minPathLength
-- See Also:
-
setCurrentTransformation
- Parameters:
t
-
-
getRend
public int getRend()- Returns:
- The number of renderable nodes found while traversing the graph
-
getAll
public int getAll()- Returns:
- The number of all nodes visited during graph traversal.
-
visitImpl
- Overrides:
visitImpl
in classGLDisplay.GLVisitor
-