Revision 601

View differences:

2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
	<modelVersion>4.0.0</modelVersion>
3
	<parent>
4
		<groupId>org.gvsig</groupId>
5
		<artifactId>org.gvsig.view3d.swing</artifactId>
6
		<version>1.0.9</version>
7
	</parent>
8
	<artifactId>org.gvsig.view3d.swing.api</artifactId>
9
	<name>org.gvsig.view3d.swing.api</name>
10
	<dependencies>
11
		<dependency>
12
			<groupId>org.gvsig</groupId>
13
			<artifactId>org.gvsig.tools.lib</artifactId>
14
		</dependency>
15
		<dependency>
16
			<groupId>org.gvsig</groupId>
17
			<artifactId>org.gvsig.fmap.mapcontext.api</artifactId>
18
		</dependency>
19
		<dependency>
20
			<groupId>gov.nasa</groupId>
21
			<artifactId>worldwind</artifactId>
22
		</dependency>
23
		<dependency>
24
			<groupId>gov.nasa</groupId>
25
			<artifactId>worldwindx</artifactId>
26
			<version>2.0.0</version>
27
		</dependency>
28
		<dependency>
29
			<groupId>org.jogamp.gluegen</groupId>
30
			<artifactId>gluegen-rt</artifactId>
31
		</dependency>
32
		<dependency>
33
			<groupId>org.jogamp.jogl</groupId>
34
			<artifactId>jogl-all</artifactId>
35
		</dependency>
36
		<dependency>
37
			<groupId>org.gvsig</groupId>
38
			<artifactId>org.gvsig.tools.swing.api</artifactId>
39
		</dependency>
40
		<dependency>
41
		  <groupId>org.gvsig</groupId>
42
		  <artifactId>org.gvsig.view3d.lib.api</artifactId>
43
		</dependency>
44
	</dependencies>
45
</project>
2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
1
org.gvsig.view3d.swing.api.View3DSwingLibrary
2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/View3DPanel.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright ? 2007-2015 gvSIG Association
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24

  
25
package org.gvsig.view3d.swing.api;
26

  
27
import org.gvsig.tools.swing.api.Component;
28

  
29
/**
30
 * Component to show a {@link MapControl3D} component and register window
31
 * listeners if it is necessary.
32
 * 
33
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
34
 *
35
 */
36
public interface View3DPanel extends Component {
37
    
38
    /**
39
     * Sets full screen mode.
40
     * 
41
     */
42
    public void fullScreen();
43
    
44
    /**
45
     * Gets <code>MapControl3D</code> of this <code>ViewPanel</code>
46
     */
47
    public MapControl3D getMapControl3D();
48
    
49
    /**
50
     * Shows panel like a window. 
51
     */
52
    public void show();
53
}
2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/View3DSwingManager.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright ? 2007-2015 gvSIG Association
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24

  
25
package org.gvsig.view3d.swing.api;
26

  
27
import java.util.List;
28

  
29
import org.gvsig.fmap.mapcontext.MapContext;
30
import org.gvsig.fmap.mapcontext.layers.ExtendedPropertiesSupport;
31
import org.gvsig.fmap.mapcontext.layers.FLayer;
32
import org.gvsig.view3d.swing.api.properties.GeneralProperties3D;
33
import org.gvsig.view3d.swing.api.properties.GeneralProperties3DPanel;
34
import org.gvsig.view3d.swing.api.properties.LayerProperties3DPanel;
35
import org.gvsig.view3d.swing.api.properties.MapControlProperties3D;
36
import org.gvsig.view3d.swing.api.properties.ViewProperties3DPanel;
37

  
38
/**
39
 * This class is responsible of the management of the library's swing user
40
 * interface. It is the swing library's main entry point, and provides all the
41
 * services to manage library swing components.
42
 * 
43
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
44
 *
45
 */
