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 @ 318
History | View | Annotate | Download (5.38 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
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 |
*/
|
22 |
package org.gvsig.gvsig3d.map3d; |
23 |
|
24 |
import org.gvsig.fmap.dal.DataParameters; |
25 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
26 |
import org.gvsig.osgvp.terrain.Layer; |
27 |
import org.gvsig.tools.persistence.Persistent; |
28 |
|
29 |
|
30 |
/**
|
31 |
* @author gvSIG Team
|
32 |
* @version $Id$
|
33 |
*
|
34 |
*/
|
35 |
public interface Layer3DProps { |
36 |
|
37 |
// types of 3D layers
|
38 |
public static final int layer3DImage = 0; |
39 |
public static final int layer3DElevation = 1; |
40 |
public static final int layer3DVector = 2; |
41 |
public static final int layer3DVectorMR = 4; |
42 |
public static final int layer3DOSG = 3; |
43 |
|
44 |
|
45 |
/**
|
46 |
* Return The editing state
|
47 |
*
|
48 |
* @return true->editing. false->not editing
|
49 |
*/
|
50 |
public boolean isEditing(); |
51 |
|
52 |
/**
|
53 |
* Set the editing state
|
54 |
*
|
55 |
* @param true->editing. false->not editing
|
56 |
*/
|
57 |
public void setEditing(boolean isEditing); |
58 |
|
59 |
public void setChooseType(boolean bChoose); |
60 |
|
61 |
public boolean getHooked(); |
62 |
|
63 |
public void setHooked(boolean hooked); |
64 |
|
65 |
public void setTerrainLayer(Layer terrainLayer); |
66 |
|
67 |
public Layer getTerrainLayer();
|
68 |
|
69 |
/**
|
70 |
* Setting the layer
|
71 |
*
|
72 |
* @param layer
|
73 |
*/
|
74 |
public void setLayer(FLayer layer); |
75 |
|
76 |
/**
|
77 |
* Initialize the cache name for the layer. It uses the terrain type the
|
78 |
* view projection and the type o coordinates
|
79 |
*
|
80 |
* @param terrainType
|
81 |
* @param viewProj
|
82 |
* @param geocentricCoordinates
|
83 |
*/
|
84 |
// public void initCacheName(int terrainType, IProjection viewProj,
|
85 |
// int geocentricCoordinates);
|
86 |
|
87 |
// /**
|
88 |
// * Return the cacheService of this layer. It depends of the type of the
|
89 |
// layer.
|
90 |
// *
|
91 |
// * @return
|
92 |
// */
|
93 |
// public CacheService getCacheService();
|
94 |
//
|
95 |
// /**
|
96 |
// * Set the cacheService of this layer. It depends of the type of the
|
97 |
// layer.
|
98 |
// *
|
99 |
// * @param srv
|
100 |
// */
|
101 |
// public void setCacheService(CacheService srv);
|
102 |
|
103 |
/**
|
104 |
* Set the type of this layer
|
105 |
*
|
106 |
* @param type
|
107 |
*/
|
108 |
public void setType(int type); |
109 |
|
110 |
/**
|
111 |
* Get the type of the layer
|
112 |
*
|
113 |
* @return
|
114 |
*/
|
115 |
public int getType(); |
116 |
|
117 |
// /**
|
118 |
// * Get the cache name for this layer
|
119 |
// *
|
120 |
// * @return
|
121 |
// */
|
122 |
// public String getCacheName();
|
123 |
|
124 |
// /**
|
125 |
// * Verifies that the vector layer's legend matches the one in the cache
|
126 |
// * folder
|
127 |
// */
|
128 |
// public void VerifyLegend(String terrainName);
|
129 |
|
130 |
// IPersistance
|
131 |
|
132 |
public String getClassName(); |
133 |
|
134 |
/*
|
135 |
* (non-Javadoc)
|
136 |
*
|
137 |
* @see com.iver.utiles.IPersistence#getXMLEntity()
|
138 |
*/
|
139 |
// public XMLEntity getXMLEntity();
|
140 |
//
|
141 |
// /* (non-Javadoc)
|
142 |
// * @see
|
143 |
// com.iver.utiles.IPersistence#setXMLEntity(com.iver.utiles.XMLEntity)
|
144 |
// */
|
145 |
// public void setXMLEntity(XMLEntity xml);
|
146 |
|
147 |
/**
|
148 |
* Return the opacity of this layer
|
149 |
*
|
150 |
* @return
|
151 |
*/
|
152 |
public float getOpacity(); |
153 |
|
154 |
/**
|
155 |
* Set the opacity of this layer
|
156 |
*
|
157 |
* @param A
|
158 |
* value between 0 and 1
|
159 |
*/
|
160 |
public void setOpacity(float m_opacity); |
161 |
|
162 |
/**
|
163 |
* Get the vertical exaggeration for this layer
|
164 |
*
|
165 |
* @return
|
166 |
*/
|
167 |
public float getVerticalEx(); |
168 |
|
169 |
/**
|
170 |
* Get the vertical exaggeration from this layer
|
171 |
*
|
172 |
* @param ex
|
173 |
*/
|
174 |
public void setVerticalEx(float ex); |
175 |
|
176 |
/**
|
177 |
* Sets which band is used for the elevation
|
178 |
*
|
179 |
* @param band
|
180 |
*/
|
181 |
public void setElevationBand(int band); |
182 |
|
183 |
/**
|
184 |
* Gets which band is used for the elevation
|
185 |
*/
|
186 |
public int getElevationBand(); |
187 |
|
188 |
|
189 |
|
190 |
/**
|
191 |
* Get the height that this layer has when it draws in 3D
|
192 |
*
|
193 |
* @return
|
194 |
*/
|
195 |
public float getHeight(); |
196 |
|
197 |
/**
|
198 |
* Set the height that this layer has when it draws in 3D
|
199 |
*
|
200 |
* @param heigth
|
201 |
*/
|
202 |
public void setHeight(float heigth); |
203 |
|
204 |
/**
|
205 |
* If the features of this layer have z value this method will return true.
|
206 |
* In the other case it will return false
|
207 |
*
|
208 |
* @return
|
209 |
*/
|
210 |
public boolean isZEnable(); |
211 |
|
212 |
/**
|
213 |
* Set the z enable
|
214 |
*
|
215 |
* @param zenable
|
216 |
*/
|
217 |
public void setZEnable(boolean zEnable); |
218 |
|
219 |
/**
|
220 |
* It is to know if this layer is new. It only works with the OSG layers
|
221 |
*
|
222 |
* @return
|
223 |
*/
|
224 |
public boolean isNewLayerOSG(); |
225 |
|
226 |
/**
|
227 |
* Set if this layer is new. It only works with OSG layers.
|
228 |
*
|
229 |
* @param newLayerOSG
|
230 |
*/
|
231 |
public void setNewLayerOSG(boolean newLayerOSG); |
232 |
|
233 |
public void setDrawVersion(long version); |
234 |
|
235 |
public long getDrawVersion(); |
236 |
|
237 |
|
238 |
|
239 |
} |