public class FXMeshCanvas extends FXVizCanvas implements IMeshVizCanvas
GeometryCanvas provides the ability to visualize and manipulate 3D geometry data.
Constructor and Description |
---|
FXMeshCanvas(IController mesh)
Creates a canvas for the supplied geometry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AxisAreVisible()
Checks whether the axis are visible
|
void |
deleteSelection()
Delete all selected objects.
|
boolean |
HUDIsVisible()
Checks whether the HUD is currently visible.
|
void |
setEditMode(boolean edit)
Set the canvas's mode of user interaction between creating new objects
and editing those already present.
|
void |
setSelection(java.lang.Object[] selection)
Set the canvas's selection to be the set of objects in the input.
|
void |
setVisibleAxis(boolean on)
Set the canvas's display of the axis.
|
void |
setVisibleHUD(boolean on)
Set the canvas's display of relevant coordinates on or off.
|
addRoot, draw, getDataSource, getNumberOfAxes, getProperties, getRenderElementHolder, getSourceHost, getViewer, isSourceRemote, redraw, removeRoot, setProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
draw, getDataSource, getNumberOfAxes, getProperties, getRenderElementHolder, getSourceHost, isSourceRemote, redraw, setProperties
public FXMeshCanvas(IController mesh)
Creates a canvas for the supplied geometry.
geometry
- ICE Geometry instance to visualizer in the canvas.public void setEditMode(boolean edit)
IMeshVizCanvas
setEditMode
in interface IMeshVizCanvas
edit
- Whether the canvas should be set to edit mode. If false, the
canvas will register clicks as commands to create new vertices
and combine them into polygons. If true, the canvas will allow
the user to select pre-existing vertices/edges/polygons by
clicking on them.public void setVisibleHUD(boolean on)
IMeshVizCanvas
setVisibleHUD
in interface IMeshVizCanvas
on
- Whether or not to render the heads up display. If true, the
canvas will display the coordinates for the locations of the
mouse pointer and center of the camera's view. If false, it
will not display them.public void setVisibleAxis(boolean on)
IMeshVizCanvas
setVisibleAxis
in interface IMeshVizCanvas
on
- Whether or not the canvas will render the x, y, and z axis.public boolean HUDIsVisible()
IMeshVizCanvas
HUDIsVisible
in interface IMeshVizCanvas
public boolean AxisAreVisible()
IMeshVizCanvas
AxisAreVisible
in interface IMeshVizCanvas
public void deleteSelection()
IMeshVizCanvas
deleteSelection
in interface IMeshVizCanvas
public void setSelection(java.lang.Object[] selection)
IMeshVizCanvas
setSelection
in interface IMeshVizCanvas
selection
- The set of objects which should comprise the canvas's new
selection