46
public interface View3DSwingManager {
47

  
48
    public enum TYPE {
49
        SPHERE, FLAT
50
    }
51

  
52
    /**
53
     * Creates the general 3D properties panel. General 3D properties is used to
54
     * show and change General 3D properties in a graphical way. See
55
     * {@link GeneralProperties3D}.
56
     * 
57
     * @param properties
58
     *            Model of general 3D properties panel.
59
     * @return general 3D properties panel.
60
     */
61
    public GeneralProperties3DPanel createGeneralProperties3DPanel(
62
        GeneralProperties3D properties);
63

  
64
    /**
65
     * Creates the layer 3D properties panel. Layer 3D properties panel is used
66
     * to show and change layer 3D properties in a graphical way. See
67
     * {@link LayerProperties3D}.
68
     * 
69
     * @param layer
70
     *            Layer to get model of layer 3D properties panel.
71
     * @return layer 3D properties panel.
72
     */
73
    public LayerProperties3DPanel createLayerProperties3DPanel(FLayer layer);
74

  
75
    /**
76
     * Registers and creatres a <code>MapControl3D</code> as from
77
     * {@link MapContext} {@link TYPE}. When an {@link MapControl3D} is created,
78
     * it automatically adds all available and visible layers of
79
     * <code>MapControl</code>.
80
     * 
81
     * @param theMapContext
82
     *            associated <code>MapContext</code> of
83
     *            <code>MapControl3D</code>
84
     * @param type
85
     *            Type of <code>MapControl3D</code>. See {@link TYPE}.
86
     * @param viewProperties
87
     *            View properties to register this <code>MapControl3D</code>
88
     * @see View3DSwingManager#createView3DPanel(MapControl3D, String)
89
     * @see View3DSwingManager#createViewProperties3DPanel(MapControlProperties3D)
90
     * @return an instance of <code>MapControl3D</code> ready to be shown.
91
     */
92
    public MapControl3D createMapControl3D(MapContext theMapContext, TYPE type,
93
        ExtendedPropertiesSupport viewProperties);
94

  
95
    /**
96
     * Creates a <code>View3DPanel</code> with a {@link MapControl3D}.
97
     * 
98
     * @param theMapContext
99
     *            associated <code>MapContext</code> of
100
     *            <code>MapControl3D</code>
101
     * @param title
102
     *            Title of window
103
     * @param type
104
     *            Type of <code>MapControl3D</code>. See {@link TYPE}.
105
     * @param viewProperties
106
     *            View properties to register this <code>MapControl3D</code>
107
     * @see View3DSwingManager#createMapControl3D(MapContext, TYPE)
108
     * @see View3DSwingManager#createView3DPanel(MapControl3D, String)
109
     * @return
110
     */
111
    public View3DPanel createView3DPanel(MapContext theMapContext,
112
        String title, TYPE type, ExtendedPropertiesSupport viewProperties);
113

  
114
    /**
115
     * Creates a <code>View3DPanel</code> with a {@link MapControl3D}.
116
     * 
117
     * @param mapControl3D
118
     *            Model of the <code>View3DPanel</code>.
119
     * @param title
120
     *            Title of panel.
121
     * @see View3DSwingManager#createView3DPanel(MapContext, String, TYPE,
122
     *      ExtendedPropertiesSupport)
123
     * @see View3DSwingManager#createMapControl3D(MapContext, TYPE,
124
     *      ExtendedPropertiesSupport)
125
     * @return The <code>View3DPanel</code>.
126
     */
127
    public View3DPanel createView3DPanel(MapControl3D mapControl3D, String title);
128

  
129
    /**
130
     * Creates the view 3D properties panel. View 3D properties panel is used to
131
     * show and change MapControl 3D properties in a graphical way. See
132
     * {@link MapControlProperties3D}.
133
     * 
134
     * @param properties
135
     *            Model of view 3D properties panel.
136
     * @return view 3D properites panel.
137
     */
138
    public ViewProperties3DPanel createViewProperties3DPanel(
139
        MapControlProperties3D properties);
140

  
141
    /**
142
     * Gets <code>GeneralProperties3D<code> of 3D library.
143
     * 
144
     * @see View3DSwingManager#setGeneral3DProperties(GeneralProperties3D)
145
     * @return
146
     */
147
    public GeneralProperties3D getGeneral3DProperties();
148

  
149
    /**
150
     * Gets the {@link MapControl3D} associated with view properties
151
     * {@link ExtendedPropertiesSupport}. If there are not indicated type of
152
     * <code>MapControl3D</code> associated with view properties, it will return
153
     * an empty list.
154
     * 
155
     * @param viewProperties
156
     * @see View3DSwingManager#getMapControl3D(ExtendedPropertiesSupport, TYPE)
157
     * @return List of <code>MapControl3D</code> associated with the view
158
     *         propoerties.
159
     */
160
    public List<MapControl3D> getMapControl3D(
161
        ExtendedPropertiesSupport viewProperties);
162

  
163
    /**
164
     * Gets the {@link MapControl3D} associated with view properties
165
     * {@link ExtendedPropertiesSupport}. Returns <code>null</code>, if there
166
     * are
167
     * not indicated type of <code>MapControl3D</code> registered at view
168
     * properties.
169
     * 
170
     * @param viewProperties
171
     * @param type
172
     *            Type of <code>MapControl3D</code>
173
     * @see View3DSwingManager#getMapControl3D(ExtendedPropertiesSupport)
174
     * @return
175
     */
176
    public MapControl3D getMapControl3D(
177
        ExtendedPropertiesSupport viewProperties, TYPE type);
178

  
179
    /**
180
     * Gets <code>MapControlProperties3D</code> linked with the view properties.
181
     * 
182
     * @param viewProperties
183
     *            View properties to get the <code>MapControlProperties3D</code>
184
     *            associated.
185
     * @see View3DSwingManager#setMapControlProperties3D(ExtendedPropertiesSupport,
186
     *      MapControlProperties3D)
187
     * @return
188
     */
189
    public MapControlProperties3D getMapControl3DProperties(
190
        ExtendedPropertiesSupport viewProperties);
191

  
192
    /**
193
     * Sets <code>GeneralProperties3D</code> to 3D library.
194
     * 
195
     * @param properties
196
     *            General 3D properties.
197
     * @see View3DSwingManager#getGeneral3DProperties()
198
     */
199
    public void setGeneral3DProperties(GeneralProperties3D properties);
200

  
201
    /**
202
     * Sets <code>MapControlProperties3D</code> to view properties.
203
     * 
204
     * @param viewProperties
205
     *            View properties to link the
206
     *            <code>MapControlProperties3D</code>.
207
     * @param mapControl3DProperties
208
     *            The {@link MapControlProperties3D} to be linked.
209
     * @see View3DSwingManager#getMapControl3DProperties(ExtendedPropertiesSupport)
210
     */
211
    public void setMapControlProperties3D(
212
        ExtendedPropertiesSupport viewProperties,
213
        MapControlProperties3D mapControl3DProperties);
214
}
2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/MapControl3D.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright ? 2007-2015 gvSIG Association
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24

  
25
package org.gvsig.view3d.swing.api;
26

  
27
import gov.nasa.worldwind.awt.WorldWindowGLJPanel;
28
import gov.nasa.worldwind.layers.Layer;
29

  
30
import org.gvsig.fmap.mapcontext.MapContext;
31
import org.gvsig.fmap.mapcontext.ViewPort;
32
import org.gvsig.fmap.mapcontext.layers.FLayer;
33
import org.gvsig.tools.dispose.Disposable;
34
import org.gvsig.tools.observer.Observable;
35
import org.gvsig.tools.swing.api.Component;
36
import org.gvsig.tools.task.Cancellable;
37
import org.gvsig.view3d.swing.api.View3DSwingManager.TYPE;
38
import org.gvsig.view3d.swing.api.properties.MapControlProperties3D;
39

  
40
/**
41
 * A component that includes a {@link MapContext} and a
42
 * {@link WorldWindowGLJPanel}.
43
 * 
44
 * <code>MapContext</code> is used to:
45
 * <ul>
46
 * <li>Get layers to convert them to {@link Layer}. When <code>MapContext</code>
47
 * layers are converted, they are added to WorldWindowGLJPanel to display it.</li>
48
 * <li>Get {@link ViewPort} to synchronize view ports.</li>
49
 * </ul>
50
 * 
51
 * <code>WorldWindowGLJPanel</code> is used to display WW Models (globe and
52
 * layers). It's a self-contained component intended to serve as an
53
 * application's WorldWindow.
54
 * 
55
 * This component offers methods to:
56
 * <ul>
57
 * <li>Get shared object to cancel draw request. See
58
 * {@link MapControl3D#getCancellable()}</li>
59
 * <li>Get and set associated <code>MapContext</code>. See
60
 * {@link MapControl3D#getMapContext()}</li>
61
 * <li>Get and set vertical exaggeration of WW Model. See
62
 * {@link MapControl3D#getVerticalExaggeration()} and
63
 * {@link MapControl3D#setVerticalExaggeration(double)}</li>
64
 * <li>Get and set atmosphere layer. See {@link MapControl3D#getAtmosphereVisibility()}
65
 * and {@link MapControl3D#setAtmosphereVisibility(boolean)}</li>
66
 * <li>Get and set Minimap component layer. See
67
 * {@link MapControl3D#getMinimapVisibility()} and {@link MapControl3D#setMiniMapVisibility(boolean)}</li>
68
 * <li>Get and set North indicator component layer. See
69
 * {@link MapControl3D#getNorthIndicatorVisibility()} and
70
 * {@link MapControl3D#setNorthIndicatorVisibility(boolean)}</li>
71
 * <li>Get and set scale component layer. See {@link MapControl3D#getScaleVisibility()}
72
 * and {@link MapControl3D#setScaleVisibility(boolean)}</li>
73
 * <li>Get and set star background layer. See
74
 * {@link MapControl3D#getStarBackgroundVisibility()} and
75
 * {@link MapControl3D#setStarsBackgroundVisibility(boolean)}</li>
76
 * <li>Synchronize view ports. See {@link MapControl3D#synchronizeViewPorts()}</li>
77
 * <li>Reload layers. There are two methos to reload layers. The first methos is
78
 * {@link MapControl3D#synchronizeLayers()} that only reload layers with chages.
79
 * The second methos is {@link MapControl3D#reloadLayers()} that reload all
80
 * layers of <code>MapContext</code></li>
81
 * </ul>
82
 * 
83
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
84
 *
85
 */
