public class PointTool extends DrawToolBase
DrawToolBase.FrameBindingDragger3d.DraggerType, Dragger3d.DragModeCONSTRAIN, REPOSITIONTRANSPARENT, TWO_DIMENSIONAL| Constructor and Description |
|---|
PointTool() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the drawn contents of this tool.
|
int |
getClickCount() |
Point2d |
getPoint(int idx) |
boolean |
mouseClicked(MouseRayEvent e) |
int |
numPoints() |
void |
render(Renderer renderer,
int flags)
Render this object using the functionality of the supplied
Renderer. |
void |
setClickCount(int cnt) |
addListener, fireDrawToolAddedListeners, fireDrawToolBeginListeners, fireDrawToolEndListeners, fireDrawToolRemovedListeners, getFrame, getFrameBinding, getFrameOffset, getRenderHints, getSelection, getToolToWorld, getViewer, isSelectable, isVisible, mouseDragged, mouseMoved, mousePressed, mouseReleased, numSelectionQueriesNeeded, prerender, removeListener, setFrame, setFrameBinding, setFrameOffset, setViewer, setVisible, updateBoundsclearFlags, getDragMode, getFlags, isDragging, setDragMode, setFlagspublic int numPoints()
public Point2d getPoint(int idx)
public int getClickCount()
public void setClickCount(int cnt)
public void clear()
DrawToolBaseclear in class DrawToolBasepublic boolean mouseClicked(MouseRayEvent e)
mouseClicked in interface Dragger3dmouseClicked in class DrawToolBasepublic void render(Renderer renderer, int flags)
IsRenderableRenderer.renderer - provides the functionality used to perform the rendering.flags - flags that may be used to control different
aspects of the rendering. Flags are defined in Renderer
and currently include
Renderer.HIGHLIGHT and
Renderer.SORT_FACES.