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.DragModeCONSTRAIN, REPOSITIONTRANSPARENT, 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, updateBoundsclearFlags, getDragMode, getFlags, isDragging, setDragMode, setFlagspublic void getSelection(java.util.LinkedList<java.lang.Object> list,
int qid)
IsSelectablelist 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)
IsRenderableRenderer.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 Dragger3dmousePressed in class Dragger3dBasepublic boolean mouseReleased(MouseRayEvent e)
mouseReleased in interface Dragger3dmouseReleased in class Dragger3dBasepublic boolean mouseDragged(MouseRayEvent e)
mouseDragged in interface Dragger3dmouseDragged in class Dragger3dBasepublic boolean mouseMoved(MouseRayEvent e)
mouseMoved in interface Dragger3dmouseMoved in class Dragger3dBasepublic PolygonalMesh getMesh()
public void setMesh(PolygonalMesh mesh)
public void setLocation(Point3d location)