86
@SuppressWarnings("deprecation")
87
public interface MapControl3D extends Component, Disposable, Observable {
88

  
89
    /**
90
     * Notification that notifies just before that this
91
     * <code>MapControl3D</code>is diposed.
92
     */
93
    static final String BEFORE_DISPOSE_MAPCONTEX3D_NOTIFICATION =
94
        "MapControl3D.beforeDisposePanel";
95

  
96
    /**
97
     * Notification that notifies just after that this <code>MapControl3D</code>
98
     * is
99
     * diposed.
100
     */
101
    static final String AFTER_DISPOSE_MAPCONTEX3D_NOTIFICATION =
102
        "MapControl3D.afterDisposePanel";
103

  
104
    /**
105
     * Gets shared object to cancel draw of loaded layers. To cancel draw use
106
     * set
107
     * canceled <code>true</code> with {@link Cancellable#setCanceled(boolean)}
108
     * 
109
     * Note: {@link Cancellable} is deprecated but we have to use it because
110
     * {@link FLayer#draw(java.awt.image.BufferedImage, java.awt.Graphics2D, org.gvsig.fmap.mapcontext.ViewPort, Cancellable, double)}
111
     * use it.
112
     * 
113
     * @see Cancellable
114
     */
115
    public Cancellable getCancellable();
116

  
117
    /**
118
     * Gets the <code>MapContext</code> associated.
119
     * 
120
     */
121
    public MapContext getMapContext();
122

  
123
    /**
124
     * Gets {@link TYPE} of this <code>MapControl3D</code>.
125
     * 
126
     */
127
    public TYPE getType();
128
    
129
    /**
130
     * Gets 3D MapControl properties of this MapControl3D. 
131
     * 
132
     * @return
133
     */
134
    public MapControlProperties3D getProperties();
135

  
136
    /**
137
     * Gets vertical exaggeration model of this <code>MapControl3D</code>.
138
     * 
139
     * @see MapControl3D#setVerticalExaggeration(double)
140
     */
141
    public double getVerticalExaggeration();
142

  
143
    /**
144
     * Sets Atmosphere visibility.
145
     * 
146
     * @see MapControl3D#getAtmosphereVisibility()
147
     */
148
    public void setAtmosphereVisibility(boolean visibility);
149

  
150
    /**
151
     * Sets MiniMap visibility.
152
     * 
153
     * @see MapControl3D#getMinimapVisibility()
154
     */
155
    public void setMiniMapVisibility(boolean visibility);
156

  
157
    /**
158
     * Sets North Indicator visibility.
159
     * 
160
     * @see MapControl3D#getNorthIndicatorVisibility()
161
     */
162
    public void setNorthIndicatorVisibility(boolean visibility);
163

  
164
    /**
165
     * Sets Scale visibility.
166
     * 
167
     * @see MapControl3D#getScaleVisibility()
168
     */
169
    public void setScaleVisibility(boolean visibility);
170

  
171
    /**
172
     * Sets Star background visibility.
173
     * 
174
     * @see MapControl3D#getStarBackgroundVisibility()
175
     */
176
    public void setStarsBackgroundVisibility(boolean visibility);
177
    
178
    /**
179
     * Gets Atmosphere visibility.
180
     * 
181
     * @see MapControl3D#getAtmosphereVisibility()
182
     */
183
    public boolean getAtmosphereVisibility();
184
    
185
    /**
186
     * Gets Minimap visibility.
187
     * 
188
     * @see MapControl3D#getMinimapVisibility()
189
     */
190
    public boolean getMinimapVisibility();
191
    
192
    /**
193
     * Gets North indicator visibility.
194
     * 
195
     * @see MapControl3D#getNorthIndicatorVisibility()
196
     */
197
    public boolean getNorthIndicatorVisibility();
198
    
199
    /**
200
     * Gets Star background visibility.
201
     * 
202
     * @see MapControl3D#getStarBackgroundVisibility()
203
     */
204
    public boolean getStarBackgroundVisibility();
205
    
206
    /**
207
     * Gets Scale visibility.
208
     * 
209
     * @see MapControl3D#getScaleVisibility()
210
     */
211
    public boolean getScaleVisibility();
212

  
213
    /**
214
     * Forces reload all layers of <code>MapContext</code> associted.
215
     * 
216
     * @see {@link MapControl3D#synchronizeLayers()}
217
     */
218
    public void reloadLayers();
219

  
220
    /**
221
     * Synchronize view of <code>MapControl3D</code> with view port of
222
     * <code>MapContext</code> associated.
223
     */
224
    public void synchronizeViewPorts();
225

  
226
    /**
227
     * Synchronize with <code>MapContext</code> associted only layers with
228
     * changes. To force synchronize all layers use
229
     * {@link MapControl3D#reloadLayers()}.
230
     * 
231
     */
232
    public void synchronizeLayers();
233

  
234
}
2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/properties/ViewProperties3DPanel.java
1
package org.gvsig.view3d.swing.api.properties;
2

  
3
import org.gvsig.tools.swing.api.Component;
4

  
5
/**
6
 * This class represents the available API to get the indicated values at panel.
7
 * 
8
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
9
 *
10
 */
