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