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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(GraphState gs, Matrix4d transform, PhysicsModel physicsModel) voidsetDebug(boolean debug) enable debug text outputprotected voidvisitEnterImpl(Object object, boolean asNode, Path path) Hierarchical tree walk calls this when it enters the nodeprotected voidvisitLeaveImpl(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:
visitEnterImplin classVisitor3D- Parameters:
object- the object being enteredasNode- isobjecta node or an edge?path- the path toobjectifobjectis a node, the path to the node whereobjectpoints to ifobjectis an edge
-
visitLeaveImpl
Hierarchical tree walk calls this when it leaves the node- Specified by:
visitLeaveImplin classVisitor3D- Parameters:
object- the object being leftasNode- isobjecta node or an edge?path- the path toobjectifobjectis a node, the path to the node whereobjectpoints to ifobjectis an edge
-
setDebug
public void setDebug(boolean debug) enable debug text output- Parameters:
debug-
-