11
public interface ViewProperties3DPanel extends Component {
12

  
13
    /**
14
     * Gets auto layer synchronize.
15
     * 
16
     * @return
17
     */
18
    public boolean getAutoLayerSynchronize();
19

  
20
    /**
21
     * Gets auto view port synchronize.
22
     * 
23
     * @return
24
     */
25
    public boolean getAutoViewPortSynchronize();
26

  
27
    /**
28
     * Gets if Blue Marble is showing.
29
     * 
30
     * @return
31
     */
32
    public boolean getShowBlueMarble();
33

  
34
    /**
35
     * Gets if default elevation is showing.
36
     * 
37
     * @return
38
     */
39
    public boolean getShowDefaultElevation();
40

  
41
    /**
42
     * Gets if Nasa Landsat is showing.
43
     * 
44
     * @return
45
     */
46
    public boolean getShowNasaLandsat();
47

  
48
    /**
49
     * Gets vertical exaggertion of flat 3D view.
50
     * 
51
     * @return
52
     */
53
    public double getFlatVerticalExaggeration();
54

  
55
    /**
56
     * Gets vertical exaggeration of sphere 3D view.
57
     * 
58
     * @return
59
     */
60
    public double getSphereVerticalExaggeration();
61
}
2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/properties/LayerProperties3DPanel.java
1
package org.gvsig.view3d.swing.api.properties;
2

  
3
import org.gvsig.fmap.mapcontext.layers.FLayer;
4
import org.gvsig.tools.swing.api.Component;
5

  
6
/**
7
 * This class represents the available API to get the indicated values at panel.
8
 * 
9
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
10
 *
11
 */
12
public interface LayerProperties3DPanel extends Component {
13

  
14
    /**
15
     * Gets elevation field that has elevation values.
16
     * 
17
     * @return
18
     */
19
    public String getElevationField();
20

  
21
    /**
22
     * Gets elevation units of elevation values.
23
     * 
24
     * @return
25
     */
26
    public String getElevationUnits();
27

  
28
    /**
29
     * Gets layer of model panel.
30
     * 
31
     * @see LayerProperties3DPanel#setLayer(FLayer)
32
     * @return
33
     */
34
    public FLayer getLayer();
35

  
36
    /**
37
     * Gets the load mode of layer.  
38
     * 
39
     * @return
40
     */
41
    public String getLoadMode();
42

  
43
    /**
44
     * Gets maximum level of detail showed.
45
     * 
46
     * @return
47
     */
48
    public int getMaxLevel();
49

  
50
    /**
51
     * Gets minimum level of detail showed.
52
     * 
53
     * @return
54
     */
55
    public int getMinLevel();
56

  
57
    /**
58
     * Gets NoData value
59
     * 
60
     * @return
61
     */
62
    public double getNoDataValue();
63

  
64
    /**
65
     * Gets resolution multiplier at zero level.
66
     * 
67
     * @return
68
     */
69
    public double getResolutionMultiplier();
70

  
71
    /**
72
     * Gets tile heigth
73
     * 
74
     * @return
75
     */
76
    public int getTileHeight();
77

  
78
    /**
79
     * Get tile width
80
     * 
81
     * @return
82
     */
83
    public int getTileWidth();
84

  
85
    /**
86
     * Sets layer of model.
87
     * 
88
     * @param layer
89
     * @see LayerProperties3DPanel#getLayer()
90
     */
91
    public void setLayer(FLayer layer);
92
}
2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/properties/GeneralProperties3D.java
1
package org.gvsig.view3d.swing.api.properties;
2

  
3
import java.beans.PropertyChangeListener;
4
import java.io.File;
5

  
6
/**
7
 * This class represents the general properties of 3D library.
8
 * 
9
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
10
 *
11
 */
