gvsig-3d / 2.0 / trunk / org.gvsig.gvsig3d / org.gvsig.gvsig3d.lib / org.gvsig.gvsig3d.lib.api / src / main / java / org / gvsig / gvsig3d / map3d / Layer3DProps.java @ 380
History | View | Annotate | Download (5.82 KB)
1 |
/* gvSIG 3D extension for gvSIG
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2012 Prodevelop.
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program is distributed in the hope that it will be useful,
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
18 |
*
|
19 |
* For more information, contact:
|
20 |
*
|
21 |
* Prodevelop, S.L.
|
22 |
* Pza. Don Juan de Villarrasa, 14 - 5
|
23 |
* 46001 Valencia
|
24 |
* Spain
|
25 |
*
|
26 |
* +34 963 510 612
|
27 |
* +34 963 510 968
|
28 |
* prode@prodevelop.es
|
29 |
* http://www.prodevelop.es
|
30 |
*/
|
31 |
/*
|
32 |
* AUTHORS:
|
33 |
* 2012 AI2 - Instituto Universitario de Automatica e Informatica Industrial.
|
34 |
* Universitat Politecnica de Valencia (UPV)
|
35 |
* http://www.ai2.upv.es
|
36 |
*/
|
37 |
|
38 |
|
39 |
package org.gvsig.gvsig3d.map3d; |
40 |
|
41 |
import org.gvsig.fmap.dal.DataParameters; |
42 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
43 |
import org.gvsig.osgvp.terrain.Layer; |
44 |
import org.gvsig.tools.persistence.Persistent; |
45 |
|
46 |
|
47 |
/**
|
48 |
* @author Jesus Zarzoso- jzarzoso@ai2.upv.es
|
49 |
* @version $Id$
|
50 |
*
|
51 |
*/
|
52 |
public interface Layer3DProps { |
53 |
|
54 |
// types of 3D layers
|
55 |
public static final int layer3DImage = 0; |
56 |
public static final int layer3DElevation = 1; |
57 |
public static final int layer3DVector = 2; |
58 |
public static final int layer3DVectorMR = 4; |
59 |
public static final int layer3DOSG = 3; |
60 |
|
61 |
|
62 |
/**
|
63 |
* Return The editing state
|
64 |
*
|
65 |
* @return true->editing. false->not editing
|
66 |
*/
|
67 |
public boolean isEditing(); |
68 |
|
69 |
/**
|
70 |
* Set the editing state
|
71 |
*
|
72 |
* @param true->editing. false->not editing
|
73 |
*/
|
74 |
public void setEditing(boolean isEditing); |
75 |
|
76 |
public void setChooseType(boolean bChoose); |
77 |
|
78 |
public boolean getHooked(); |
79 |
|
80 |
public void setHooked(boolean hooked); |
81 |
|
82 |
public void setTerrainLayer(Layer terrainLayer); |
83 |
|
84 |
public Layer getTerrainLayer();
|
85 |
|
86 |
/**
|
87 |
* Setting the layer
|
88 |
*
|
89 |
* @param layer
|
90 |
*/
|
91 |
public void setLayer(FLayer layer); |
92 |
|
93 |
/**
|
94 |
* Initialize the cache name for the layer. It uses the terrain type the
|
95 |
* view projection and the type o coordinates
|
96 |
*
|
97 |
* @param terrainType
|
98 |
* @param viewProj
|
99 |
* @param geocentricCoordinates
|
100 |
*/
|
101 |
// public void initCacheName(int terrainType, IProjection viewProj,
|
102 |
// int geocentricCoordinates);
|
103 |
|
104 |
// /**
|
105 |
// * Return the cacheService of this layer. It depends of the type of the
|
106 |
// layer.
|
107 |
// *
|
108 |
// * @return
|
109 |
// */
|
110 |
// public CacheService getCacheService();
|
111 |
//
|
112 |
// /**
|
113 |
// * Set the cacheService of this layer. It depends of the type of the
|
114 |
// layer.
|
115 |
// *
|
116 |
// * @param srv
|
117 |
// */
|
118 |
// public void setCacheService(CacheService srv);
|
119 |
|
120 |
/**
|
121 |
* Set the type of this layer
|
122 |
*
|
123 |
* @param type
|
124 |
*/
|
125 |
public void setType(int type); |
126 |
|
127 |
/**
|
128 |
* Get the type of the layer
|
129 |
*
|
130 |
* @return
|
131 |
*/
|
132 |
public int getType(); |
133 |
|
134 |
// /**
|
135 |
// * Get the cache name for this layer
|
136 |
// *
|
137 |
// * @return
|
138 |
// */
|
139 |
// public String getCacheName();
|
140 |
|
141 |
// /**
|
142 |
// * Verifies that the vector layer's legend matches the one in the cache
|
143 |
// * folder
|
144 |
// */
|
145 |
// public void VerifyLegend(String terrainName);
|
146 |
|
147 |
// IPersistance
|
148 |
|
149 |
public String getClassName(); |
150 |
|
151 |
/*
|
152 |
* (non-Javadoc)
|
153 |
*
|
154 |
* @see com.iver.utiles.IPersistence#getXMLEntity()
|
155 |
*/
|
156 |
// public XMLEntity getXMLEntity();
|
157 |
//
|
158 |
// /* (non-Javadoc)
|
159 |
// * @see
|
160 |
// com.iver.utiles.IPersistence#setXMLEntity(com.iver.utiles.XMLEntity)
|
161 |
// */
|
162 |
// public void setXMLEntity(XMLEntity xml);
|
163 |
|
164 |
/**
|
165 |
* Return the opacity of this layer
|
166 |
*
|
167 |
* @return
|
168 |
*/
|
169 |
public float getOpacity(); |
170 |
|
171 |
/**
|
172 |
* Set the opacity of this layer
|
173 |
*
|
174 |
* @param A
|
175 |
* value between 0 and 1
|
176 |
*/
|
177 |
public void setOpacity(float m_opacity); |
178 |
|
179 |
/**
|
180 |
* Get the vertical exaggeration for this layer
|
181 |
*
|
182 |
* @return
|
183 |
*/
|
184 |
public float getVerticalEx(); |
185 |
|
186 |
/**
|
187 |
* Get the vertical exaggeration from this layer
|
188 |
*
|
189 |
* @param ex
|
190 |
*/
|
191 |
public void setVerticalEx(float ex); |
192 |
|
193 |
/**
|
194 |
* Sets which band is used for the elevation
|
195 |
*
|
196 |
* @param band
|
197 |
*/
|
198 |
public void setElevationBand(int band); |
199 |
|
200 |
/**
|
201 |
* Gets which band is used for the elevation
|
202 |
*/
|
203 |
public int getElevationBand(); |
204 |
|
205 |
|
206 |
|
207 |
/**
|
208 |
* Get the height that this layer has when it draws in 3D
|
209 |
*
|
210 |
* @return
|
211 |
*/
|
212 |
public float getHeight(); |
213 |
|
214 |
/**
|
215 |
* Set the height that this layer has when it draws in 3D
|
216 |
*
|
217 |
* @param heigth
|
218 |
*/
|
219 |
public void setHeight(float heigth); |
220 |
|
221 |
/**
|
222 |
* If the features of this layer have z value this method will return true.
|
223 |
* In the other case it will return false
|
224 |
*
|
225 |
* @return
|
226 |
*/
|
227 |
public boolean isZEnable(); |
228 |
|
229 |
/**
|
230 |
* Set the z enable
|
231 |
*
|
232 |
* @param zenable
|
233 |
*/
|
234 |
public void setZEnable(boolean zEnable); |
235 |
|
236 |
/**
|
237 |
* It is to know if this layer is new. It only works with the OSG layers
|
238 |
*
|
239 |
* @return
|
240 |
*/
|
241 |
public boolean isNewLayerOSG(); |
242 |
|
243 |
/**
|
244 |
* Set if this layer is new. It only works with OSG layers.
|
245 |
*
|
246 |
* @param newLayerOSG
|
247 |
*/
|
248 |
public void setNewLayerOSG(boolean newLayerOSG); |
249 |
|
250 |
public void setDrawVersion(long version); |
251 |
|
252 |
public long getDrawVersion(); |
253 |
|
254 |
/**
|
255 |
* Layer geo
|
256 |
* @param dirty
|
257 |
*/
|
258 |
public void setDirtyGeometry(boolean dirty); |
259 |
|
260 |
public boolean isGeometryDirty(); |
261 |
|
262 |
} |