|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.DisplayMaster
ucar.unidata.view.geoloc.NavigatedDisplay
ucar.unidata.view.geoloc.MapProjectionDisplay
ucar.unidata.view.geoloc.MapProjectionDisplayJ3D
public class MapProjectionDisplayJ3D
Provides a navigated VisAD DisplayImpl for displaying data. The Projection or MapProjection provides the transformation from lat/lon space to xy space. There are two modes that can be used with this display - MODE_3D (Java 3D) and MODE_2Din3D (2D in Java 3D). Performance is better in Java 3D modes. In the 3D mode, RealType.Altitude is mapped to the display Z axis.
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)| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.view.geoloc.MapProjectionDisplay |
|---|
MapProjectionDisplay.MapProjection3DAdapter |
| Nested classes/interfaces inherited from class ucar.unidata.view.geoloc.NavigatedDisplay |
|---|
NavigatedDisplay.VerticalMapSet |
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.view.geoloc.MapProjectionDisplay |
|---|
CURSOR_BEARING, CURSOR_BEARING_TYPE, CURSOR_RANGE, CURSOR_RANGE_TYPE, force2D |
| Fields inherited from class ucar.unidata.view.geoloc.NavigatedDisplay |
|---|
BOTTOM_VIEW, BOTTOM_VIEW_NAME, 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_NAME |
| Fields inherited from class ucar.visad.display.DisplayMaster |
|---|
behavior, defaultMouseFunctions, POINT_MODE |
| Constructor Summary | |
|---|---|
MapProjectionDisplayJ3D()
Constructs the default instance. |
|
MapProjectionDisplayJ3D(int mode)
Constructs an instance with a LatLonProjection with the specified mode. |
|
MapProjectionDisplayJ3D(MapProjection projection,
int mode)
Constructs an instance with the specified MapProjection CoordinateSystem and mode. |
|
MapProjectionDisplayJ3D(MapProjection projection,
int mode,
boolean offscreen,
Dimension dimension)
ctor |
|
MapProjectionDisplayJ3D(MapProjection projection,
int mode,
boolean offscreen,
Dimension dimension,
GraphicsDevice screen)
ctor |
|
MapProjectionDisplayJ3D(ucar.unidata.geoloc.ProjectionImpl projection,
int mode)
Constructs an instance with the specified Projection and mode. |
|
| Method Summary | |
|---|---|
void |
addKeyboardBehavior(KeyboardBehavior behavior)
Add a keyboard behavior to this display |
void |
enableClipping(boolean clip)
Enable clipping of data at the box edges. |
boolean |
getStereoAvailable()
Determine if this MapDisplay can do stereo.. |
protected void |
initializeClass()
Set up the display called by constructor |
boolean |
isPerspectiveView()
Get the view to perspective or parallel.. |
void |
setEyePosition(double position)
Method for setting the eye position for a 3D stereo view. |
void |
setPerspectiveView(boolean perspective)
Set the view to perspective or parallel if this is a 3D display.. |
void |
setView(int view)
Set the view for 3D. |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapProjectionDisplayJ3D()
throws VisADException,
RemoteException
VisADException - Couldn't create necessary VisAD object
RemoteException - Couldn't create a remote object
public MapProjectionDisplayJ3D(int mode)
throws VisADException,
RemoteException
mode - mode for display (MODE_3D, MODE_2Din3D)
VisADException - Couldn't create necessary VisAD object
RemoteException - Couldn't create a remote object
public MapProjectionDisplayJ3D(ucar.unidata.geoloc.ProjectionImpl projection,
int mode)
throws VisADException,
RemoteException
mode - mode for display (MODE_3D, MODE_2Din3D)projection - map projection
VisADException - Couldn't create necessary VisAD object
RemoteException - Couldn't create a remote object
public MapProjectionDisplayJ3D(MapProjection projection,
int mode)
throws VisADException,
RemoteException
mode - mode for display (MODE_3D, MODE_2Din3D)projection - map projection CS
VisADException - Couldn't create necessary VisAD object
RemoteException - Couldn't create a remote object
public MapProjectionDisplayJ3D(MapProjection projection,
int mode,
boolean offscreen,
Dimension dimension)
throws VisADException,
RemoteException
projection - The projection to usemode - 3D/2D modeoffscreen - Are we in offscreen modedimension - Size of offscreen image
RemoteException - On badness
VisADException - On badness
public MapProjectionDisplayJ3D(MapProjection projection,
int mode,
boolean offscreen,
Dimension dimension,
GraphicsDevice screen)
throws VisADException,
RemoteException
projection - The projection to usemode - 3D/2D modeoffscreen - Are we in offscreen modedimension - Size of offscreen imagescreen - Graphics device to create on
RemoteException - On badness
VisADException - On badness| Method Detail |
|---|
protected void initializeClass()
throws VisADException,
RemoteException
initializeClass in class MapProjectionDisplayRemoteException
VisADExceptionpublic void addKeyboardBehavior(KeyboardBehavior behavior)
addKeyboardBehavior in class MapProjectionDisplaybehavior - behavior to addpublic void enableClipping(boolean clip)
enableClipping in class NavigatedDisplayclip - true to turn clipping on, otherwise offpublic void setPerspectiveView(boolean perspective)
setPerspectiveView in class NavigatedDisplayperspective - 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).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||