12
public interface GeneralProperties3D {
13

  
14
    public final static String DEFAULT_VIEW_HEIGHT_PROPERTY_NAME =
15
        "defaultViewHeight";
16
    public final static String DEFAULT_VIEW_WIDTH_PROPERTY_NAME =
17
        "defaultViewWidth";
18

  
19
    public final static String ATMOSPHERE_VISIBILITY_PROPERTY_NAME =
20
        "atmosphereVisibility";
21
    public final static String MINIMAP_VISIBILITY_PROPERTY_NAME =
22
        "minimapVisibility";
23
    public final static String NORTH_INDICATOR_VISIBILITY_PROPERTY_NAME =
24
        "northIndicatorVisibility";
25
    public final static String STARS_BACKGROUND_VISIBILITY_PROPERTY_NAME =
26
        "starsBackgroundVisibility";
27
    public final static String SCALE_VISIBILITY_PROPERTY_NAME =
28
        "scaleVisibility";
29

  
30
    public final static String VIEWPORT_ANIMATION_PROPERTY_NAME =
31
        "viewPortAnimation";
32

  
33
    public final static String CACHE_PATH_PROPERTY_NAME = "cachePath";
34

  
35
    /**
36
     * Adds {@link PropertyChangeListener} that will listen properties changes.
37
     * 
38
     * @param listener
39
     * @see GeneralProperties3D#removePropertyChangeListener(PropertyChangeListener)
40
     */
41
    public void addPropertyChangeListener(PropertyChangeListener listener);
42

  
43
    /**
44
     * Gets the atmosphere visibility.
45
     * 
46
     * @see GeneralProperties3D#setAtmosphereVisibility(boolean)
47
     * @return visibility of atmosphere component.
48
     */
49
    public boolean getAtmosphereVisibility();
50

  
51
    /**
52
     * Gets path of tile cache.
53
     * 
54
     * @see GeneralProperties3D#setCachePath(File)
55
     * @return
56
     */
57
    public File getCachePath();
58

  
59
    /**
60
     * Gets the default view heigth of 3D views.
61
     * 
62
     * @see GeneralProperties3D#setDefaultViewHeight(int)
63
     * @return Default height of 3D views.
64
     */
65
    public int getDefaultViewHeight();
66

  
67
    /**
68
     * Gets the default view width of 3D views.
69
     * 
70
     * @see GeneralProperties3D#setDefaultViewWidth(int)
71
     * @return Default width of 3D views.
72
     */
73
    public int getDefaultViewWidth();
74

  
75
    /**
76
     * Gets minimap visibility.
77
     * 
78
     * @see GeneralProperties3D#setMinimapVisibility(boolean)
79
     * @return Visibility of minimap.
80
     */
81
    public boolean getMinimapVisibility();
82

  
83
    /**
84
     * Gets north indicator visibility.
85
     * 
86
     * @see GeneralProperties3D#setNorthIndicatorVisibility(boolean)
87
     * @return Visibility of north indicator component.
88
     */
89
    public boolean getNorthIndicatorVisibility();
90

  
91
    /**
92
     * Get visibility of scale component.
93
     * 
94
     * @see GeneralProperties3D#setScaleVisibility(boolean)
95
     * @return Visibility of scale component.
96
     */
97
    public boolean getScaleVisibility();
98

  
99
    /**
100
     * Get starts background visibility.
101
     * 
102
     * @see GeneralProperties3D#setStarsBackgroundVisibility(boolean)
103
     * @return Visibility of starts background component.
104
     */
105
    public boolean getStarsBackgroundVisibility();
106

  
107
    /**
108
     * Gets if the view port synchronize is animated
109
     * 
110
     * @see GeneralProperties3D#setViewPortAnimation(boolean)
111
     * @return True if view port synchronize is animated, false if it is not
112
     *         animated.
113
     */
114
    public boolean getViewPortAnimation();
115

  
116
    /**
117
     * Removes {@link PropertyChangeListener}.
118
     * 
119
     * @param listener
120
     * @see GeneralProperties3D#addPropertyChangeListener(PropertyChangeListener)
121
     */
122
    public void removePropertyChangeListener(PropertyChangeListener listener);
123

  
124
    /**
125
     * Sets visibility of atmosphere component.
126
     * 
127
     * @param visibility
128
     * @see GeneralProperties3D#getAtmosphereVisibility()
129
     */
130
    public void setAtmosphereVisibility(boolean visibility);
131

  
132
    /**
133
     * Sets path of tile cache.
134
     * 
135
     * @param path
136
     * @see GeneralProperties3D#getCachePath()
137
     */
138
    public void setCachePath(File path);
139

  
140
    /**
141
     * Sets default view height.
142
     * 
143
     * @param height
144
     * @see GeneralProperties3D#getDefaultViewHeight()
145
     */
146
    public void setDefaultViewHeight(int height);
147

  
148
    /**
149
     * Sets default view width.
150
     * 
151
     * @param width
152
     * @see GeneralProperties3D#getDefaultViewWidth()
153
     */
154
    public void setDefaultViewWidth(int width);
155

  
156
    /**
157
     * Sets visibility of miniMap component.
158
     * 
159
     * @param visibility
160
     * @see GeneralProperties3D#getMinimapVisibility()
161
     */
162
    public void setMinimapVisibility(boolean visibility);
163

  
164
    /**
165
     * Sets visibility of north indicator component.
166
     * 
167
     * @param visibility
168
     * @see GeneralProperties3D#getNorthIndicatorVisibility()
169
     */
170
    public void setNorthIndicatorVisibility(boolean visibility);
171

  
172
    /**
173
     * Sets visibility of scale component.
174
     * 
175
     * @param visibility
176
     * @see GeneralProperties3D#getScaleVisibility()
177
     */
178
    public void setScaleVisibility(boolean visibility);
179

  
180
    /**
181
     * Sets visibility of starts background component.
182
     * 
183
     * @param visibility
184
     * @see GeneralProperties3D#getStarsBackgroundVisibility()
185
     */
186
    public void setStarsBackgroundVisibility(boolean visibility);
187

  
188
    /**
189
     * Sets if the view port synchronize is animated or not.
190
     * 
191
     * @param flag
192
     * @see GeneralProperties3D#getViewPortAnimation()
193
     */
194
    public void setViewPortAnimation(boolean flag);
195
}
2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/properties/GeneralProperties3DPanel.java
1
package org.gvsig.view3d.swing.api.properties;
2

  
3
import org.gvsig.tools.swing.api.Component;
4

  
5
/**
6
 * This class represents the available API to get the indicated values at panel.
7
 * 
8
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
9
 *
10
 */
