java.lang.Object
de.grogra.imp3d.Visitor3D
uk.ac.soton.grophysics.PhysicsVisitor
- All Implemented Interfaces:
Visitor
Updates the GroIMP position of any objects moved by the physics engine
- Author:
- Paul Masters
-
Field Summary
Fields inherited from class de.grogra.imp3d.Visitor3D
layer, resolution, state, transformation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(GraphState gs, Matrix4d transform, PhysicsModel physicsModel) void
setDebug
(boolean debug) enable debug text outputprotected void
visitEnterImpl
(Object object, boolean asNode, Path path) Hierarchical tree walk calls this when it enters the nodeprotected void
visitLeaveImpl
(Object object, boolean asNode, Path path) Hierarchical tree walk calls this when it leaves the nodeMethods inherited from class de.grogra.imp3d.Visitor3D
getCurrentTransformation, getGraphState, init, setResolution, visitEnter, visitEnter, visitInstanceEnter, visitInstanceLeave, visitLeave
-
Constructor Details
-
PhysicsVisitor
public PhysicsVisitor()
-
-
Method Details
-
init
-
visitEnterImpl
Hierarchical tree walk calls this when it enters the node- Specified by:
visitEnterImpl
in classVisitor3D
- Parameters:
object
- the object being enteredasNode
- isobject
a node or an edge?path
- the path toobject
ifobject
is a node, the path to the node whereobject
points to ifobject
is an edge
-
visitLeaveImpl
Hierarchical tree walk calls this when it leaves the node- Specified by:
visitLeaveImpl
in classVisitor3D
- Parameters:
object
- the object being leftasNode
- isobject
a node or an edge?path
- the path toobject
ifobject
is a node, the path to the node whereobject
points to ifobject
is an edge
-
setDebug
public void setDebug(boolean debug) enable debug text output- Parameters:
debug
-
-