artisynth.core.workspace
Interface PullController.Pullable

All Known Implementing Classes:
BeamBody, DeformableBody, FemMesh, RigidBody, RigidCompositeBody, RigidMeshComponent, SkinMesh
Enclosing class:
PullController

public static interface PullController.Pullable

Interface for handling pull events


Method Summary
 void applyForce(java.lang.Object orig, Vector3d force)
          Given the supplied force origin info and a force vector, apply the force (typically sets an external force)
 java.lang.Object getOriginData(MouseRayEvent ray)
          Constructs force origin storage data given a mouse ray (e.g.
 Point3d getOriginPoint(java.lang.Object data)
          Determines the world-coordinate point to which force will be applied (used for determining magnitude of force)
 double getPointRenderRadius()
           
 boolean isPullable()
           
 

Method Detail

isPullable

boolean isPullable()

getOriginData

java.lang.Object getOriginData(MouseRayEvent ray)
Constructs force origin storage data given a mouse ray (e.g. intersect ray with mesh to determine for origin point) If null, assumes that there is no origin, so no force can be applied


getOriginPoint

Point3d getOriginPoint(java.lang.Object data)
Determines the world-coordinate point to which force will be applied (used for determining magnitude of force)


getPointRenderRadius

double getPointRenderRadius()

applyForce

void applyForce(java.lang.Object orig,
                Vector3d force)
Given the supplied force origin info and a force vector, apply the force (typically sets an external force)