11
public interface GeneralProperties3DPanel extends Component {
12

  
13
    /**
14
     * Gets atmospehere visibility.
15
     * 
16
     * @return
17
     */
18
    public boolean getAtmosphereVisibility();
19

  
20
    /**
21
     * Gets cache path indicated.
22
     * 
23
     * @return
24
     */
25
    public String getCachePath();
26

  
27
    /**
28
     * Gets default height.
29
     * 
30
     * @return
31
     */
32
    public int getDefaultHeight();
33

  
34
    /**
35
     * Gets default width.
36
     * 
37
     * @return
38
     */
39
    public int getDefaultWidth();
40

  
41
    /**
42
     * Get minimap visibility.
43
     * 
44
     * @return
45
     */
46
    public boolean getMinimapVisibility();
47

  
48
    /**
49
     * Gets north indicator visibility.
50
     * 
51
     * @return
52
     */
53
    public boolean getNorthIndicatorVisibility();
54

  
55
    /**
56
     * Gets scale visibility.
57
     * 
58
     * @return
59
     */
60
    public boolean getScaleVisiblity();
61

  
62
    /**
63
     * Gets starts background visibility
64
     * 
65
     * @return
66
     */
67
    public boolean getStarsBackgroundVisiblity();
68

  
69
    /**
70
     * Get view port animation.
71
     * 
72
     * @return
73
     */
74
    public boolean getViewPortAnimation();
75

  
76
}
2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/properties/MapControlProperties3D.java
1
package org.gvsig.view3d.swing.api.properties;
2

  
3
import java.beans.PropertyChangeListener;
4

  
5
import org.gvsig.tools.persistence.Persistent;
6
import org.gvsig.view3d.swing.api.MapControl3D;
7

  
8
/**
9
 * This class represents the properties of {@link MapControl3D}.
10
 * 
11
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
12
 *
13
 */
14
public interface MapControlProperties3D extends Persistent{
15
    
16
    public static final String PERSISTENCE_NAME = "MapControl3DProperties";
17

  
18
    public final String SPHERE_VERTICAL_EXAGGERATION_PROPERTY_NAME =
19
        "sphereVerticalExaggeration";
20
    public final String FLAT_VERTICAL_EXAGGERATION_PROPERTY_NAME =
21
        "flatVerticalExaggeration";
22
    public final String AUTO_LAYER_SYNCHRONIZE_PROPERTY_NAME =
23
        "autoLayerSynchronize";
24
    public final String AUTO_VIEWPORT_SYNCHRONIZE_PROPERTY_NAME =
25
        "autoViewPortSynchronize";
26
    public final String BLUE_MARBEL_VISIBILITY_PROPERTY_NAME =
27
        "blueMarbelLayerVisibility";
28
    public final String NASA_LANDSAT_VISIBILITY_PROPERTY_NAME =
29
        "nasaLandsatLayerVisibility";
30
    public final String DEFAULT_ELEVATION_VISIBILITY_PROPERTY_NAME =
31
        "defaultElevationVisibility";
32
    
33
    /**
34
     * Adds {@link PropertyChangeListener} that will listen properties changes.
35
     * 
36
     * @param listener
37
     */
38
    public void addPropertyChangeListener(PropertyChangeListener listener);
39
    
40
    /**
41
     * Gets if auto layer synchronize is active or not.
42
     * 
43
     * @see MapControlProperties3D#setAutoLayerSynchronize(boolean)
44
     * @return
45
     */
46
    public boolean getAutoLayerSynchronize();
47
    
48
    /**
49
     * Gets if auto view synchronize is active or not
50
     * 
51
     * @see MapControlProperties3D#setAutoViewPortSynchronize(boolean)
52
     * @return
53
     */
54
    public boolean getAutoViewPortSynchronize();
55
    
56
    /**
57
     * Gets visibility of Blue Marble layer. 
58
     * 
59
     * @see MapControlProperties3D#setBlueMarbleLayerVisibility(boolean)
60
     * @return
61
     */
62
    public boolean getBlueMarbleLayerVisibility();
63
    
64
    /**
65
     * Gets visiblity of default elevation.
66
     * 
67
     * @see MapControlProperties3D#setDefaultElevationVisibility(boolean)
68
     * @return
69
     */
70
    public boolean getDefaultElevationVisibility();
71
    
72
    /**
73
     * Get vertical exaggeration of flat view
74
     * 
75
     * @see MapControlProperties3D#setFlatVerticalExaggeration(double)
76
     * @return
77
     */
78
    public double getFlatVerticalExaggeration();
79
    
80
    /**
81
     * Gets visibility of Nasa Landsat Layer
82
     * 
83
     * @see MapControlProperties3D#setNasaLandsatVisibility(boolean)
84
     * @return
85
     */
86
    public boolean getNasaLandsatLayerVisibility();
87
    
88
    /**
89
     * Gets vertical exaggeration of sphere view
90
     * 
91
     * @see MapControlProperties3D#setSphereVerticalExaggeration(double)
92
     * @return
93
     */
94
    public double getSphereVerticalExaggeration();
95
    
96
    /**
97
     * Removes {@link PropertyChangeListener}.
98
     * 
99
     * @see MapControlProperties3D#addPropertyChangeListener(PropertyChangeListener)
100
     * @param listener
101
     */
102
    public void removePropertyChangeListener(PropertyChangeListener listener);
103
    
104
    /**
105
     * Set auto layer synchronize.
106
     * 
107
     * @param flag True to active auto layer synchronize, false to disable it.
108
     * @see MapControlProperties3D#getAutoLayerSynchronize()
109
     */
110
    public void setAutoLayerSynchronize(boolean flag);
111

  
112
    /**
113
     * Set auto viesport synchronize.
114
     * 
115
     * @param flag True to active auto viewport synchronize, false to disable it.
116
     * @see MapControlProperties3D#getAutoViewSynchronize()
117
     */
118
    public void setAutoViewPortSynchronize(boolean flag);
119

  
120
    /**
121
     * Sets visibility of BlueMarble layer.
122
     * 
123
     * @param visibility
124
     * @see MapControlProperties3D#getBlueMarbleLayerVisibility()
125
     */
126
    public void setBlueMarbleLayerVisibility(boolean visibility);
127

  
128
    /**
129
     * Sets visibility of deafult elevation.
130
     * 
131
     * @param visibility
132
     * @see MapControlProperties3D#getDefaultElevationVisibility()
133
     */
134
    public void setDefaultElevationVisibility(boolean visibility);
135

  
136
    /**
137
     * Sets flat vertical exaggeration.
138
     * 
139
     * @param value
140
     * @see MapControlProperties3D#getFlatVerticalExaggeration()
141
     */
142
    public void setFlatVerticalExaggeration(double value);
143

  
144
    /**
145
     * Sets Nasa Landsat visibility.
146
     * 
147
     * @param visibility
148
     * @see MapControlProperties3D#getNasaLandsatLayerVisibility()
149
     */
150
    public void setNasaLandsatVisibility(boolean visibility);
151

  
152
    /**
153
     * Sets sphere vertical exaggeration.
154
     * 
155
     * @param value
156
     * @see MapControlProperties3D#getSphereVerticalExaggeration()
157
     */
158
    public void setSphereVerticalExaggeration(double value);
159

  
160
}
2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/View3DSwingLocator.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright ? 2007-2015 gvSIG Association
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24

  
25
package org.gvsig.view3d.swing.api;
26

  
27
import org.gvsig.tools.locator.BaseLocator;
28
import org.gvsig.tools.locator.LocatorException;
29

  
30
/**
31
 * This locator is the entry point for the View 3D swing library, providing
32
 * access to View3D swing services through the {@link View3DSwingManager} .
33
 *
34
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
35
 */
