24 |
24 |
|
25 |
25 |
package org.gvsig.view3d.swing.api;
|
26 |
26 |
|
|
27 |
import gov.nasa.worldwind.awt.WorldWindowGLJPanel;
|
|
28 |
import gov.nasa.worldwind.layers.Layer;
|
|
29 |
|
27 |
30 |
import org.gvsig.fmap.mapcontext.MapContext;
|
|
31 |
import org.gvsig.fmap.mapcontext.ViewPort;
|
28 |
32 |
import org.gvsig.fmap.mapcontext.layers.FLayer;
|
29 |
33 |
import org.gvsig.tools.dispose.Disposable;
|
30 |
34 |
import org.gvsig.tools.observer.Observable;
|
... | ... | |
33 |
37 |
import org.gvsig.view3d.swing.api.View3DSwingManager.TYPE;
|
34 |
38 |
|
35 |
39 |
/**
|
|
40 |
* A component that includes a {@link MapContext} and a
|
|
41 |
* {@link WorldWindowGLJPanel}.
|
36 |
42 |
*
|
|
43 |
* <code>MapContext</code> is used to:
|
|
44 |
* <ul>
|
|
45 |
* <li>Get layers to convert them to {@link Layer}. When <code>MapContext</code>
|
|
46 |
* layers are converted, they are added to WorldWindowGLJPanel to display it.</li>
|
|
47 |
* <li>Get {@link ViewPort} to synchronize view ports.</li>
|
|
48 |
* </ul>
|
37 |
49 |
*
|
|
50 |
* <code>WorldWindowGLJPanel</code> is used to display WW Models (globe and
|
|
51 |
* layers). It's a self-contained component intended to serve as an
|
|
52 |
* application's WorldWindow.
|
38 |
53 |
*
|
|
54 |
* This component offers methods to:
|
|
55 |
* <ul>
|
|
56 |
* <li>Get shared object to cancel draw request. See
|
|
57 |
* {@link MapControl3D#getCancellable()}</li>
|
|
58 |
* <li>Get and set associated <code>MapContext</code>. See
|
|
59 |
* {@link MapControl3D#getMapContext()}</li>
|
|
60 |
* <li>Get and set vertical exaggeration of WW Model. See
|
|
61 |
* {@link MapControl3D#getVerticalExaggeration()} and
|
|
62 |
* {@link MapControl3D#setVerticalExaggeration(double)}</li>
|
|
63 |
* <li>Show and hide atmosphere layer. See {@link MapControl3D#showAtmosphere()}
|
|
64 |
* and {@link MapControl3D#hideAtmosphere()}</li>
|
|
65 |
* <li>Show and hide Minimap component layer. See
|
|
66 |
* {@link MapControl3D#showMiniMap()} and {@link MapControl3D#hideMiniMap()}</li>
|
|
67 |
* <li>Show and hide North indicator component layer. See
|
|
68 |
* {@link MapControl3D#showNortIndicator()} and
|
|
69 |
* {@link MapControl3D#hideNorthIndicator()}</li>
|
|
70 |
* <li>Show and hide scale component layer. See {@link MapControl3D#showScale()}
|
|
71 |
* and {@link MapControl3D#hideScale()}</li>
|
|
72 |
* <li>Show and hide start background layer layer. See
|
|
73 |
* {@link MapControl3D#showStarBackgroundLayer()} and
|
|
74 |
* {@link MapControl3D#hideStarBackground()}</li>
|
|
75 |
* <li>Synchronize view ports. See {@link MapControl3D#synchronizeViewPorts()}</li>
|
|
76 |
* <li>Reload layers. There are two methos to reload layers. The first methos is
|
|
77 |
* {@link MapControl3D#synchronizeLayers()} that only reload layers with chages.
|
|
78 |
* The second methos is {@link MapControl3D#reloadLayers()} that reload all
|
|
79 |
* layers of <code>MapContext</code></li>
|
|
80 |
* </ul>
|
|
81 |
*
|
39 |
82 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
|
40 |
83 |
*
|
41 |
84 |
*/
|
... | ... | |
44 |
87 |
|
45 |
88 |
/**
|
46 |
89 |
* Notification that notifies just before that this
|
47 |
|
* <code>MapControl3D</code> diposes.
|
|
90 |
* <code>MapControl3D</code>is diposed.
|
48 |
91 |
*/
|
49 |
92 |
static final String BEFORE_DISPOSE_MAPCONTEX3D_NOTIFICATION =
|
50 |
93 |
"MapControl3D.beforeDisposePanel";
|
51 |
94 |
|
52 |
95 |
/**
|
53 |
96 |
* Notification that notifies just after that this <code>MapControl3D</code>
|
54 |
|
* diposes.
|
|
97 |
* is
|
|
98 |
* diposed.
|
55 |
99 |
*/
|
56 |
100 |
static final String AFTER_DISPOSE_MAPCONTEX3D_NOTIFICATION =
|
57 |
101 |
"MapControl3D.afterDisposePanel";
|