public abstract class DrawToolBase extends DragToolBase
| Modifier and Type | Class and Description | 
|---|---|
| static class  | DrawToolBase.FrameBinding | 
Dragger3d.DraggerType, Dragger3d.DragModeCONSTRAIN, REPOSITIONTRANSPARENT, TWO_DIMENSIONAL| Modifier and Type | Method and Description | 
|---|---|
| void | addListener(DrawToolListener l) | 
| abstract void | clear()Clears the drawn contents of this tool. | 
| void | fireDrawToolAddedListeners() | 
| void | fireDrawToolBeginListeners(int modifiersEx) | 
| void | fireDrawToolEndListeners(int modifiersEx) | 
| void | fireDrawToolRemovedListeners() | 
| RigidTransform3d | getFrame() | 
| DrawToolBase.FrameBinding | getFrameBinding() | 
| double | getFrameOffset() | 
| int | getRenderHints()Returns a bit code giving rendering hints about this renderable. | 
| void | getSelection(java.util.LinkedList<java.lang.Object> list,
            int qid)Append to  listthe component (or components) associated with
 theqid-th selection query issued by this component's render
 method. | 
| void | getToolToWorld(RigidTransform3d X) | 
| GLViewer | getViewer()Returns a reference to the viewer which is handling this drawTool. | 
| boolean | isSelectable()Returns true if this object is in fact selectable. | 
| boolean | isVisible() | 
| boolean | mouseClicked(MouseRayEvent e) | 
| boolean | mouseDragged(MouseRayEvent e) | 
| boolean | mouseMoved(MouseRayEvent e) | 
| boolean | mousePressed(MouseRayEvent e) | 
| boolean | mouseReleased(MouseRayEvent e) | 
| int | numSelectionQueriesNeeded()If this selectable manages its own selection (by issuing selection
 queries within its  rendermethod), then this method should
 return the maximum number of selection queries that will be
 required. | 
| void | prerender(RenderList list)Called prior to rendering to allow this object to update the internal
 state required for rendering (such as by caching rendering coordinates). | 
| boolean | removeListener(DrawToolListener l) | 
| void | setFrame(RigidTransform3d X) | 
| void | setFrameBinding(DrawToolBase.FrameBinding binding) | 
| void | setFrameOffset(double offset) | 
| void | setViewer(GLViewer viewer)Used by the viewer to set a reference to itself when the drawTool is added. | 
| void | setVisible(boolean visible) | 
| void | updateBounds(Vector3d pmin,
            Vector3d pmax)Update the minimum and maximum points for this object. | 
clearFlags, getDragMode, getFlags, isDragging, setDragMode, setFlagsequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrenderpublic void setFrameBinding(DrawToolBase.FrameBinding binding)
public DrawToolBase.FrameBinding getFrameBinding()
public void setFrameOffset(double offset)
public double getFrameOffset()
public abstract void clear()
public void setFrame(RigidTransform3d X)
public RigidTransform3d getFrame()
public void getToolToWorld(RigidTransform3d X)
public void addListener(DrawToolListener l)
public boolean removeListener(DrawToolListener l)
public void fireDrawToolAddedListeners()
public void fireDrawToolBeginListeners(int modifiersEx)
public void fireDrawToolEndListeners(int modifiersEx)
public void fireDrawToolRemovedListeners()
public boolean isVisible()
public void setVisible(boolean visible)
public boolean mouseClicked(MouseRayEvent e)
public boolean mousePressed(MouseRayEvent e)
public boolean mouseReleased(MouseRayEvent e)
public boolean mouseDragged(MouseRayEvent e)
public boolean mouseMoved(MouseRayEvent e)
public void setViewer(GLViewer viewer)
public GLViewer getViewer()
public void updateBounds(Vector3d pmin, Vector3d pmax)
IsRenderablepmin - minimum pointpmax - maximum pointpublic boolean isSelectable()
public int numSelectionQueriesNeeded()
render method), then this method should
 return the maximum number of selection queries that will be
 required. Otherwise, this method should return -1.public void getSelection(java.util.LinkedList<java.lang.Object> list,
                         int qid)
list the component (or components) associated with
 the qid-th selection query issued by this component's render
 method. This will only be called if this component manages its own
 selection (i.e., the number nums returned by IsSelectable.numSelectionQueriesNeeded() is positive), and qid will in
 turn be a number between 0 and nums-1.list - selected objects are appended to the end of this listqid - index of the selection querypublic void prerender(RenderList list)
list.addIfVisible (obj);
for each of the objects in question.list - list of objects to be renderedpublic int getRenderHints()
TRANSPARENT and
 TWO_DIMENSIONAL.