36
public class View3DSwingLocator extends BaseLocator {
37

  
38
    private static final String LOCATOR_NAME = "View3DSwingLocator";
39

  
40
    public static final String MANAGER_NAME = "View3D.SwingManager";
41

  
42
    private static final String MANAGER_DESCRIPTION = "View 3D Swing Manager";
43

  
44
    private static final View3DSwingLocator instance = new View3DSwingLocator();
45

  
46
    /**
47
     * Return the singleton instance.
48
     * 
49
     * @return the singleton instance
50
     */
51
    public static View3DSwingLocator getInstance() {
52
        return instance;
53
    }
54

  
55
    public String getLocatorName() {
56
        return LOCATOR_NAME;
57
    }
58

  
59
    /**
60
     * Return a reference to View3DSwingManager.
61
     * 
62
     * @return a reference to View3DSwingManager
63
     * @throws LocatorException
64
     *             if there is no access to the class or the class
65
     *             cannot be instantiated
66
     * @see Locator#get(String)View3DSwingManager
67
     */
68
    public static View3DSwingManager getManager() throws LocatorException {
69
        return (View3DSwingManager) getInstance().get(MANAGER_NAME);
70
    }
71

  
72
    /**
73
     * Registers the Class implementing the View3DSwingLocator interface.
74
     * 
75
     * @param clazz
76
     *            implementing the View3DSwingManager interface
77
     */
78
    public static void registerManager(Class clazz) {
79
        getInstance().register(MANAGER_NAME, MANAGER_DESCRIPTION, clazz);
80
    }
81

  
82
    public static void registerDefaultManager(Class clazz) {
83
        getInstance().registerDefault(MANAGER_NAME, MANAGER_DESCRIPTION, clazz);
84
    }
85

  
86
}
2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/View3DSwingLibrary.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright ? 2007-2015 gvSIG Association
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24

  
25
package org.gvsig.view3d.swing.api;
26

  
27
import org.gvsig.fmap.dal.DALLibrary;
28
import org.gvsig.tools.library.AbstractLibrary;
29
import org.gvsig.tools.library.LibraryException;
30
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
31

  
32
/**
33
 * Library for API initialization and configuration.
34
 *
35
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
36
 */
37
public class View3DSwingLibrary extends AbstractLibrary {
38

  
39
    @Override
40
    public void doRegistration() {
41
        registerAsAPI(View3DSwingLibrary.class);
42
        require(DALLibrary.class);
43
    }
44

  
45
    @Override
46
    protected void doInitialize() throws LibraryException {
47
    }
48

  
49
    @Override
50
    protected void doPostInitialize() throws LibraryException {
51
        View3DSwingManager manager = View3DSwingLocator.getManager();
52
        if (manager == null) {
53
            throw new ReferenceNotRegisteredException(
54
                View3DSwingLocator.MANAGER_NAME, View3DSwingLocator.getInstance());
55
        }
56
    }
57
}
2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
  <parent>
4
    <groupId>org.gvsig</groupId>
5
    <artifactId>org.gvsig.view3d</artifactId>
6
    <version>1.0.9</version>
7
  </parent>
8
  <artifactId>org.gvsig.view3d.swing</artifactId>
9
  <packaging>pom</packaging>
10
  <name>org.gvsig.view3d.swing</name>
11
  <modules>
12
  	<module>org.gvsig.view3d.swing.api</module>
13
  	<module>org.gvsig.view3d.swing.impl</module>
14
  </modules>
15
</project>
2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/org.gvsig.view3d.swing.impl/src/main/resources/layers/LandsatI3WMSLayer2.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
  ~ Copyright (C) 2012 United States Government as represented by the Administrator of the
4
  ~ National Aeronautics and Space Administration.
5
  ~ All Rights Reserved.
6
  -->
7

  
8
<!--$Id: LandsatI3WMSLayer2.xml 1962 2014-04-26 00:30:00Z tgaskins $-->
9
<Layer version="1" layerType="TiledImageLayer">
10
    <DisplayName>i-cubed Landsat</DisplayName>
11
    <Service serviceName="OGC:WMS" version="1.3">
12
        <GetCapabilitiesURL>http://worldwind25.arc.nasa.gov/wms</GetCapabilitiesURL>
13
        <GetMapURL>http://worldwind25.arc.nasa.gov/wms</GetMapURL>
