public class Scaler3d extends Dragger3dBase
Dragger3d.DraggerType, Dragger3d.DragMode
CONSTRAIN, REPOSITION
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
Scaler3d() |
Scaler3d(Viewer viewer,
double size) |
Modifier and Type | Method and Description |
---|---|
void |
getSelection(java.util.LinkedList<java.lang.Object> list,
int qid)
Append to
list the component (or components) associated with
the qid -th selection query issued by this component's render
method. |
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 . |
addListener, fireDraggerAddedListeners, fireDraggerBeginListeners, fireDraggerEndListeners, fireDraggerMoveListeners, fireDraggerRemovedListeners, getDraggerToWorld, getLineWidth, getNetSize, getRenderHints, getSize, getSizeScale, getViewer, isSelectable, isVisible, mouseClicked, numSelectionQueriesNeeded, prerender, removeListener, scaleSize, setDraggerToWorld, setLineWidth, setPosition, setSize, setSizeScale, setViewer, setVisible, updateBounds
clearFlags, getDragMode, getFlags, isDragging, setDragMode, setFlags
public Scaler3d()
public Scaler3d(Viewer viewer, double size)
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
.public void getSelection(java.util.LinkedList<java.lang.Object> list, int qid)
IsSelectable
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 boolean mousePressed(MouseRayEvent e)
mousePressed
in interface Dragger3d
mousePressed
in class Dragger3dBase
public boolean mouseReleased(MouseRayEvent e)
mouseReleased
in interface Dragger3d
mouseReleased
in class Dragger3dBase
public boolean mouseDragged(MouseRayEvent e)
mouseDragged
in interface Dragger3d
mouseDragged
in class Dragger3dBase
public boolean mouseMoved(MouseRayEvent e)
mouseMoved
in interface Dragger3d
mouseMoved
in class Dragger3dBase