public class Ilv3DViewControlUI extends Object
Constructor and Description |
---|
Ilv3DViewControlUI(Ilv3DView view)
Creates a new controlling UI.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Releases any resource held by this
Ilv3DControlUI , especially Swing resources |
int |
getActualFPS()
Returns the last information provided by the view, in the number of refreshes
per second.
|
JCheckBox |
getBilinearFilteringControlBox()
Returns the check box that controls bilinear filtering.
|
protected Action |
getEditSymbolStyleAction()
Returns the action that displays the symbol style control panel dialog.
|
protected Action |
getEditTerrainStyleAction()
Returns the action that displays the terrain style control panel dialog.
|
JSlider |
getExaggerationSlider()
Returns the slider that controls height exaggeration.
|
JLabel |
getFpsLabel()
Returns the label used to display FPS information.
|
JSlider |
getFrameRateSlider()
Returns the slider that controls target frame rate.
|
JPanel |
getNavigationPanel()
Returns a navigation panel for interactive Swing based control of rotation, displacement and zoom.
|
JPopupMenu |
getPopupMenu()
Returns the pop-up menu displayed on a right click on the view Note:
subclasses can return null to prevent this from appearing.
|
JSlider |
getPrecisionSlider()
Returns the slider that controls terrain precision.
|
protected Action |
getResetCameraAction()
Returns the action that resets the camera.
|
protected JDialog |
getSymbolStyleDialog()
Creates or returns the dialog that allows editing the symbol style
parameters.
|
JPanel |
getTerrainStyleControlPanel()
Returns the panel containing terrain style editing UI components.
|
protected JDialog |
getTerrainStyleControlPanelDialog()
Creates or returns the dialog that allows editing the terrain style
parameters.
|
JSlider |
getTextureOversamplingSlider()
Returns the slider that controls terrain texture oversampling.
|
JToolBar |
getToolBar()
Returns a toolbar used to control the view.
|
JCheckBox |
getUse2DViewAsTextureBox()
Returns the check box that controls the texture of the terrain.
|
Ilv3DView |
getView()
Returns the view managed by this customizing UI.
|
JCheckBox |
getWireFrameControlBox()
Returns the check box that controls wire frame display.
|
void |
registerFlyThrough(IlvMapLayer layer,
IlvFlyThroughAction action)
Registers or changes the fly through action to execute for the specific map
layer.
|
protected void |
showMenu(MouseEvent e)
Displays the pop-up menu
|
public Ilv3DViewControlUI(Ilv3DView view)
view
- The 3D view to control.public int getActualFPS()
public JCheckBox getBilinearFilteringControlBox()
Ilv3DView.setBilinearFiltering(boolean)
public JSlider getExaggerationSlider()
Ilv3DView.setHeightExaggeration(double)
public JLabel getFpsLabel()
public JSlider getFrameRateSlider()
Ilv3DView.setTargetFrameRate(int)
public JPopupMenu getPopupMenu()
public JSlider getPrecisionSlider()
Ilv3DView.setTerrainPrecisionFactor(float)
public JSlider getTextureOversamplingSlider()
Ilv3DModel.setTextureOversampling(int)
public JPanel getTerrainStyleControlPanel()
public JToolBar getToolBar()
public JCheckBox getUse2DViewAsTextureBox()
Ilv3DModel.setUse2DViewAsTexture(boolean)
public Ilv3DView getView()
public JCheckBox getWireFrameControlBox()
Ilv3DView.setWireFrameMode(boolean)
public void registerFlyThrough(IlvMapLayer layer, IlvFlyThroughAction action)
Ilv3DViewControlUI
class contains a
Hashtable
containing the current fly through actions
attached to each registered map layer.layer
- The terrain analysis layer containing the fly through polyline and
style.action
- The action to start or null to remove actions for that layer.protected Action getEditSymbolStyleAction()
protected Action getEditTerrainStyleAction()
protected Action getResetCameraAction()
Ilv3DView.resetCameraPosition()
protected JDialog getSymbolStyleDialog()
protected JDialog getTerrainStyleControlPanelDialog()
protected void showMenu(MouseEvent e)
e
- Event that triggered the menu.JPopupMenu.show(java.awt.Component, int, int)
public JPanel getNavigationPanel()
public void dispose()
Ilv3DControlUI
, especially Swing resources© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.