public class SplineTool extends DrawToolBase
DrawToolBase.FrameBinding
Dragger3d.DraggerType, Dragger3d.DragMode
CONSTRAIN, REPOSITION
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
SplineTool() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the drawn contents of this tool.
|
NURBSCurve2d |
getCurve() |
int |
getMaxDegree() |
boolean |
mouseClicked(MouseRayEvent e) |
boolean |
mouseDragged(MouseRayEvent e) |
boolean |
mouseMoved(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 . |
void |
setCurve(NURBSCurve2d curve) |
void |
setMaxDegree(int maxd) |
void |
setViewer(GLViewer viewer)
Used by the viewer to set a reference to itself when the drawTool is added.
|
addListener, fireDrawToolAddedListeners, fireDrawToolBeginListeners, fireDrawToolEndListeners, fireDrawToolRemovedListeners, getFrame, getFrameBinding, getFrameOffset, getRenderHints, getSelection, getToolToWorld, getViewer, isSelectable, isVisible, numSelectionQueriesNeeded, prerender, removeListener, setFrame, setFrameBinding, setFrameOffset, setVisible, updateBounds
clearFlags, getDragMode, getFlags, isDragging, setDragMode, setFlags
public int getMaxDegree()
public void setMaxDegree(int maxd)
public NURBSCurve2d getCurve()
public void clear()
DrawToolBase
clear
in class DrawToolBase
public void setCurve(NURBSCurve2d curve)
public void setViewer(GLViewer viewer)
DrawToolBase
setViewer
in class DrawToolBase
public boolean mouseClicked(MouseRayEvent e)
mouseClicked
in interface Dragger3d
mouseClicked
in class DrawToolBase
public boolean mousePressed(MouseRayEvent e)
mousePressed
in interface Dragger3d
mousePressed
in class DrawToolBase
public boolean mouseMoved(MouseRayEvent e)
mouseMoved
in interface Dragger3d
mouseMoved
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
.