gvsig-3d / 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 @ 773
History | View | Annotate | Download (5.95 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright ? 2007-2017 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 |
package org.gvsig.view3d.swing.api.properties; |
25 |
|
26 |
import java.beans.PropertyChangeListener; |
27 |
|
28 |
import org.gvsig.tools.persistence.Persistent; |
29 |
import org.gvsig.view3d.swing.api.MapControl3D; |
30 |
|
31 |
/**
|
32 |
* This class represents the properties of {@link MapControl3D}.
|
33 |
*
|
34 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
|
35 |
*
|
36 |
*/
|
37 |
public interface MapControlProperties3D extends Persistent{ |
38 |
|
39 |
public static final String PERSISTENCE_NAME = "MapControl3DProperties"; |
40 |
|
41 |
public final String SPHERE_VERTICAL_EXAGGERATION_PROPERTY_NAME = |
42 |
"sphereVerticalExaggeration";
|
43 |
public final String FLAT_VERTICAL_EXAGGERATION_PROPERTY_NAME = |
44 |
"flatVerticalExaggeration";
|
45 |
public final String AUTO_LAYER_SYNCHRONIZE_PROPERTY_NAME = |
46 |
"autoLayerSynchronize";
|
47 |
public final String AUTO_VIEWPORT_SYNCHRONIZE_PROPERTY_NAME = |
48 |
"autoViewPortSynchronize";
|
49 |
public final String BLUE_MARBEL_VISIBILITY_PROPERTY_NAME = |
50 |
"blueMarbelLayerVisibility";
|
51 |
public final String NASA_LANDSAT_VISIBILITY_PROPERTY_NAME = |
52 |
"nasaLandsatLayerVisibility";
|
53 |
public final String DEFAULT_ELEVATION_VISIBILITY_PROPERTY_NAME = |
54 |
"defaultElevationVisibility";
|
55 |
public final String ANAGLYPH_MODE_PROPERTY_NAME = "anaglyphMode"; |
56 |
|
57 |
/**
|
58 |
* Adds {@link PropertyChangeListener} that will listen properties changes.
|
59 |
*
|
60 |
* @param listener
|
61 |
*/
|
62 |
public void addPropertyChangeListener(PropertyChangeListener listener); |
63 |
|
64 |
/**
|
65 |
* @return Returns if anaglyph mode is enabled.
|
66 |
* @see MapControlProperties3D#setAnaglyphMode()
|
67 |
*/
|
68 |
public boolean getAnaglyphMode(); |
69 |
|
70 |
/**
|
71 |
* @see MapControlProperties3D#setAutoLayerSynchronize(boolean)
|
72 |
* @return Gets if auto layer synchronize is active or not.
|
73 |
*/
|
74 |
public boolean getAutoLayerSynchronize(); |
75 |
|
76 |
/**
|
77 |
* @see MapControlProperties3D#setAutoViewPortSynchronize(boolean)
|
78 |
* @return Gets if auto view synchronize is active or not
|
79 |
*/
|
80 |
public boolean getAutoViewPortSynchronize(); |
81 |
|
82 |
/**
|
83 |
* @see MapControlProperties3D#setBlueMarbleLayerVisibility(boolean)
|
84 |
* @return Gets visibility of Blue Marble layer.
|
85 |
*/
|
86 |
public boolean getBlueMarbleLayerVisibility(); |
87 |
|
88 |
/**
|
89 |
* @see MapControlProperties3D#setDefaultElevationVisibility(boolean)
|
90 |
* @return Gets visibility of default elevation.
|
91 |
*/
|
92 |
public boolean getDefaultElevationVisibility(); |
93 |
|
94 |
/**
|
95 |
* @see MapControlProperties3D#setFlatVerticalExaggeration(double)
|
96 |
* @return Gets vertical exaggeration of flat view
|
97 |
*/
|
98 |
public double getFlatVerticalExaggeration(); |
99 |
|
100 |
/**
|
101 |
* @see MapControlProperties3D#setNasaLandsatVisibility(boolean)
|
102 |
* @return Gets visibility of Nasa Landsat Layer
|
103 |
*/
|
104 |
public boolean getNasaLandsatLayerVisibility(); |
105 |
|
106 |
/**
|
107 |
* @see MapControlProperties3D#setSphereVerticalExaggeration(double)
|
108 |
* @return Gets vertical exaggeration of sphere view
|
109 |
*/
|
110 |
public double getSphereVerticalExaggeration(); |
111 |
|
112 |
/**
|
113 |
* Removes {@link PropertyChangeListener}.
|
114 |
*
|
115 |
* @see MapControlProperties3D#addPropertyChangeListener(PropertyChangeListener)
|
116 |
* @param listener
|
117 |
*/
|
118 |
public void removePropertyChangeListener(PropertyChangeListener listener); |
119 |
|
120 |
/**
|
121 |
* Sets anaglyph mode
|
122 |
*
|
123 |
* @param flag True to enable anaglyph mode, false to disable it.
|
124 |
* @see MapControlProperties3D#getAnaglyphMode()
|
125 |
*/
|
126 |
public void setAnaglyphMode(boolean flag); |
127 |
|
128 |
/**
|
129 |
* Set auto layer synchronize.
|
130 |
*
|
131 |
* @param flag True to active auto layer synchronize, false to disable it.
|
132 |
* @see MapControlProperties3D#getAutoLayerSynchronize()
|
133 |
*/
|
134 |
public void setAutoLayerSynchronize(boolean flag); |
135 |
|
136 |
/**
|
137 |
* Set auto viesport synchronize.
|
138 |
*
|
139 |
* @param flag True to active auto viewport synchronize, false to disable it.
|
140 |
* @see MapControlProperties3D#getAutoViewSynchronize()
|
141 |
*/
|
142 |
public void setAutoViewPortSynchronize(boolean flag); |
143 |
|
144 |
/**
|
145 |
* Sets visibility of BlueMarble layer.
|
146 |
*
|
147 |
* @param visibility
|
148 |
* @see MapControlProperties3D#getBlueMarbleLayerVisibility()
|
149 |
*/
|
150 |
public void setBlueMarbleLayerVisibility(boolean visibility); |
151 |
|
152 |
/**
|
153 |
* Sets visibility of deafult elevation.
|
154 |
*
|
155 |
* @param visibility
|
156 |
* @see MapControlProperties3D#getDefaultElevationVisibility()
|
157 |
*/
|
158 |
public void setDefaultElevationVisibility(boolean visibility); |
159 |
|
160 |
/**
|
161 |
* Sets flat vertical exaggeration.
|
162 |
*
|
163 |
* @param value
|
164 |
* @see MapControlProperties3D#getFlatVerticalExaggeration()
|
165 |
*/
|
166 |
public void setFlatVerticalExaggeration(double value); |
167 |
|
168 |
/**
|
169 |
* Sets Nasa Landsat visibility.
|
170 |
*
|
171 |
* @param visibility
|
172 |
* @see MapControlProperties3D#getNasaLandsatLayerVisibility()
|
173 |
*/
|
174 |
public void setNasaLandsatVisibility(boolean visibility); |
175 |
|
176 |
/**
|
177 |
* Sets sphere vertical exaggeration.
|
178 |
*
|
179 |
* @param value
|
180 |
* @see MapControlProperties3D#getSphereVerticalExaggeration()
|
181 |
*/
|
182 |
public void setSphereVerticalExaggeration(double value); |
183 |
|
184 |
} |