public abstract class Dragger3dBase extends DragToolBase
Dragger3d.DraggerType, Dragger3d.DragMode
CONSTRAIN, REPOSITION
TRANSPARENT, TWO_DIMENSIONAL
Modifier and Type | Method and Description |
---|---|
void |
addListener(Dragger3dListener l) |
void |
fireDraggerAddedListeners() |
void |
fireDraggerBeginListeners(AffineTransform3dBase X,
AffineTransform3dBase Xinc,
int modifiersEx) |
void |
fireDraggerEndListeners(AffineTransform3dBase X,
AffineTransform3dBase Xinc,
int modifiersEx) |
void |
fireDraggerMoveListeners(AffineTransform3dBase X,
AffineTransform3dBase Xinc,
int modifiersEx) |
void |
fireDraggerRemovedListeners() |
RigidTransform3d |
getDraggerToWorld() |
int |
getLineWidth()
Queries the line width of this dragger.
|
double |
getNetSize() |
int |
getRenderHints()
Returns a bit code giving rendering hints about this renderable.
|
double |
getSize() |
double |
getSizeScale() |
GLViewer |
getViewer()
Returns a reference to the viewer which is handling this dragger.
|
boolean |
isSelectable()
Returns true if this object is in fact selectable.
|
boolean |
isVisible() |
boolean |
mouseClicked(MouseRayEvent e) |
boolean |
mouseDragged(MouseRayEvent e) |
boolean |
mouseMoved(MouseRayEvent e) |
boolean |
mousePressed(MouseRayEvent e) |
boolean |
mouseReleased(MouseRayEvent e) |
int |
numSelectionQueriesNeeded()
If this selectable manages its own selection (by issuing selection
queries within its
render method), then this method should
return the maximum number of selection queries that will be
required. |
void |
prerender(RenderList list)
Called prior to rendering to allow this object to update the internal
state required for rendering (such as by caching rendering coordinates).
|
boolean |
removeListener(Dragger3dListener l) |
void |
scaleSize(double s) |
void |
setDraggerToWorld(RigidTransform3d X) |
void |
setLineWidth(int w)
Sets the line width of this dragger.
|
void |
setPosition(Vector3d pos) |
void |
setSize(double s) |
void |
setSizeScale(double s) |
void |
setViewer(GLViewer viewer)
Used by the viewer to set a reference to itself when the dragger is added.
|
void |
setVisible(boolean visible) |
void |
updateBounds(Vector3d pmin,
Vector3d pmax)
Update the minimum and maximum points for this object.
|
clearFlags, getDragMode, getFlags, isDragging, setDragMode, setFlags
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSelection
render
public void addListener(Dragger3dListener l)
public boolean removeListener(Dragger3dListener l)
public void fireDraggerAddedListeners()
public void fireDraggerBeginListeners(AffineTransform3dBase X, AffineTransform3dBase Xinc, int modifiersEx)
public void fireDraggerMoveListeners(AffineTransform3dBase X, AffineTransform3dBase Xinc, int modifiersEx)
public void fireDraggerEndListeners(AffineTransform3dBase X, AffineTransform3dBase Xinc, int modifiersEx)
public void fireDraggerRemovedListeners()
public boolean isVisible()
public void setVisible(boolean visible)
public void setSize(double s)
public double getSize()
public void scaleSize(double s)
public double getSizeScale()
public void setSizeScale(double s)
public double getNetSize()
public boolean mouseClicked(MouseRayEvent e)
public boolean mousePressed(MouseRayEvent e)
public boolean mouseReleased(MouseRayEvent e)
public boolean mouseDragged(MouseRayEvent e)
public boolean mouseMoved(MouseRayEvent e)
public RigidTransform3d getDraggerToWorld()
public void setDraggerToWorld(RigidTransform3d X)
public void setPosition(Vector3d pos)
public void setLineWidth(int w)
w
- new line widthpublic int getLineWidth()
public void updateBounds(Vector3d pmin, Vector3d pmax)
IsRenderable
pmin
- minimum pointpmax
- maximum pointpublic boolean isSelectable()
public int numSelectionQueriesNeeded()
IsSelectable
render
method), then this method should
return the maximum number of selection queries that will be
required. Otherwise, this method should return -1.public void prerender(RenderList list)
IsRenderable
list.addIfVisible (obj);
for each of the objects in question.list
- list of objects to be renderedpublic int getRenderHints()
IsRenderable
TRANSPARENT
and
TWO_DIMENSIONAL
.public void setViewer(GLViewer viewer)
public GLViewer getViewer()