de.grogra.imp3d
public abstract class DisplayVisitor extends Visitor3D
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
lastEntered |
protected boolean |
lastEnteredIsNode |
layer, state, transformation| Constructor and Description |
|---|
DisplayVisitor() |
| Modifier and Type | Method and Description |
|---|---|
Shader |
getCurrentShader() |
void |
init(GraphState gs,
Matrix4d t,
ViewConfig3D view,
boolean checkLayer) |
protected boolean |
isInVisibleLayer(java.lang.Object o,
boolean asNode) |
protected boolean |
isInVisibleScale(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 abstract void |
visitImpl(java.lang.Object object,
boolean asNode,
Shader s,
Path path) |
protected void |
visitLeaveImpl(java.lang.Object object,
boolean asNode,
Path path)
This method has to be implemented by subclasses.
|
getCurrentTransformation, getGraphState, init, visitEnter, visitEnter, visitInstanceEnter, visitInstanceLeave, visitLeaveprotected java.lang.Object lastEntered
protected boolean lastEnteredIsNode
public Shader getCurrentShader()
public void init(GraphState gs, Matrix4d t, ViewConfig3D view, boolean checkLayer)
protected boolean isInVisibleLayer(java.lang.Object o,
boolean asNode)
protected boolean isInVisibleScale(java.lang.Object o,
boolean asNode)
protected void visitEnterImpl(java.lang.Object object,
boolean asNode,
Path path)
Visitor3Dobject is entered.visitEnterImpl in class Visitor3Dobject - 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 abstract void visitImpl(java.lang.Object object,
boolean asNode,
Shader s,
Path path)
protected void visitLeaveImpl(java.lang.Object object,
boolean asNode,
Path path)
Visitor3Dobject is left.visitLeaveImpl in class Visitor3Dobject - 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 edge