artisynth.core.gui.editorManager
Class RigidBodyConnectorAgent

java.lang.Object
  extended by artisynth.core.gui.editorManager.EditingAgent
      extended by artisynth.core.gui.editorManager.FrameBasedEditingAgent
          extended by artisynth.core.gui.editorManager.AddComponentAgent<RigidBodyConnector>
              extended by 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.


Constructor Summary
RigidBodyConnectorAgent(Main main, MechModel model)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void handleLocationEvent(GLViewer viewer, MouseRayEvent rayEvent)
          Called after a left mouse press in one of the viewers when a location listener is installed.
 void selectionChanged(SelectionEvent e)
           
 void setBodies(RigidBody bodyA, RigidBody bodyB)
           
 
Methods inherited from class artisynth.core.gui.editorManager.AddComponentAgent
addBasicProps, addComponentType, addComponentType, componentChanged, dispose, setComponentType, show, valueChange
 
Methods inherited from class artisynth.core.gui.editorManager.FrameBasedEditingAgent
addWidget, isVisible
 
Methods inherited from class artisynth.core.gui.editorManager.EditingAgent
getCenter, intersectClipPlane, intersectViewPlane
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RigidBodyConnectorAgent

public RigidBodyConnectorAgent(Main main,
                               MechModel model)
Method Detail

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>