artisynth.core.gui.editorManager
Class EditingAgent

java.lang.Object
  extended by artisynth.core.gui.editorManager.EditingAgent
Direct Known Subclasses:
DuplicateAgent, FrameBasedEditingAgent

public abstract class EditingAgent
extends java.lang.Object

This is the base class for all EditWidgets. An EditWidget is responsible for editing components together. Usually there is a parent component which is being edited and child components are being added to it. Each Edit Widget is responsible for combing a particular pair or set of components when they are to be added.


Constructor Summary
EditingAgent(Main main)
           
 
Method Summary
 Point3d getCenter(GLRenderable r)
          Returns the center point of a renderable object.
 Point3d intersectClipPlane(Line ray, GLClipPlane clipPlane)
          Intersects a ray with a viewer clip plane and returns the corresponding point.
 Point3d intersectViewPlane(Line ray, Point3d ref, GLViewer viewer)
          Intersect a ray with a view plane defined by the current eye direction and a reference point.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditingAgent

public EditingAgent(Main main)
Method Detail

intersectViewPlane

public Point3d intersectViewPlane(Line ray,
                                  Point3d ref,
                                  GLViewer viewer)
Intersect a ray with a view plane defined by the current eye direction and a reference point.


intersectClipPlane

public Point3d intersectClipPlane(Line ray,
                                  GLClipPlane clipPlane)
Intersects a ray with a viewer clip plane and returns the corresponding point. If there is no intersection because the plane is perpendicular to the eye direction, then null is returned.


getCenter

public Point3d getCenter(GLRenderable r)
Returns the center point of a renderable object.