public class MapProjectionDisplayJ3D extends MapProjectionDisplay
Any displayable data must be able to map to RealType.Latitude, RealType.Longitude and/or RealType.Altitude.
This Display also supports a RubberBandBox in Java 3D for panning and zooming.
NavigatedDisplay.enableRubberBanding(boolean)MapProjectionDisplay.MapProjection3DAdapterNavigatedDisplay.VerticalMapSetCURSOR_BEARING, CURSOR_BEARING_TYPE, CURSOR_RANGE, CURSOR_RANGE_TYPE, force2DBOTTOM_VIEW, BOTTOM_VIEW_NAME, CLIP_BACK_DEFAULT, CLIP_BACK_PERSPECTIVE, CLIP_FRONT_DEFAULT, CLIP_FRONT_PERSPECTIVE, CURSOR_ALTITUDE, CURSOR_LATITUDE, CURSOR_LONGITUDE, EAST_VIEW, EAST_VIEW_NAME, MODE_2D, MODE_2Din3D, MODE_3D, NORTH_VIEW, NORTH_VIEW_NAME, SOUTH_VIEW, SOUTH_VIEW_NAME, TOP_VIEW, TOP_VIEW_NAME, WEST_VIEW, WEST_VIEW_NAMEbehavior, defaultMouseFunctions, POINT_MODE| Constructor and Description |
|---|
MapProjectionDisplayJ3D()
Constructs the default instance.
|
MapProjectionDisplayJ3D(int mode)
Constructs an instance with a LatLonProjection with the specified
mode.
|
MapProjectionDisplayJ3D(visad.georef.MapProjection projection,
int mode)
Constructs an instance with the specified MapProjection
CoordinateSystem and mode.
|
MapProjectionDisplayJ3D(visad.georef.MapProjection projection,
int mode,
boolean offscreen,
java.awt.Dimension dimension)
ctor
|
MapProjectionDisplayJ3D(visad.georef.MapProjection projection,
int mode,
boolean offscreen,
java.awt.Dimension dimension,
java.awt.GraphicsDevice screen)
ctor
|
MapProjectionDisplayJ3D(ucar.unidata.geoloc.ProjectionImpl projection,
int mode)
Constructs an instance with the specified Projection and mode.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyboardBehavior(visad.KeyboardBehavior behavior)
Add a keyboard behavior to this display
|
void |
checkClipDistance() |
void |
enableClipping(boolean clip)
Enable clipping of data at the box edges.
|
boolean |
getStereoAvailable()
Determine if this MapDisplay can do stereo..
|
javax.media.j3d.View |
getView()
Get the View
|
protected void |
initializeClass()
Set up the display called by constructor
|
boolean |
isPerspectiveView()
Get the view to perspective or parallel..
|
void |
setClipDistanceBack(double value)
Set the ClipDistanceBack property.
|
void |
setClipDistanceFront(double value)
Set the ClipDistanceFront property.
|
void |
setEyePosition(double position)
Method for setting the eye position for a 3D stereo view.
|
void |
setPerspectiveView(boolean perspectiveView)
Set the view to perspective or parallel if this is a 3D display..
|
void |
setView(int view)
Set the view for 3D.
|
addVerticalMap, cursorMoved, destroy, getAltitudeMap, getCursorBearing, getCursorRange, getDisplayAltitudeType, getDisplayCoordinateSystem, getDisplayLatitudeType, getDisplayLongitudeType, getEarthLocation, getInstance, getInstance, getInstance, getInstance, getLatScaleInfo, getLonScaleInfo, getMapProjection, getSpatialCoordinates, getSpatialCoordinates, getVerticalRange, getVertScaleInfo, init, main, makeDefaultMapProjection, pointerMoved, removeVerticalMap, scaleVerticalValues, setCursorBearing, setCursorRange, setLatScaleInfo, setLonScaleInfo, setMapArea, setMapProjection, setMapProjection, setMapProjection, setMapRegion, setVerticalRange, setVerticalRangeUnit, setVertScaleInfo, updateLocationanimateMatrix, animateMatrix, animateMatrix, animateMatrix, applyRotation, center, center, center, center, centerAndZoom, centerAndZoom, enableRubberBanding, getAnimationStringOn, getAutoRotate, getBottomViewName, getBoxVisible, getCenterPoint, getClipDistanceBack, getClipDistanceFront, getCursorAltitude, getCursorLatitude, getCursorLongitude, getDisplayMode, getEarthLocation, getEarthLocation, getEarthLocation, getEastViewName, getIsAnimating, getLatLonBox, getLatLonBox, getLatLonRect, getNavigationToolBar, getNavigationToolBar, getNorthViewName, getRay, getRayDirection, getRayPositionAtZ, getRotation, getRubberBandBox, getScaledValue, getScalesVisible, getScreenCenter, getScreenCenterBottom, getScreenCenterLeft, getScreenCenterRight, getScreenCenterTop, getScreenCoordinates, getScreenCoordinates, getScreenLowerLeft, getScreenLowerRight, getScreenSidesCoordinates, getScreenUpperLeft, getScreenUpperRight, getSouthViewName, getSpatialCoordinates, getSpatialCoordinatesFromScreen, getSpatialCoordinatesFromScreen, getTopViewName, getVerticalRangeUnit, getVerticalRangeVisible, getVisadBox, getWestViewName, init, isClippingEnabled, moveToScreen, moveToScreen, moveToScreen, resetScaleTranslate, rotateFaster, rotateSlower, rotateView, rotateView, screenToEarthLocation, setAnimationStringOn, setAutoRotate, setBoxVisible, setCursorAltitude, setCursorLatitude, setCursorLongitude, setCursorStringOn, setForeground, setPolygonOffset, setPolygonOffsetFactor, setRotateDelay, setRotationMultiplierMatrix, setRubberBandBox, setScalesVisible, setVerticalMapUnit, setVerticalRangeVisible, setViewaddDisplayable, addDisplayListener, addPropertyChangeListener, addPropertyChangeListener, addScalarMap, addScalarMaps, addVetoableChangeListener, addVetoableChangeListener, buildAnimationSet, dataChange, draw, ensureInactive, equals, finalize, firePropertyChange, firePropertyChange, getAnimationSetFromDisplayables, getAnimationStringVisible, getBackground, getComponent, getDestroyed, getDisplay, getDisplayableCount, getDisplayables, getDisplayables, getDisplayAspect, getDisplayComponent, getDisplayScale, getForeground, getImage, getMouseBehavior, getMouseFunctionMap, getOffscreenDimension, getProjectionMatrix, getSavedProjectionMatrix, getScale, getScreenBounds, getWaitMessageVisible, handleMouseWheelMoved, hashCode, indexOf, init, is3D, isActive, isPointMode, printMatrix, printMe, rebuild, rebuildDisplay, reDisplayAll, removeDisplayable, removeDisplayables, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, removeScalarMaps, removeVetoableChangeListener, removeVetoableChangeListener, replaceScalarMap, reScale, resetMouseFunctions, resetProjection, rotate, rotateX, rotateY, rotateZ, saveCurrentDisplay, saveCurrentDisplay, saveCurrentDisplay, saveProjection, setActive, setAnimation, setAnimationStringVisible, setBackground, setDefaultMouseFunctions, setDisplayables, setDisplayables, setDisplayActive, setDisplayAspect, setDisplayInactive, setKeyboardBehavior, setKeyboardEventMap, setKeyboardEventMap, setMouseFunctions, setOffscreenDimension, setPointMode, setProjectionMatrix, setRebuildNecessary, setWaitMessageVisible, setWheelEventMap, translate, zoom, zoompublic MapProjectionDisplayJ3D()
throws visad.VisADException,
java.rmi.RemoteException
visad.VisADException - Couldn't create necessary VisAD objectjava.rmi.RemoteException - Couldn't create a remote objectpublic MapProjectionDisplayJ3D(int mode)
throws visad.VisADException,
java.rmi.RemoteException
mode - mode for display (MODE_3D, MODE_2Din3D)visad.VisADException - Couldn't create necessary VisAD objectjava.rmi.RemoteException - Couldn't create a remote objectpublic MapProjectionDisplayJ3D(ucar.unidata.geoloc.ProjectionImpl projection,
int mode)
throws visad.VisADException,
java.rmi.RemoteException
mode - mode for display (MODE_3D, MODE_2Din3D)projection - map projectionvisad.VisADException - Couldn't create necessary VisAD objectjava.rmi.RemoteException - Couldn't create a remote objectpublic MapProjectionDisplayJ3D(visad.georef.MapProjection projection,
int mode)
throws visad.VisADException,
java.rmi.RemoteException
mode - mode for display (MODE_3D, MODE_2Din3D)projection - map projection CSvisad.VisADException - Couldn't create necessary VisAD objectjava.rmi.RemoteException - Couldn't create a remote objectpublic MapProjectionDisplayJ3D(visad.georef.MapProjection projection,
int mode,
boolean offscreen,
java.awt.Dimension dimension)
throws visad.VisADException,
java.rmi.RemoteException
projection - The projection to usemode - 3D/2D modeoffscreen - Are we in offscreen modedimension - Size of offscreen imagejava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic MapProjectionDisplayJ3D(visad.georef.MapProjection projection,
int mode,
boolean offscreen,
java.awt.Dimension dimension,
java.awt.GraphicsDevice screen)
throws visad.VisADException,
java.rmi.RemoteException
projection - The projection to usemode - 3D/2D modeoffscreen - Are we in offscreen modedimension - Size of offscreen imagescreen - Graphics device to create onjava.rmi.RemoteException - On badnessvisad.VisADException - On badnessprotected void initializeClass()
throws visad.VisADException,
java.rmi.RemoteException
initializeClass in class MapProjectionDisplayjava.rmi.RemoteExceptionvisad.VisADExceptionpublic void addKeyboardBehavior(visad.KeyboardBehavior behavior)
addKeyboardBehavior in class MapProjectionDisplaybehavior - behavior to addpublic void enableClipping(boolean clip)
enableClipping in class NavigatedDisplayclip - true to turn clipping on, otherwise offpublic javax.media.j3d.View getView()
NavigatedDisplaygetView in class NavigatedDisplaypublic void setPerspectiveView(boolean perspectiveView)
setPerspectiveView in class NavigatedDisplayperspectiveView - true for perspective viewpublic boolean isPerspectiveView()
isPerspectiveView in class NavigatedDisplaypublic void setView(int view)
NORTH
_________
W | | E
E | | A
S | | S
T |_______| T
SOUTH
setView in class MapProjectionDisplayview - one of the static view fields (NORTH_VIEW, SOUTH_VIEW, ..
etc).public boolean getStereoAvailable()
getStereoAvailable in class DisplayMasterpublic void setEyePosition(double position)
setEyePosition in class DisplayMasterposition - x position of each eye (left negative, right positive).public void setClipDistanceFront(double value)
NavigatedDisplaysetClipDistanceFront in class NavigatedDisplayvalue - The new value for ClipDistanceFrontpublic void setClipDistanceBack(double value)
NavigatedDisplaysetClipDistanceBack in class NavigatedDisplayvalue - The new value for ClipDistanceBackpublic void checkClipDistance()