artisynth.core.gui.editorManager
Class RigidBodyConnectorAgent
java.lang.Object
artisynth.core.gui.editorManager.EditingAgent
artisynth.core.gui.editorManager.FrameBasedEditingAgent
artisynth.core.gui.editorManager.AddComponentAgent<RigidBodyConnector>
artisynth.core.gui.editorManager.RigidBodyConnectorAgent
- All Implemented Interfaces:
- SelectionListener, ComponentChangeListener, java.awt.event.ActionListener, java.util.EventListener, Disposable, ValueChangeListener
public class RigidBodyConnectorAgent
- extends AddComponentAgent<RigidBodyConnector>
Responsible for adding RigidBodyConnectors to a MechModel.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RigidBodyConnectorAgent
public RigidBodyConnectorAgent(Main main,
MechModel model)
setBodies
public void setBodies(RigidBody bodyA,
RigidBody bodyB)
selectionChanged
public void selectionChanged(SelectionEvent e)
- Specified by:
selectionChanged
in interface SelectionListener
- Overrides:
selectionChanged
in class AddComponentAgent<RigidBodyConnector>
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Overrides:
actionPerformed
in class AddComponentAgent<RigidBodyConnector>
handleLocationEvent
public void handleLocationEvent(GLViewer viewer,
MouseRayEvent rayEvent)
- Description copied from class:
AddComponentAgent
- Called after a left mouse press in one of the viewers when a location
listener is installed.
- Overrides:
handleLocationEvent
in class AddComponentAgent<RigidBodyConnector>