Revision 533
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.lib/org.gvsig.view3d.lib.api/src/main/java/org/gvsig/view3d/lib/api/View3DLibrary.java | ||
---|---|---|
31 | 31 |
|
32 | 32 |
|
33 | 33 |
/** |
34 |
* Library for API initialization and configuration. |
|
35 |
* |
|
34 | 36 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a> |
35 |
* |
|
36 | 37 |
*/ |
37 | 38 |
public class View3DLibrary extends AbstractLibrary { |
38 | 39 |
|
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.lib/org.gvsig.view3d.lib.api/src/main/java/org/gvsig/view3d/lib/api/View3DManager.java | ||
---|---|---|
27 | 27 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
28 | 28 |
import org.gvsig.view3d.lib.api.properties.LayerProperties3D; |
29 | 29 |
|
30 |
|
|
31 | 30 |
/** |
31 |
* This class is responsible of the management of the application logic. |
|
32 |
* It is the library's main entry point, and provides all the |
|
33 |
* services to manage logic components. |
|
34 |
* |
|
32 | 35 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a> |
33 |
* |
|
34 | 36 |
*/ |
35 | 37 |
public interface View3DManager { |
36 |
|
|
38 |
|
|
39 |
/** |
|
40 |
* Gets 3D properties of the layer |
|
41 |
* |
|
42 |
* @param layer |
|
43 |
* @return |
|
44 |
*/ |
|
37 | 45 |
public LayerProperties3D getLayerProperties(FLayer layer); |
38 |
|
|
46 |
|
|
47 |
/** |
|
48 |
* Sets 3D properties to the layer |
|
49 |
* |
|
50 |
* @param layer |
|
51 |
* @param properties |
|
52 |
*/ |
|
39 | 53 |
public void setLayerProperties(FLayer layer, LayerProperties3D properties); |
40 | 54 |
} |
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.lib/org.gvsig.view3d.lib.api/src/main/java/org/gvsig/view3d/lib/api/properties/VectorialLayerProperties3D.java | ||
---|---|---|
1 | 1 |
package org.gvsig.view3d.lib.api.properties; |
2 | 2 |
|
3 | 3 |
/** |
4 |
* This class defines the layer 3D vectorial properties. |
|
4 | 5 |
* |
5 | 6 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a> |
6 | 7 |
* |
... | ... | |
8 | 9 |
public interface VectorialLayerProperties3D extends LayerProperties3D { |
9 | 10 |
|
10 | 11 |
/** |
12 |
* Gets elevation field that defines elevation values. |
|
11 | 13 |
* |
12 | 14 |
* @return |
13 | 15 |
*/ |
14 | 16 |
public String getElevationField(); |
15 | 17 |
|
16 | 18 |
/** |
19 |
* Gets if layer will be loaded as vectorial rasterized. |
|
17 | 20 |
* |
18 | 21 |
* @return |
19 | 22 |
*/ |
20 | 23 |
public boolean getRasterized(); |
21 | 24 |
|
22 | 25 |
/** |
26 |
* Sets field elevation that defines elevation values. |
|
23 | 27 |
* |
24 | 28 |
* @param field |
25 | 29 |
*/ |
26 | 30 |
public void setElevationField(String field); |
27 | 31 |
|
28 | 32 |
/** |
33 |
* Sets if layer will be loaded as vectorial rasterized. |
|
29 | 34 |
* |
30 | 35 |
* @param rasterized |
31 | 36 |
*/ |
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.lib/org.gvsig.view3d.lib.api/src/main/java/org/gvsig/view3d/lib/api/properties/LayerProperties3D.java | ||
---|---|---|
3 | 3 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
4 | 4 |
|
5 | 5 |
/** |
6 |
* This class defines the layer 3D properties. |
|
6 | 7 |
* |
7 | 8 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a> |
8 | 9 |
* |
... | ... | |
10 | 11 |
public interface LayerProperties3D{ |
11 | 12 |
|
12 | 13 |
/** |
14 |
* Gets if layer will be loaded as elevation. |
|
13 | 15 |
* |
14 | 16 |
* @return |
15 | 17 |
*/ |
16 | 18 |
public boolean getElevation(); |
17 | 19 |
|
18 | 20 |
/** |
21 |
* Gets the units of elevation values. |
|
19 | 22 |
* |
20 | 23 |
* @return |
21 | 24 |
*/ |
22 | 25 |
public String getElevationUnits(); |
23 | 26 |
|
24 | 27 |
/** |
28 |
* Gets layer of this 3D properties. |
|
25 | 29 |
* |
26 | 30 |
* @return |
27 | 31 |
*/ |
28 | 32 |
public FLayer getLayer(); |
29 | 33 |
|
30 | 34 |
/** |
35 |
* Gets the level zero resolution multiplier. The level zero resolution |
|
36 |
* multiplier indicates the relationship between resolution showed at zero |
|
37 |
* level. |
|
31 | 38 |
* |
32 | 39 |
* @return |
33 | 40 |
*/ |
34 | 41 |
public double getLevelZeroResolutionMultiplier(); |
35 | 42 |
|
36 | 43 |
/** |
44 |
* Gets the maximum level of deatil showed. |
|
37 | 45 |
* |
38 | 46 |
* @return |
39 | 47 |
*/ |
40 | 48 |
public int getMaxLevel(); |
41 | 49 |
|
42 | 50 |
/** |
51 |
* Gets the minimum level of detail showed. |
|
43 | 52 |
* |
44 | 53 |
* @return |
45 | 54 |
*/ |
46 | 55 |
public int getMinLevel(); |
47 | 56 |
|
48 | 57 |
/** |
58 |
* Gets NoData value. |
|
49 | 59 |
* |
50 | 60 |
* @return |
51 | 61 |
*/ |
52 | 62 |
public double getNoDataValue(); |
53 | 63 |
|
54 | 64 |
/** |
65 |
* Gets height of tile. |
|
55 | 66 |
* |
56 | 67 |
* @return |
57 | 68 |
*/ |
58 | 69 |
public int getTileHeight(); |
59 | 70 |
|
60 | 71 |
/** |
61 |
* |
|
72 |
* Gets width of tile. |
|
73 |
* |
|
62 | 74 |
* @return |
63 | 75 |
*/ |
64 | 76 |
public int getTileWidth(); |
65 | 77 |
|
66 | 78 |
/** |
79 |
* Sets the elevation mode. |
|
67 | 80 |
* |
68 | 81 |
* @param elevation |
69 | 82 |
*/ |
70 | 83 |
public void setElevation(boolean elevation); |
71 | 84 |
|
72 | 85 |
/** |
86 |
* Sets the units of elevation values. |
|
73 | 87 |
* |
74 | 88 |
* @param units |
75 | 89 |
*/ |
76 | 90 |
public void setElevationUnits(String units); |
77 | 91 |
|
78 | 92 |
/** |
93 |
* Sets layer of this 3D properties. |
|
79 | 94 |
* |
80 | 95 |
* @param layer |
81 | 96 |
*/ |
82 | 97 |
public void setLayer(FLayer layer); |
83 | 98 |
|
84 | 99 |
/** |
100 |
* Sets level zero resolution multiplier. |
|
85 | 101 |
* |
86 | 102 |
* @param multiplier |
103 |
* @see LayerProperties3D#getLevelZeroResolutionMultiplier() |
|
87 | 104 |
*/ |
88 | 105 |
public void setLevelZeroResolutionMultiplier(double multiplier); |
89 | 106 |
|
90 | 107 |
/** |
108 |
* Set maximum level of detail showed. |
|
91 | 109 |
* |
92 | 110 |
* @param maxLevel |
93 | 111 |
*/ |
94 | 112 |
public void setMaxLevel(int maxLevel); |
95 | 113 |
|
96 | 114 |
/** |
115 |
* Set minimum level of detail showed. |
|
97 | 116 |
* |
98 | 117 |
* @param minLevel |
99 | 118 |
*/ |
100 | 119 |
public void setMinLevel(int minLevel); |
101 | 120 |
|
102 | 121 |
/** |
122 |
* Set NoData value. |
|
103 | 123 |
* |
104 | 124 |
* @param noDataValue |
105 | 125 |
*/ |
106 | 126 |
public void setNoDataValue(double noDataValue); |
107 | 127 |
|
108 | 128 |
/** |
129 |
* Sets height of tile |
|
109 | 130 |
* |
110 | 131 |
* @param height |
111 | 132 |
*/ |
112 | 133 |
public void setTileHeight(int height); |
113 | 134 |
|
114 | 135 |
/** |
136 |
* Sets width of tile |
|
115 | 137 |
* |
116 | 138 |
* @param width |
117 | 139 |
*/ |
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.lib/org.gvsig.view3d.lib.api/src/main/java/org/gvsig/view3d/lib/api/properties/RasterLayerProperties3D.java | ||
---|---|---|
1 | 1 |
package org.gvsig.view3d.lib.api.properties; |
2 | 2 |
|
3 | 3 |
/** |
4 |
* This class defines the layer 3D raster properties. |
|
4 | 5 |
* |
5 | 6 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a> |
6 | 7 |
* |
2.1/trunk/org.gvsig.view3d/pom.xml | ||
---|---|---|
8 | 8 |
<parent> |
9 | 9 |
<groupId>org.gvsig</groupId> |
10 | 10 |
<artifactId>org.gvsig.desktop</artifactId> |
11 |
<version>2.0.96</version>
|
|
11 |
<version>2.0.97-SNAPSHOT</version>
|
|
12 | 12 |
</parent> |
13 | 13 |
<url>http://devel.gvsig.org/sites/org.gvsig.view3d/${project.version}</url> |
14 | 14 |
<scm> |
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.impl/src/main/java/org/gvsig/view3d/swing/impl/properties/DefaultViewProperties3DPanel.java | ||
---|---|---|
29 | 29 |
getAutoLayerSynchronizeCheckBox().setSelected( |
30 | 30 |
properties.getAutoLayerSynchronize()); |
31 | 31 |
getAutoViewPortSynchronizeCheckBox().setSelected( |
32 |
properties.getAutoViewSynchronize()); |
|
32 |
properties.getAutoViewPortSynchronize());
|
|
33 | 33 |
getShowBlueMarbleLayerCheckBox().setSelected( |
34 | 34 |
properties.getBlueMarbleLayerVisibility()); |
35 | 35 |
getShowNasaLandsatLayerCheckBox().setSelected( |
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.impl/src/main/java/org/gvsig/view3d/swing/impl/properties/DefaultMapControlProperties3D.java | ||
---|---|---|
30 | 30 |
return autoLayerShynchornize; |
31 | 31 |
} |
32 | 32 |
|
33 |
public boolean getAutoViewSynchronize() { |
|
33 |
public boolean getAutoViewPortSynchronize() {
|
|
34 | 34 |
return autoViewPortSynchronize; |
35 | 35 |
} |
36 | 36 |
|
... | ... | |
142 | 142 |
state.set(AUTO_LAYER_SYNCHRONIZE_PROPERTY_NAME, |
143 | 143 |
getAutoLayerSynchronize()); |
144 | 144 |
state.set(AUTO_VIEWPORT_SYNCHRONIZE_PROPERTY_NAME, |
145 |
getAutoViewSynchronize()); |
|
145 |
getAutoViewPortSynchronize());
|
|
146 | 146 |
state.set(FLAT_VERTICAL_EXAGGERATION_PROPERTY_NAME, |
147 | 147 |
getFlatVerticalExaggeration()); |
148 | 148 |
state.set(SPHERE_VERTICAL_EXAGGERATION_PROPERTY_NAME, |
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.impl/src/main/java/org/gvsig/view3d/swing/impl/DefaultSynchronizer.java | ||
---|---|---|
217 | 217 |
MapControlProperties3D properties = |
218 | 218 |
mapControl3D.getProperties(); |
219 | 219 |
boolean autoViewSynchronize = |
220 |
properties.getAutoViewSynchronize(); |
|
220 |
properties.getAutoViewPortSynchronize();
|
|
221 | 221 |
if (autoViewSynchronize) { |
222 | 222 |
synchronizeViewPorts(); |
223 | 223 |
} |
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/properties/ViewProperties3DPanel.java | ||
---|---|---|
3 | 3 |
import org.gvsig.tools.swing.api.Component; |
4 | 4 |
|
5 | 5 |
/** |
6 |
* This class represents the available API to get the indicated values at panel. |
|
6 | 7 |
* |
7 | 8 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a> |
8 | 9 |
* |
9 | 10 |
*/ |
10 |
public interface ViewProperties3DPanel extends Component{ |
|
11 |
public interface ViewProperties3DPanel extends Component { |
|
12 |
|
|
11 | 13 |
/** |
14 |
* Gets auto layer synchronize. |
|
12 | 15 |
* |
13 | 16 |
* @return |
14 | 17 |
*/ |
15 | 18 |
public boolean getAutoLayerSynchronize(); |
16 |
|
|
19 |
|
|
17 | 20 |
/** |
21 |
* Gets auto view port synchronize. |
|
18 | 22 |
* |
19 | 23 |
* @return |
20 | 24 |
*/ |
21 | 25 |
public boolean getAutoViewPortSynchronize(); |
22 |
|
|
26 |
|
|
23 | 27 |
/** |
28 |
* Gets if Blue Marble is showing. |
|
24 | 29 |
* |
25 | 30 |
* @return |
26 | 31 |
*/ |
27 | 32 |
public boolean getShowBlueMarble(); |
28 |
|
|
33 |
|
|
29 | 34 |
/** |
35 |
* Gets if default elevation is showing. |
|
30 | 36 |
* |
31 | 37 |
* @return |
32 | 38 |
*/ |
33 | 39 |
public boolean getShowDefaultElevation(); |
34 |
|
|
40 |
|
|
35 | 41 |
/** |
42 |
* Gets if Nasa Landsat is showing. |
|
36 | 43 |
* |
37 | 44 |
* @return |
38 | 45 |
*/ |
39 | 46 |
public boolean getShowNasaLandsat(); |
40 |
|
|
47 |
|
|
41 | 48 |
/** |
49 |
* Gets vertical exaggertion of flat 3D view. |
|
42 | 50 |
* |
43 | 51 |
* @return |
44 | 52 |
*/ |
45 | 53 |
public double getFlatVerticalExaggeration(); |
46 |
|
|
54 |
|
|
47 | 55 |
/** |
56 |
* Gets vertical exaggeration of sphere 3D view. |
|
48 | 57 |
* |
49 | 58 |
* @return |
50 | 59 |
*/ |
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/properties/LayerProperties3DPanel.java | ||
---|---|---|
4 | 4 |
import org.gvsig.tools.swing.api.Component; |
5 | 5 |
|
6 | 6 |
/** |
7 |
* This class represents the available API to get the indicated values at panel. |
|
7 | 8 |
* |
8 | 9 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a> |
9 | 10 |
* |
... | ... | |
11 | 12 |
public interface LayerProperties3DPanel extends Component { |
12 | 13 |
|
13 | 14 |
/** |
15 |
* Gets elevation field that has elevation values. |
|
14 | 16 |
* |
15 | 17 |
* @return |
16 | 18 |
*/ |
17 | 19 |
public String getElevationField(); |
18 | 20 |
|
19 | 21 |
/** |
22 |
* Gets elevation units of elevation values. |
|
20 | 23 |
* |
21 | 24 |
* @return |
22 | 25 |
*/ |
23 | 26 |
public String getElevationUnits(); |
24 | 27 |
|
25 | 28 |
/** |
29 |
* Gets layer of model panel. |
|
26 | 30 |
* |
31 |
* @see LayerProperties3DPanel#setLayer(FLayer) |
|
27 | 32 |
* @return |
28 | 33 |
*/ |
29 | 34 |
public FLayer getLayer(); |
30 | 35 |
|
31 | 36 |
/** |
37 |
* Gets the load mode of layer. |
|
32 | 38 |
* |
33 | 39 |
* @return |
34 | 40 |
*/ |
35 | 41 |
public String getLoadMode(); |
36 | 42 |
|
37 | 43 |
/** |
44 |
* Gets maximum level of detail showed. |
|
38 | 45 |
* |
39 | 46 |
* @return |
40 | 47 |
*/ |
41 | 48 |
public int getMaxLevel(); |
42 | 49 |
|
43 | 50 |
/** |
51 |
* Gets minimum level of detail showed. |
|
44 | 52 |
* |
45 | 53 |
* @return |
46 | 54 |
*/ |
47 | 55 |
public int getMinLevel(); |
48 | 56 |
|
49 | 57 |
/** |
58 |
* Gets NoData value |
|
50 | 59 |
* |
51 | 60 |
* @return |
52 | 61 |
*/ |
53 | 62 |
public double getNoDataValue(); |
54 | 63 |
|
55 | 64 |
/** |
65 |
* Gets resolution multiplier at zero level. |
|
56 | 66 |
* |
57 | 67 |
* @return |
58 | 68 |
*/ |
59 | 69 |
public double getResolutionMultiplier(); |
60 | 70 |
|
61 | 71 |
/** |
72 |
* Gets tile heigth |
|
62 | 73 |
* |
63 | 74 |
* @return |
64 | 75 |
*/ |
65 | 76 |
public int getTileHeight(); |
66 | 77 |
|
67 | 78 |
/** |
79 |
* Get tile width |
|
68 | 80 |
* |
69 | 81 |
* @return |
70 | 82 |
*/ |
71 | 83 |
public int getTileWidth(); |
72 | 84 |
|
73 | 85 |
/** |
86 |
* Sets layer of model. |
|
74 | 87 |
* |
75 | 88 |
* @param layer |
89 |
* @see LayerProperties3DPanel#getLayer() |
|
76 | 90 |
*/ |
77 | 91 |
public void setLayer(FLayer layer); |
78 | 92 |
} |
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/properties/GeneralProperties3D.java | ||
---|---|---|
4 | 4 |
import java.io.File; |
5 | 5 |
|
6 | 6 |
/** |
7 |
* This class represents the general properties of 3D library. |
|
7 | 8 |
* |
8 | 9 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a> |
9 | 10 |
* |
10 | 11 |
*/ |
11 | 12 |
public interface GeneralProperties3D { |
12 |
|
|
13 |
|
|
14 |
/** |
|
15 |
* Adds {@link PropertyChangeListener} that will listen properties changes. |
|
16 |
* |
|
17 |
* @param listener |
|
18 |
* @see GeneralProperties3D#removePropertyChangeListener(PropertyChangeListener) |
|
19 |
*/ |
|
13 | 20 |
public void addPropertyChangeListener(PropertyChangeListener listener); |
14 | 21 |
|
15 |
public boolean getViewPortAnimation(); |
|
16 |
|
|
22 |
/** |
|
23 |
* Gets the atmosphere visibility. |
|
24 |
* |
|
25 |
* @see GeneralProperties3D#setAtmosphereVisibility(boolean) |
|
26 |
* @return visibility of atmosphere component. |
|
27 |
*/ |
|
17 | 28 |
public boolean getAtmosphereVisibility(); |
18 | 29 |
|
30 |
/** |
|
31 |
* Gets path of tile cache. |
|
32 |
* |
|
33 |
* @see GeneralProperties3D#setCachePath(File) |
|
34 |
* @return |
|
35 |
*/ |
|
19 | 36 |
public File getCachePath(); |
20 | 37 |
|
38 |
/** |
|
39 |
* Gets the default view heigth of 3D views. |
|
40 |
* |
|
41 |
* @see GeneralProperties3D#setDefaultViewHeight(int) |
|
42 |
* @return Default height of 3D views. |
|
43 |
*/ |
|
21 | 44 |
public int getDefaultViewHeight(); |
22 | 45 |
|
46 |
/** |
|
47 |
* Gets the default view width of 3D views. |
|
48 |
* |
|
49 |
* @see GeneralProperties3D#setDefaultViewWidth(int) |
|
50 |
* @return Default width of 3D views. |
|
51 |
*/ |
|
23 | 52 |
public int getDefaultViewWidth(); |
24 | 53 |
|
54 |
/** |
|
55 |
* Gets minimap visibility. |
|
56 |
* |
|
57 |
* @see GeneralProperties3D#setMinimapVisibility(boolean) |
|
58 |
* @return Visibility of minimap. |
|
59 |
*/ |
|
25 | 60 |
public boolean getMinimapVisibility(); |
26 | 61 |
|
62 |
/** |
|
63 |
* Gets north indicator visibility. |
|
64 |
* |
|
65 |
* @see GeneralProperties3D#setNorthIndicatorVisibility(boolean) |
|
66 |
* @return Visibility of north indicator component. |
|
67 |
*/ |
|
27 | 68 |
public boolean getNorthIndicatorVisibility(); |
28 |
|
|
69 |
|
|
70 |
/** |
|
71 |
* Get visibility of scale component. |
|
72 |
* |
|
73 |
* @see GeneralProperties3D#setScaleVisibility(boolean) |
|
74 |
* @return Visibility of scale component. |
|
75 |
*/ |
|
76 |
public boolean getScaleVisibility(); |
|
77 |
|
|
78 |
/** |
|
79 |
* Get starts background visibility. |
|
80 |
* |
|
81 |
* @see GeneralProperties3D#setStarsBackgroundVisibility(boolean) |
|
82 |
* @return Visibility of starts background component. |
|
83 |
*/ |
|
29 | 84 |
public boolean getStarsBackgroundVisibility(); |
30 | 85 |
|
31 |
public boolean getScaleVisibility(); |
|
32 |
|
|
86 |
/** |
|
87 |
* Gets if the view port synchronize is animated |
|
88 |
* |
|
89 |
* @see GeneralProperties3D#setViewPortAnimation(boolean) |
|
90 |
* @return True if view port synchronize is animated, false if it is not |
|
91 |
* animated. |
|
92 |
*/ |
|
93 |
public boolean getViewPortAnimation(); |
|
94 |
|
|
95 |
/** |
|
96 |
* Removes {@link PropertyChangeListener}. |
|
97 |
* |
|
98 |
* @param listener |
|
99 |
* @see GeneralProperties3D#addPropertyChangeListener(PropertyChangeListener) |
|
100 |
*/ |
|
33 | 101 |
public void removePropertyChangeListener(PropertyChangeListener listener); |
34 | 102 |
|
35 |
public void setViewPortAnimation(boolean flag); |
|
36 |
|
|
103 |
/** |
|
104 |
* Sets visibility of atmosphere component. |
|
105 |
* |
|
106 |
* @param visibility |
|
107 |
* @see GeneralProperties3D#getAtmosphereVisibility() |
|
108 |
*/ |
|
37 | 109 |
public void setAtmosphereVisibility(boolean visibility); |
38 | 110 |
|
111 |
/** |
|
112 |
* Sets path of tile cache. |
|
113 |
* |
|
114 |
* @param path |
|
115 |
* @see GeneralProperties3D#getCachePath() |
|
116 |
*/ |
|
39 | 117 |
public void setCachePath(File path); |
40 | 118 |
|
119 |
/** |
|
120 |
* Sets default view height. |
|
121 |
* |
|
122 |
* @param height |
|
123 |
* @see GeneralProperties3D#getDefaultViewHeight() |
|
124 |
*/ |
|
41 | 125 |
public void setDefaultViewHeight(int height); |
42 | 126 |
|
127 |
/** |
|
128 |
* Sets default view width. |
|
129 |
* |
|
130 |
* @param width |
|
131 |
* @see GeneralProperties3D#getDefaultViewWidth() |
|
132 |
*/ |
|
43 | 133 |
public void setDefaultViewWidth(int width); |
44 | 134 |
|
135 |
/** |
|
136 |
* Sets visibility of miniMap component. |
|
137 |
* |
|
138 |
* @param visibility |
|
139 |
* @see GeneralProperties3D#getMinimapVisibility() |
|
140 |
*/ |
|
45 | 141 |
public void setMinimapVisibility(boolean visibility); |
46 | 142 |
|
143 |
/** |
|
144 |
* Sets visibility of north indicator component. |
|
145 |
* |
|
146 |
* @param visibility |
|
147 |
* @see GeneralProperties3D#getNorthIndicatorVisibility() |
|
148 |
*/ |
|
47 | 149 |
public void setNorthIndicatorVisibility(boolean visibility); |
48 | 150 |
|
151 |
/** |
|
152 |
* Sets visibility of scale component. |
|
153 |
* |
|
154 |
* @param visibility |
|
155 |
* @see GeneralProperties3D#getScaleVisibility() |
|
156 |
*/ |
|
157 |
public void setScaleVisibility(boolean visibility); |
|
158 |
|
|
159 |
/** |
|
160 |
* Sets visibility of starts background component. |
|
161 |
* |
|
162 |
* @param visibility |
|
163 |
* @see GeneralProperties3D#getStarsBackgroundVisibility() |
|
164 |
*/ |
|
49 | 165 |
public void setStarsBackgroundVisibility(boolean visibility); |
50 |
|
|
51 |
public void setScaleVisibility(boolean visibility); |
|
166 |
|
|
167 |
/** |
|
168 |
* Sets if the view port synchronize is animated or not. |
|
169 |
* |
|
170 |
* @param flag |
|
171 |
* @see GeneralProperties3D#getViewPortAnimation() |
|
172 |
*/ |
|
173 |
public void setViewPortAnimation(boolean flag); |
|
52 | 174 |
} |
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/properties/GeneralProperties3DPanel.java | ||
---|---|---|
3 | 3 |
import org.gvsig.tools.swing.api.Component; |
4 | 4 |
|
5 | 5 |
/** |
6 |
* This class represents the available API to get the indicated values at panel. |
|
6 | 7 |
* |
7 | 8 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a> |
8 | 9 |
* |
9 | 10 |
*/ |
10 |
public interface GeneralProperties3DPanel extends Component{ |
|
11 |
|
|
11 |
public interface GeneralProperties3DPanel extends Component {
|
|
12 |
|
|
12 | 13 |
/** |
14 |
* Gets atmospehere visibility. |
|
13 | 15 |
* |
14 | 16 |
* @return |
15 | 17 |
*/ |
16 | 18 |
public boolean getAtmosphereVisibility(); |
17 |
|
|
19 |
|
|
18 | 20 |
/** |
21 |
* Gets cache path indicated. |
|
19 | 22 |
* |
20 | 23 |
* @return |
21 | 24 |
*/ |
22 | 25 |
public String getCachePath(); |
23 |
|
|
26 |
|
|
24 | 27 |
/** |
28 |
* Gets default height. |
|
25 | 29 |
* |
26 | 30 |
* @return |
27 | 31 |
*/ |
28 | 32 |
public int getDefaultHeight(); |
29 |
|
|
33 |
|
|
30 | 34 |
/** |
35 |
* Gets default width. |
|
31 | 36 |
* |
32 | 37 |
* @return |
33 | 38 |
*/ |
34 | 39 |
public int getDefaultWidth(); |
35 |
|
|
40 |
|
|
36 | 41 |
/** |
42 |
* Get minimap visibility. |
|
37 | 43 |
* |
38 | 44 |
* @return |
39 | 45 |
*/ |
40 | 46 |
public boolean getMinimapVisibility(); |
41 |
|
|
47 |
|
|
42 | 48 |
/** |
49 |
* Gets north indicator visibility. |
|
43 | 50 |
* |
44 | 51 |
* @return |
45 | 52 |
*/ |
46 | 53 |
public boolean getNorthIndicatorVisibility(); |
47 |
|
|
54 |
|
|
48 | 55 |
/** |
56 |
* Gets scale visibility. |
|
49 | 57 |
* |
50 | 58 |
* @return |
51 | 59 |
*/ |
52 | 60 |
public boolean getScaleVisiblity(); |
53 |
|
|
61 |
|
|
54 | 62 |
/** |
63 |
* Gets starts background visibility |
|
55 | 64 |
* |
56 | 65 |
* @return |
57 | 66 |
*/ |
58 | 67 |
public boolean getStarsBackgroundVisiblity(); |
59 |
|
|
68 |
|
|
60 | 69 |
/** |
70 |
* Get view port animation. |
|
61 | 71 |
* |
62 | 72 |
* @return |
63 | 73 |
*/ |
64 | 74 |
public boolean getViewPortAnimation(); |
65 |
|
|
75 |
|
|
66 | 76 |
} |
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/properties/MapControlProperties3D.java | ||
---|---|---|
3 | 3 |
import java.beans.PropertyChangeListener; |
4 | 4 |
|
5 | 5 |
import org.gvsig.tools.persistence.Persistent; |
6 |
import org.gvsig.view3d.swing.api.MapControl3D; |
|
6 | 7 |
|
7 | 8 |
/** |
9 |
* This class represents the properties of {@link MapControl3D}. |
|
8 | 10 |
* |
9 | 11 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a> |
10 | 12 |
* |
... | ... | |
27 | 29 |
"nasaLandsatLayerVisibility"; |
28 | 30 |
public final String DEFAULT_ELEVATION_VISIBILITY_PROPERTY_NAME = |
29 | 31 |
"defaultElevationVisibility"; |
30 |
|
|
32 |
|
|
33 |
/** |
|
34 |
* Adds {@link PropertyChangeListener} that will listen properties changes. |
|
35 |
* |
|
36 |
* @param listener |
|
37 |
*/ |
|
31 | 38 |
public void addPropertyChangeListener(PropertyChangeListener listener); |
32 |
|
|
39 |
|
|
40 |
/** |
|
41 |
* Gets if auto layer synchronize is active or not. |
|
42 |
* |
|
43 |
* @see MapControlProperties3D#setAutoLayerSynchronize(boolean) |
|
44 |
* @return |
|
45 |
*/ |
|
33 | 46 |
public boolean getAutoLayerSynchronize(); |
34 |
|
|
35 |
public boolean getAutoViewSynchronize(); |
|
36 |
|
|
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 |
*/ |
|
37 | 62 |
public boolean getBlueMarbleLayerVisibility(); |
38 |
|
|
63 |
|
|
64 |
/** |
|
65 |
* Gets visiblity of default elevation. |
|
66 |
* |
|
67 |
* @see MapControlProperties3D#setDefaultElevationVisibility(boolean) |
|
68 |
* @return |
|
69 |
*/ |
|
39 | 70 |
public boolean getDefaultElevationVisibility(); |
40 |
|
|
71 |
|
|
72 |
/** |
|
73 |
* Get vertical exaggeration of flat view |
|
74 |
* |
|
75 |
* @see MapControlProperties3D#setFlatVerticalExaggeration(double) |
|
76 |
* @return |
|
77 |
*/ |
|
41 | 78 |
public double getFlatVerticalExaggeration(); |
42 |
|
|
79 |
|
|
80 |
/** |
|
81 |
* Gets visibility of Nasa Landsat Layer |
|
82 |
* |
|
83 |
* @see MapControlProperties3D#setNasaLandsatVisibility(boolean) |
|
84 |
* @return |
|
85 |
*/ |
|
43 | 86 |
public boolean getNasaLandsatLayerVisibility(); |
44 |
|
|
87 |
|
|
88 |
/** |
|
89 |
* Gets vertical exaggeration of sphere view |
|
90 |
* |
|
91 |
* @see MapControlProperties3D#setSphereVerticalExaggeration(double) |
|
92 |
* @return |
|
93 |
*/ |
|
45 | 94 |
public double getSphereVerticalExaggeration(); |
46 |
|
|
95 |
|
|
96 |
/** |
|
97 |
* Removes {@link PropertyChangeListener}. |
|
98 |
* |
|
99 |
* @see MapControlProperties3D#addPropertyChangeListener(PropertyChangeListener) |
|
100 |
* @param listener |
|
101 |
*/ |
|
47 | 102 |
public void removePropertyChangeListener(PropertyChangeListener listener); |
48 |
|
|
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 |
*/ |
|
49 | 110 |
public void setAutoLayerSynchronize(boolean flag); |
50 | 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 |
*/ |
|
51 | 118 |
public void setAutoViewPortSynchronize(boolean flag); |
52 | 119 |
|
120 |
/** |
|
121 |
* Sets visibility of BlueMarble layer. |
|
122 |
* |
|
123 |
* @param visibility |
|
124 |
* @see MapControlProperties3D#getBlueMarbleLayerVisibility() |
|
125 |
*/ |
|
53 | 126 |
public void setBlueMarbleLayerVisibility(boolean visibility); |
54 | 127 |
|
128 |
/** |
|
129 |
* Sets visibility of deafult elevation. |
|
130 |
* |
|
131 |
* @param visibility |
|
132 |
* @see MapControlProperties3D#getDefaultElevationVisibility() |
|
133 |
*/ |
|
55 | 134 |
public void setDefaultElevationVisibility(boolean visibility); |
56 | 135 |
|
136 |
/** |
|
137 |
* Sets flat vertical exaggeration. |
|
138 |
* |
|
139 |
* @param value |
|
140 |
* @see MapControlProperties3D#getFlatVerticalExaggeration() |
|
141 |
*/ |
|
57 | 142 |
public void setFlatVerticalExaggeration(double value); |
58 | 143 |
|
144 |
/** |
|
145 |
* Sets Nasa Landsat visibility. |
|
146 |
* |
|
147 |
* @param visibility |
|
148 |
* @see MapControlProperties3D#getNasaLandsatLayerVisibility() |
|
149 |
*/ |
|
59 | 150 |
public void setNasaLandsatVisibility(boolean visibility); |
60 | 151 |
|
152 |
/** |
|
153 |
* Sets sphere vertical exaggeration. |
|
154 |
* |
|
155 |
* @param value |
|
156 |
* @see MapControlProperties3D#getSphereVerticalExaggeration() |
|
157 |
*/ |
|
61 | 158 |
public void setSphereVerticalExaggeration(double value); |
62 | 159 |
|
63 | 160 |
} |
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/View3DPanel.java | ||
---|---|---|
36 | 36 |
public interface View3DPanel extends Component { |
37 | 37 |
|
38 | 38 |
/** |
39 |
* Sets full screen mode. |
|
39 | 40 |
* |
40 | 41 |
*/ |
41 | 42 |
public void fullScreen(); |
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/View3DSwingManager.java | ||
---|---|---|
48 | 48 |
public enum TYPE { |
49 | 49 |
SPHERE, FLAT |
50 | 50 |
} |
51 |
|
|
51 |
|
|
52 | 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}. |
|
53 | 56 |
* |
54 |
* @param mapControl3D
|
|
55 |
* @param title
|
|
56 |
* @return |
|
57 |
* @param properties
|
|
58 |
* Model of general 3D properties panel.
|
|
59 |
* @return general 3D properties panel.
|
|
57 | 60 |
*/ |
58 |
public View3DPanel createView3DPanel(MapControl3D mapControl3D, String title); |
|
61 |
public GeneralProperties3DPanel createGeneralProperties3DPanel( |
|
62 |
GeneralProperties3D properties); |
|
59 | 63 |
|
60 | 64 |
/** |
61 |
* Creates a <code>View3DPanel</code> with a {@link MapControl3D}. |
|
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}. |
|
62 | 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 |
* |
|
63 | 81 |
* @param theMapContext |
64 | 82 |
* associated <code>MapContext</code> of |
65 | 83 |
* <code>MapControl3D</code> |
66 |
* @param title |
|
67 |
* Title of window |
|
68 | 84 |
* @param type |
69 | 85 |
* Type of <code>MapControl3D</code>. See {@link TYPE}. |
70 | 86 |
* @param viewProperties |
71 | 87 |
* View properties to register this <code>MapControl3D</code> |
72 |
* @see View3DSwingManager#createMapControl3D(MapContext, TYPE) |
|
73 |
* @return |
|
88 |
* @see View3DSwingManager#createView3DPanel(MapControl3D, String) |
|
89 |
* @see View3DSwingManager#createViewProperties3DPanel(MapControlProperties3D) |
|
90 |
* @return an instance of <code>MapControl3D</code> ready to be shown. |
|
74 | 91 |
*/ |
75 |
public View3DPanel createView3DPanel(MapContext theMapContext,String title, TYPE type,
|
|
92 |
public MapControl3D createMapControl3D(MapContext theMapContext, TYPE type,
|
|
76 | 93 |
ExtendedPropertiesSupport viewProperties); |
77 | 94 |
|
78 | 95 |
/** |
79 |
* Registers and creatres a <code>MapControl3D</code> as from |
|
80 |
* {@link MapContext} {@link TYPE}. When an {@link MapControl3D} is created, |
|
81 |
* it automatically adds all available and visible layers of |
|
82 |
* <code>MapControl</code>. |
|
96 |
* Creates a <code>View3DPanel</code> with a {@link MapControl3D}. |
|
83 | 97 |
* |
84 | 98 |
* @param theMapContext |
85 | 99 |
* associated <code>MapContext</code> of |
86 | 100 |
* <code>MapControl3D</code> |
101 |
* @param title |
|
102 |
* Title of window |
|
87 | 103 |
* @param type |
88 | 104 |
* Type of <code>MapControl3D</code>. See {@link TYPE}. |
89 | 105 |
* @param viewProperties |
90 | 106 |
* View properties to register this <code>MapControl3D</code> |
91 |
* @return an instance of <code>MapControl3D</code> ready to be shown. |
|
107 |
* @see View3DSwingManager#createMapControl3D(MapContext, TYPE) |
|
108 |
* @see View3DSwingManager#createView3DPanel(MapControl3D, String) |
|
109 |
* @return |
|
92 | 110 |
*/ |
93 |
public MapControl3D createMapControl3D(MapContext theMapContext, TYPE type,
|
|
94 |
ExtendedPropertiesSupport viewProperties); |
|
111 |
public View3DPanel createView3DPanel(MapContext theMapContext,
|
|
112 |
String title, TYPE type, ExtendedPropertiesSupport viewProperties);
|
|
95 | 113 |
|
96 | 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 |
/** |
|
97 | 150 |
* Gets the {@link MapControl3D} associated with view properties |
98 | 151 |
* {@link ExtendedPropertiesSupport}. If there are not indicated type of |
99 | 152 |
* <code>MapControl3D</code> associated with view properties, it will return |
100 | 153 |
* an empty list. |
101 | 154 |
* |
102 | 155 |
* @param viewProperties |
156 |
* @see View3DSwingManager#getMapControl3D(ExtendedPropertiesSupport, TYPE) |
|
103 | 157 |
* @return List of <code>MapControl3D</code> associated with the view |
104 | 158 |
* propoerties. |
105 | 159 |
*/ |
... | ... | |
116 | 170 |
* @param viewProperties |
117 | 171 |
* @param type |
118 | 172 |
* Type of <code>MapControl3D</code> |
173 |
* @see View3DSwingManager#getMapControl3D(ExtendedPropertiesSupport) |
|
119 | 174 |
* @return |
120 | 175 |
*/ |
121 | 176 |
public MapControl3D getMapControl3D( |
122 | 177 |
ExtendedPropertiesSupport viewProperties, TYPE type); |
123 | 178 |
|
124 | 179 |
/** |
180 |
* Gets <code>MapControlProperties3D</code> linked with the view properties. |
|
125 | 181 |
* |
126 |
* @param layer |
|
182 |
* @param viewProperties |
|
183 |
* View properties to get the <code>MapControlProperties3D</code> |
|
184 |
* associated. |
|
185 |
* @see View3DSwingManager#setMapControlProperties3D(ExtendedPropertiesSupport, |
|
186 |
* MapControlProperties3D) |
|
127 | 187 |
* @return |
128 | 188 |
*/ |
129 |
public LayerProperties3DPanel createLayerProperties3DPanel(FLayer layer); |
|
189 |
public MapControlProperties3D getMapControl3DProperties( |
|
190 |
ExtendedPropertiesSupport viewProperties); |
|
130 | 191 |
|
131 | 192 |
/** |
193 |
* Sets <code>GeneralProperties3D</code> to 3D library. |
|
132 | 194 |
* |
133 |
* @return |
|
195 |
* @param properties |
|
196 |
* General 3D properties. |
|
197 |
* @see View3DSwingManager#getGeneral3DProperties() |
|
134 | 198 |
*/ |
135 |
public ViewProperties3DPanel createViewProperties3DPanel( |
|
136 |
MapControlProperties3D properties); |
|
137 |
|
|
199 |
public void setGeneral3DProperties(GeneralProperties3D properties); |
|
200 |
|
|
138 | 201 |
/** |
202 |
* Sets <code>MapControlProperties3D</code> to view properties. |
|
139 | 203 |
* |
140 |
* @param properties |
|
141 |
* @return |
|
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) |
|
142 | 210 |
*/ |
143 |
public GeneralProperties3DPanel createGeneralProperties3DPanel( |
|
144 |
GeneralProperties3D properties); |
|
145 |
|
|
146 |
public MapControlProperties3D getMapControl3DProperties( |
|
147 |
ExtendedPropertiesSupport viewProperties); |
|
148 |
|
|
149 | 211 |
public void setMapControlProperties3D( |
150 | 212 |
ExtendedPropertiesSupport viewProperties, |
151 | 213 |
MapControlProperties3D mapControl3DProperties); |
152 |
|
|
153 |
public GeneralProperties3D getGeneral3DProperties(); |
|
154 |
|
|
155 |
public void setGeneral3DProperties(GeneralProperties3D properties); |
|
156 | 214 |
} |
2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.api/src/main/java/org/gvsig/view3d/swing/api/MapControl3D.java | ||
---|---|---|
117 | 117 |
/** |
118 | 118 |
* Gets the <code>MapContext</code> associated. |
119 | 119 |
* |
120 |
* @see MapContext |
|
121 | 120 |
*/ |
122 | 121 |
public MapContext getMapContext(); |
123 | 122 |
|
... | ... | |
128 | 127 |
public TYPE getType(); |
129 | 128 |
|
130 | 129 |
/** |
130 |
* Gets 3D MapControl properties of this MapControl3D. |
|
131 | 131 |
* |
132 | 132 |
* @return |
133 | 133 |
*/ |
Also available in: Unified diff