14
        <LayerNames>esat</LayerNames>
15
    </Service>
16
    <RetrievePropertiesFromService>true</RetrievePropertiesFromService>
17
    <!-- day month year hours:minutes:seconds timezone -->
18
    <DataCacheName>Earth/NASA LandSat I3 WMS 2</DataCacheName>
19
    <ImageFormat>image/png</ImageFormat>
20
    <AvailableImageFormats>
21
        <ImageFormat>image/png</ImageFormat>
22
        <ImageFormat>image/jpeg</ImageFormat>
23
    </AvailableImageFormats>
24
    <FormatSuffix>.dds</FormatSuffix>
25
    <NumLevels count="10" numEmpty="4"/>
26
    <TileOrigin>
27
        <LatLon units="degrees" latitude="-90" longitude="-180"/>
28
    </TileOrigin>
29
    <LevelZeroTileDelta>
30
        <LatLon units="degrees" latitude="36" longitude="36"/>
31
    </LevelZeroTileDelta>
32
    <TileSize>
33
        <Dimension width="512" height="512"/>
34
    </TileSize>
35
    <Sector>
36
        <SouthWest>
37
            <LatLon units="degrees" latitude="-90" longitude="-180"/>
38
        </SouthWest>
39
        <NorthEast>
40
            <LatLon units="degrees" latitude="90" longitude="180"/>
41
        </NorthEast>
42
    </Sector>
43
    <UseTransparentTextures>true</UseTransparentTextures>
44
    <!--<ScreenCredit creditType="ScreenImage">-->
45
    <!--<FileName>images/32x32-icon-nasa.png</FileName>-->
46
    <!--<Link>http://worldwind.arc.nasa.gov/java</Link>-->
47
    <!--</ScreenCredit>-->
48
    <RetrievalTimeouts>
49
        <ReadTimeout>
50
            <Time units="milliseconds" value="20000"/>
51
        </ReadTimeout>
52
    </RetrievalTimeouts>
53
</Layer>
2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/org.gvsig.view3d.swing.impl/src/main/resources/layers/BMNGWMSLayer2.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
  ~ Copyright (C) 2012 United States Government as represented by the Administrator of the
4
  ~ National Aeronautics and Space Administration.
5
  ~ All Rights Reserved.
6
  -->
7

  
8
<!--Blue Marble Next generation 2004 + Bathymetry imagery, using the default month (May).-->
9
<!--$Id: BMNGWMSLayer2.xml 1382 2013-05-31 00:37:46Z tgaskins $-->
10
<Layer version="1" layerType="TiledImageLayer">
11
    <DisplayName>Blue Marble May 2004</DisplayName>
12
    <Service serviceName="OGC:WMS" version="1.3">
13
        <GetCapabilitiesURL>http://worldwind25.arc.nasa.gov/wms</GetCapabilitiesURL>
14
        <GetMapURL>http://worldwind25.arc.nasa.gov/wms</GetMapURL>
15
        <LayerNames>BlueMarble-200405</LayerNames>
16
    </Service>
17
    <RetrievePropertiesFromService>true</RetrievePropertiesFromService>
18
    <!-- day month year hours:minutes:seconds timezone -->
19
    <DataCacheName>Earth/BMNGWMS2/BMNG(Shaded + Bathymetry) Tiled - Version 1.1 - 5.2004</DataCacheName>
20
    <ImageFormat>image/jpeg</ImageFormat>
21
    <AvailableImageFormats>
22
        <ImageFormat>image/jpeg</ImageFormat>
23
        <ImageFormat>image/png</ImageFormat>
24
    </AvailableImageFormats>
25
    <FormatSuffix>.dds</FormatSuffix>
26
    <NumLevels count="5" numEmpty="0"/>
27
    <TileOrigin>
28
        <LatLon units="degrees" latitude="-90" longitude="-180"/>
29
    </TileOrigin>
30
    <LevelZeroTileDelta>
31
        <LatLon units="degrees" latitude="36" longitude="36"/>
32
    </LevelZeroTileDelta>
33
    <TileSize>
34
        <Dimension width="512" height="512"/>
35
    </TileSize>
36
    <Sector>
37
        <SouthWest>
38
            <LatLon units="degrees" latitude="-90" longitude="-180"/>
39
        </SouthWest>
40
        <NorthEast>
41
            <LatLon units="degrees" latitude="90" longitude="180"/>
42
        </NorthEast>
43
    </Sector>
44
    <ForceLevelZeroLoads>true</ForceLevelZeroLoads>
45
    <RetainLevelZeroTiles>true</RetainLevelZeroTiles>
46
    <UseTransparentTextures>false</UseTransparentTextures>
47
    <RetrievalTimeouts>
48
        <ReadTimeout>
49
            <Time units="milliseconds" value="30000"/>
50
        </ReadTimeout>
51
    </RetrievalTimeouts>
52
    <!-- The following lines are included just to show how to set the values to other than their defaults -->
53
    <MaxAbsentTileAttempts>2</MaxAbsentTileAttempts>
54
    <MinAbsentTileCheckInterval>1000</MinAbsentTileCheckInterval>
55
</Layer>
2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/org.gvsig.view3d.swing.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
1
org.gvsig.view3d.swing.impl.DefaultView3DSwingLibrary
2.1/tags/org.gvsig.view3d-1.0.9/org.gvsig.view3d.swing/org.gvsig.view3d.swing.impl/src/main/resources/config/view3d.worldwind.layers.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
  ~ Copyright (C) 2012 United States Government as represented by the Administrator of the
4
  ~ National Aeronautics and Space Administration.
5
  ~ All Rights Reserved.
6
  -->
7
<!--$Id: worldwind.layers.xml 1382 2013-05-31 00:37:46Z tgaskins $-->
8
<!--This document specifies the initial layers to load in World Wind-->
9
<!--This list can be overridden by specifying an alternate list in worldwind.xml, or by specifying an-->
10
<!--alternate configuration document-->
11
<!--See the javadoc for the Configuration class for details-->
12
<LayerList>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff