public class ConstrainedTranslator3d extends Dragger3dBase
This class is defined in maspack.geometry instead of maspack.render so that the latter will not depend on the former.
Dragger3d.DraggerType, Dragger3d.DragMode
CONSTRAIN, REPOSITION
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
ConstrainedTranslator3d() |
Modifier and Type | Method and Description |
---|---|
PolygonalMesh |
getMesh() |
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 . |
void |
setLocation(Point3d location) |
void |
setMesh(PolygonalMesh mesh) |
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 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 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 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
public PolygonalMesh getMesh()
public void setMesh(PolygonalMesh mesh)
public void setLocation(Point3d location)