artisynth.core.gui.editorManager
Class Fem3dMarkerAgent

java.lang.Object
  extended by artisynth.core.gui.editorManager.EditingAgent
      extended by artisynth.core.gui.editorManager.FrameBasedEditingAgent
          extended by artisynth.core.gui.editorManager.AddComponentAgent<FemMarker>
              extended by artisynth.core.gui.editorManager.Fem3dMarkerAgent
All Implemented Interfaces:
SelectionListener, ComponentChangeListener, java.awt.event.ActionListener, java.util.EventListener, Disposable, ValueChangeListener

public class Fem3dMarkerAgent
extends AddComponentAgent<FemMarker>

Responsible for adding FemMarkers to a FemModel3d


Constructor Summary
Fem3dMarkerAgent(Main main, FemModel3d model)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void handleLocationEvent(GLViewer viewer, MouseRayEvent rayEvent)
          Trys to find an intersection point between the ray and the fem model.
 
Methods inherited from class artisynth.core.gui.editorManager.AddComponentAgent
addBasicProps, addComponentType, addComponentType, componentChanged, dispose, selectionChanged, 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

Fem3dMarkerAgent

public Fem3dMarkerAgent(Main main,
                        FemModel3d model)
Method Detail

handleLocationEvent

public void handleLocationEvent(GLViewer viewer,
                                MouseRayEvent rayEvent)
Trys to find an intersection point between the ray and the fem model. If a point is found, then a marker is inserted there.

Overrides:
handleLocationEvent in class AddComponentAgent<FemMarker>

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class AddComponentAgent<FemMarker>