de.grogra.imp3d.glsl
public class GLSLUpdateCache extends GLDisplay.GLVisitor
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.lastEntered, lastEnteredIsNodelayer, state, transformation| Constructor and Description |
|---|
GLSLUpdateCache(GLSLDisplay disp)
Constructor for GLSLUpdateCache.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAll() |
int |
getRend() |
void |
init(GraphState gs,
Matrix4d t,
int minPathLength)
Initializes the visitor for visiting a graph.
|
void |
setCurrentTransformation(Matrix4d t) |
protected void |
visitImpl(java.lang.Object object,
boolean asNode,
Shader s,
Path path) |
initgetCurrentShader, init, isInVisibleLayer, isInVisibleScale, resolveShader, visitEnterImpl, visitLeaveImplgetCurrentTransformation, getGraphState, init, visitEnter, visitEnter, visitInstanceEnter, visitInstanceLeave, visitLeavepublic GLSLUpdateCache(GLSLDisplay disp)
GLSLDisplay using this visitor. A reference is needed
to gain access to the OpenGLState and the current Rendergraph-Statedisp - The Display using this Visitorpublic int getAll()
public int getRend()
public void init(GraphState gs, Matrix4d t, int minPathLength)
gs - t - minPathLength - DisplayVisitor.init(GraphState, Matrix4d, de.grogra.imp3d.ViewConfig3D, boolean)public void setCurrentTransformation(Matrix4d t)
t - protected void visitImpl(java.lang.Object object,
boolean asNode,
Shader s,
Path path)
visitImpl in class GLDisplay.GLVisitor