public class FreehandTool extends DrawToolBase
DrawToolBase.FrameBinding
Dragger3d.DraggerType, Dragger3d.DragMode
CONSTRAIN, REPOSITION
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
FreehandTool() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the drawn contents of this tool.
|
boolean |
mouseDragged(MouseRayEvent e) |
boolean |
mousePressed(MouseRayEvent e) |
boolean |
mouseReleased(MouseRayEvent e) |
void |
render(Renderer renderer,
int flags)
Render this object using the functionality of the supplied
Renderer . |
addListener, fireDrawToolAddedListeners, fireDrawToolBeginListeners, fireDrawToolEndListeners, fireDrawToolRemovedListeners, getFrame, getFrameBinding, getFrameOffset, getRenderHints, getSelection, getToolToWorld, getViewer, isSelectable, isVisible, mouseClicked, mouseMoved, numSelectionQueriesNeeded, prerender, removeListener, setFrame, setFrameBinding, setFrameOffset, setViewer, setVisible, updateBounds
clearFlags, getDragMode, getFlags, isDragging, setDragMode, setFlags
public void clear()
DrawToolBase
clear
in class DrawToolBase
public boolean mousePressed(MouseRayEvent e)
mousePressed
in interface Dragger3d
mousePressed
in class DrawToolBase
public boolean mouseReleased(MouseRayEvent e)
mouseReleased
in interface Dragger3d
mouseReleased
in class DrawToolBase
public boolean mouseDragged(MouseRayEvent e)
mouseDragged
in interface Dragger3d
mouseDragged
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
.