public class PointTool extends DrawToolBase
DrawToolBase.FrameBinding
Dragger3d.DraggerType, Dragger3d.DragMode
CONSTRAIN, REPOSITION
TRANSPARENT, 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, updateBounds
clearFlags, getDragMode, getFlags, isDragging, setDragMode, setFlags
public int numPoints()
public Point2d getPoint(int idx)
public int getClickCount()
public void setClickCount(int cnt)
public void clear()
DrawToolBase
clear
in class DrawToolBase
public boolean mouseClicked(MouseRayEvent e)
mouseClicked
in interface Dragger3d
mouseClicked
in class DrawToolBase
public void render(Renderer renderer, int flags)
IsRenderable
Renderer
.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
.