Module groPhysics

Class PhysicsVisitor

java.lang.Object
de.grogra.imp3d.Visitor3D
uk.ac.soton.grophysics.PhysicsVisitor
All Implemented Interfaces:
Visitor

public class PhysicsVisitor extends Visitor3D
Updates the GroIMP position of any objects moved by the physics engine
Author:
Paul Masters
  • Constructor Details

    • PhysicsVisitor

      public PhysicsVisitor()
  • Method Details

    • init

      public void init(GraphState gs, Matrix4d transform, PhysicsModel physicsModel)
    • visitEnterImpl

      protected void visitEnterImpl(Object object, boolean asNode, Path path)
      Hierarchical tree walk calls this when it enters the node
      Specified by:
      visitEnterImpl in class Visitor3D
      Parameters:
      object - the object being entered
      asNode - 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
    • visitLeaveImpl

      protected void visitLeaveImpl(Object object, boolean asNode, Path path)
      Hierarchical tree walk calls this when it leaves the node
      Specified by:
      visitLeaveImpl in class Visitor3D
      Parameters:
      object - the object being left
      asNode - 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
    • setDebug

      public void setDebug(boolean debug)
      enable debug text output
      Parameters:
      debug -