public class FXMeshViewer extends FXViewer
JavaFX implementation of GeometryViewer.
Constructor and Description |
---|
FXMeshViewer(org.eclipse.swt.widgets.Composite parent)
Creates a JavaFX GeometryViewer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAxisVisible()
Checks whether the viewer has visible axis.
|
EdgeController |
getEdge(VertexController start,
VertexController end)
Gets the Edge part between two given vertices, creating a new edge and
adding it to the temporary root node if none exists.
|
void |
initializePreloaded()
Initialize the viewer and any pre-loaded objects from the attachment
manager.
|
boolean |
isHUDVisible()
Checks whether the viewer's HUD is visible.
|
void |
setAxisVisible(boolean visible)
Sets the editor's axis display's visibility.
|
void |
setEditSelectionHandeling(boolean edit)
Provide a handler defining the editor's behavior upon mouse use to the
viewer.
|
void |
setHUDVisible(boolean visible)
Sets the viewer's HUD, which displays the camera center and mouse cursor
positions, to be visible or invisible.
|
void |
setInternalSelection(java.lang.Object[] selection)
Set the parts of the mesh such that the given objects are the only
selected parts
|
getCameraController, getContentProvider, getControl, getDefaultCamera, getFxCanvas, getRoot, getScene, pitchCamera, raiseCamera, refresh, resetCamera, rollCamera, setContentProvider, setDefaultCameraXByY, setDefaultCameraYByZ, setDefaultCameraZByX, strafeCamera, thrustCamera, yawCamera
getCamera, getCanvas, getInput, getRenderer, getSelection, setCamera, setInput, setSelection
public FXMeshViewer(org.eclipse.swt.widgets.Composite parent)
Creates a JavaFX GeometryViewer.
parent
- public void initializePreloaded()
public void setEditSelectionHandeling(boolean edit)
handler
- The EventHandler which will process mouse input for this
viewer.public void setHUDVisible(boolean visible)
visible
- Whether or not the viewer should display the HUD.public boolean isHUDVisible()
public void setAxisVisible(boolean visible)
visible
- Whether or not the editor should display its axis.public boolean getAxisVisible()
public EdgeController getEdge(VertexController start, VertexController end)
start
- end
- public void setInternalSelection(java.lang.Object[] selection)
selection
- The new set of parts which will be selected