gvsig-raster / org.gvsig.raster.georeferencing / trunk / org.gvsig.raster.georeferencing / org.gvsig.raster.georeferencing.swing / org.gvsig.raster.georeferencing.swing.api / src / main / java / org / gvsig / raster / georeferencing / swing / model / GeoreferencingOptionsDataModel.java @ 1729
History | View | Annotate | Download (6.06 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.raster.georeferencing.swing.model; |
23 |
|
24 |
import java.awt.Color; |
25 |
import java.awt.geom.Rectangle2D; |
26 |
|
27 |
import org.gvsig.fmap.dal.coverage.store.RasterDataStore; |
28 |
|
29 |
/**
|
30 |
* Data model for options to georeferencing. This a shared object to read
|
31 |
* and write properties selected by the user
|
32 |
* @author Nacho Brodin nachobrodin@gmail.com
|
33 |
*/
|
34 |
public interface GeoreferencingOptionsDataModel { |
35 |
|
36 |
public void reset(); |
37 |
|
38 |
/**
|
39 |
* Obtiene la capa que ha sido abierta por el usuario
|
40 |
* @return Obtiene la capa que ha sido abierta por el usuario o null si no
|
41 |
* hay abierta ninguna.
|
42 |
*/
|
43 |
public RasterDataStore getDataStore();
|
44 |
|
45 |
/**
|
46 |
* Gets the extent in pixel coordinates, that means (0, 0, width, height)
|
47 |
* @return
|
48 |
*/
|
49 |
public Rectangle2D getRasterExtent(); |
50 |
|
51 |
/**
|
52 |
* Obtiene la vista seleccionada
|
53 |
* @return
|
54 |
*/
|
55 |
public String getSelectedView(); |
56 |
|
57 |
/**
|
58 |
* Obtiene el tipo de georreferenciaci?n seleccionada
|
59 |
* @return entero con el tipo de georreferenciaci?n. Es una constante contenida en la
|
60 |
* clase georreferencing.
|
61 |
*/
|
62 |
public int getType(); |
63 |
|
64 |
/**
|
65 |
* Obtiene el nombre del fichero de salida
|
66 |
* @return Fichero de salida
|
67 |
*/
|
68 |
public String getOutFile(); |
69 |
|
70 |
/**
|
71 |
* Obtiene el tipo de algoritmo seleccionado
|
72 |
* @return entero con el tipo de algoritmo. Es una constante definida
|
73 |
* en la clase georreferencing.
|
74 |
*/
|
75 |
public int getAlgorithm(); |
76 |
|
77 |
/**
|
78 |
* Obtiene el grado del algoritmo si este es polinomial
|
79 |
* @return entero con el grado del algoritmo.
|
80 |
*/
|
81 |
public int getDegree(); |
82 |
|
83 |
/**
|
84 |
* Obtiene el m?todo de interpolaci?n del algoritmo si este es polinomial
|
85 |
* @return entero con el m?todo de interpolaci?n
|
86 |
*/
|
87 |
public int getInterpolationMethod(); |
88 |
|
89 |
/**
|
90 |
* Obtiene el tama?o de celda en X.
|
91 |
* @return double con el tama?o de celda.
|
92 |
*/
|
93 |
public double getXCellSize(); |
94 |
|
95 |
/**
|
96 |
* Asigna el tama?o de celda en X.
|
97 |
* @param cellSize
|
98 |
*/
|
99 |
public void setXCellSize(double cellSize); |
100 |
|
101 |
/**
|
102 |
* Obtiene el tama?o de celda en Y.
|
103 |
* @return double con el tama?o de celda.
|
104 |
*/
|
105 |
public double getYCellSize(); |
106 |
|
107 |
/**
|
108 |
* Asigna el tama?o de celda en Y.
|
109 |
* @param cellSize
|
110 |
*/
|
111 |
public void setYCellSize(double cellSize); |
112 |
|
113 |
/**
|
114 |
* Asigna el m?todo de interpolaci?n
|
115 |
* @param interpolationMethod
|
116 |
*/
|
117 |
public void setInterpolationMethod(int interpolationMethod); |
118 |
|
119 |
/**
|
120 |
* Asigna el nombre del fichero de salida
|
121 |
* @param interpolationMethod
|
122 |
*/
|
123 |
public void setOutFile(String out); |
124 |
|
125 |
/**
|
126 |
* Asigna el grado del algoritmo cuando es polinomial
|
127 |
* @param optiondegree
|
128 |
*/
|
129 |
public void setDegree(int optiondegree); |
130 |
|
131 |
/**
|
132 |
* Asigna el algoritmo
|
133 |
* @param alg
|
134 |
*/
|
135 |
public void setAlgorithm(int alg); |
136 |
|
137 |
/**
|
138 |
* Asigna el color de fonfo
|
139 |
* @param c
|
140 |
*/
|
141 |
public void setBackGroundColor(Color c); |
142 |
|
143 |
/**
|
144 |
* Obtiene el color de fondo
|
145 |
* @return
|
146 |
*/
|
147 |
public Color getBackgroundColor(); |
148 |
|
149 |
/**
|
150 |
* Asigna el color del texto
|
151 |
* @param c
|
152 |
*/
|
153 |
public void setTextColor(Color c); |
154 |
|
155 |
/**
|
156 |
* Obtiene el color del texto
|
157 |
* @return
|
158 |
*/
|
159 |
public Color getTextColor(); |
160 |
|
161 |
/**
|
162 |
* Obtiene el control para selecci?n de umbral de error
|
163 |
* @return JButton
|
164 |
*/
|
165 |
public double getThresholdError(); |
166 |
|
167 |
/**
|
168 |
* Asigna el control para selecci?n de umbral de error
|
169 |
* @return JButton
|
170 |
*/
|
171 |
public void setThresholdError(double threshold); |
172 |
|
173 |
/**
|
174 |
* Sets the type of georeferencing selected
|
175 |
* @param type
|
176 |
*/
|
177 |
public void setType(int type); |
178 |
|
179 |
/**
|
180 |
* Sets the data store
|
181 |
* @param store
|
182 |
*/
|
183 |
public void setDataStore(RasterDataStore store); |
184 |
|
185 |
/**
|
186 |
* Sets the selected view
|
187 |
* @param v
|
188 |
*/
|
189 |
public void setSelectedView(String v); |
190 |
|
191 |
/**
|
192 |
* Asigna el flag que dice si los errores se escriben en el fichero CSV
|
193 |
* @param true para escribirlos en el fichero y false para no hacerlo
|
194 |
*/
|
195 |
public void setAddErrorsCSV(boolean addErrorsCSV); |
196 |
|
197 |
/**
|
198 |
* Consulta si est? activo el flag de centrar las vistas autom?ticamente sobre
|
199 |
* el punto que est? seleccionado en la tabla.
|
200 |
* @return true para centrar autom?ticamente y false para no hacerlo
|
201 |
*/
|
202 |
public boolean isCenterView(); |
203 |
|
204 |
/**
|
205 |
* Asigna el flag que dice si se centran las vistas autom?ticamente sobre
|
206 |
* el punto que est? seleccionado en la tabla.
|
207 |
* @return true para centrar autom?ticamente y false para no hacerlo
|
208 |
*/
|
209 |
public void setCenterView(boolean centerView); |
210 |
|
211 |
/**
|
212 |
* Asigna el flag que dice si se muestra el n?mero del punto en la vista
|
213 |
* @param true para mostrarlo y false para no hacerlo
|
214 |
*/
|
215 |
public void setShowNumber(boolean showNumber); |
216 |
|
217 |
/**
|
218 |
* Consulta el flag que informa si se muestra el n?mero del punto en la vista
|
219 |
* @return true si se muestra y false si no
|
220 |
*/
|
221 |
public boolean isShowNumber(); |
222 |
|
223 |
/**
|
224 |
* Obtiene el umbral de error a partir del cual se iluminan en rojo en la tabla
|
225 |
* @return double con el valor del umbral
|
226 |
*/
|
227 |
public double getThreshold(); |
228 |
|
229 |
/**
|
230 |
* Consulta si los errores se escriben en el fichero CSV
|
231 |
* @return true si se escriben en el fichero y false si no se hace
|
232 |
*/
|
233 |
public boolean isAddErrorsCSV(); |
234 |
|
235 |
/**
|
236 |
* Asigna el umbral de error a partir del cual se iluminan en rojo en la tabla
|
237 |
* @param double con el valor del umbral
|
238 |
*/
|
239 |
public void setThreshold(double threshold); |
240 |
|
241 |
/**
|
242 |
* Gets the list of points. This list contains the list of geopoints and
|
243 |
* graphic points.
|
244 |
* @return
|
245 |
*/
|
246 |
public GCPList getGCPList();
|
247 |
} |