Revision 18689
tags/tmp_build/extensions/extGeoreferencing/.project | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<projectDescription> |
|
3 |
<name>extGeoreferencing</name> |
|
4 |
<comment></comment> |
|
5 |
<projects> |
|
6 |
</projects> |
|
7 |
<buildSpec> |
|
8 |
<buildCommand> |
|
9 |
<name>org.eclipse.jdt.core.javabuilder</name> |
|
10 |
<arguments> |
|
11 |
</arguments> |
|
12 |
</buildCommand> |
|
13 |
<buildCommand> |
|
14 |
<name>de.loskutov.FileSync.FSBuilder</name> |
|
15 |
<arguments> |
|
16 |
</arguments> |
|
17 |
</buildCommand> |
|
18 |
</buildSpec> |
|
19 |
<natures> |
|
20 |
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> |
|
21 |
<nature>org.eclipse.jdt.core.javanature</nature> |
|
22 |
<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature> |
|
23 |
</natures> |
|
24 |
</projectDescription> |
|
0 | 25 |
tags/tmp_build/extensions/extGeoreferencing/src-test/org/gvsig/georeferencing/utils/ZoomStackTest.java | ||
---|---|---|
1 |
package org.gvsig.georeferencing.utils; |
|
2 |
|
|
3 |
import junit.framework.TestCase; |
|
4 |
|
|
5 |
import org.cresques.px.Extent; |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
* @author Nacho Brodin (brodin_ign@gva.es) |
|
10 |
*/ |
|
11 |
public class ZoomStackTest extends TestCase{ |
|
12 |
private static final int NEXTENTS = 3; |
|
13 |
private StackZoom stack = null; |
|
14 |
Extent[] ext = new Extent[NEXTENTS]; |
|
15 |
Extent newExt = new Extent(4, 4, 4, 4); |
|
16 |
|
|
17 |
public void setUp() { |
|
18 |
System.out.println("ZoomStackTest running..."); |
|
19 |
stack = new StackZoom(); |
|
20 |
for(int i=0;i<NEXTENTS;i++){ |
|
21 |
ext[i] = new Extent(i, i ,i ,i); |
|
22 |
if(i == 0) |
|
23 |
stack.setInitExtent(ext[i], true); |
|
24 |
else |
|
25 |
stack.setZoom(ext[i]); |
|
26 |
} |
|
27 |
} |
|
28 |
|
|
29 |
public void testStack(){ |
|
30 |
//Top apunta al ?ltimo elemento y selectElem tambien |
|
31 |
assertEquals(stack.getStackSize(), NEXTENTS - 1); |
|
32 |
assertEquals(stack.getSelectElem(), NEXTENTS - 1); |
|
33 |
|
|
34 |
//Vaciamos la pila y volvemos a llenarla |
|
35 |
assertNull(stack.getNextZoom()); |
|
36 |
assertEquals(stack.getLastZoom(), ext[1]); |
|
37 |
assertEquals(stack.getLastZoom(), ext[0]); |
|
38 |
assertNull(stack.getLastZoom()); |
|
39 |
assertEquals(stack.getNextZoom(), ext[1]); |
|
40 |
assertEquals(stack.getNextZoom(), ext[2]); |
|
41 |
assertNull(stack.getNextZoom()); |
|
42 |
|
|
43 |
//Eliminamos un elemento e insertamos otro |
|
44 |
assertEquals(stack.getLastZoom(), ext[1]); |
|
45 |
|
|
46 |
stack.setZoom(newExt); |
|
47 |
|
|
48 |
assertNull(stack.getNextZoom()); |
|
49 |
assertEquals(stack.getLastZoom(), ext[1]); |
|
50 |
assertEquals(stack.getNextZoom(), newExt); |
|
51 |
} |
|
52 |
} |
|
0 | 53 |
tags/tmp_build/extensions/extGeoreferencing/src-test/org/gvsig/georeferencing/gui/dialog/TestGeorefDialog.java | ||
---|---|---|
1 |
package org.gvsig.georeferencing.gui.dialog; |
|
2 |
import java.awt.BorderLayout; |
|
3 |
import java.awt.Dimension; |
|
4 |
import java.awt.FlowLayout; |
|
5 |
import java.awt.event.ComponentEvent; |
|
6 |
import java.awt.event.ComponentListener; |
|
7 |
import java.awt.geom.Point2D; |
|
8 |
|
|
9 |
import javax.swing.JButton; |
|
10 |
import javax.swing.JFrame; |
|
11 |
import javax.swing.JInternalFrame; |
|
12 |
import javax.swing.JPanel; |
|
13 |
import javax.swing.JToggleButton; |
|
14 |
import javax.swing.UIManager; |
|
15 |
import javax.swing.table.DefaultTableModel; |
|
16 |
|
|
17 |
import org.gvsig.georeferencing.gui.panels.ConectorPanel; |
|
18 |
import org.gvsig.georeferencing.gui.panels.OptionsPanel; |
|
19 |
import org.gvsig.georeferencing.gui.panels.ZoomControlPanel; |
|
20 |
import org.gvsig.georeferencing.gui.pointsTable.TablePointsPanel; |
|
21 |
import org.gvsig.georeferencing.gui.pointsTable.TablePointsPanel.PointTable; |
|
22 |
import org.gvsig.georeferencing.gui.selectPoints.DataPointPanel; |
|
23 |
import org.gvsig.georeferencing.gui.selectPoints.SelectPointsPanel; |
|
24 |
import org.gvsig.georeferencing.utils.GeoUtils; |
|
25 |
|
|
26 |
import com.iver.andami.PluginServices; |
|
27 |
import com.iver.cit.gvsig.fmap.ViewPort; |
|
28 |
import com.iver.cit.gvsig.fmap.layers.IGeoUi; |
|
29 |
import com.iver.cit.gvsig.fmap.tools.Behavior.GeoMoveBehavior; |
|
30 |
import com.iver.cit.gvsig.fmap.tools.Behavior.GeoRedimBehavior; |
|
31 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
|
32 |
|
|
33 |
|
|
34 |
public class TestGeorefDialog extends JFrame implements ComponentListener{ |
|
35 |
|
|
36 |
private int w = 412, h = /*278;*/458; |
|
37 |
|
|
38 |
public void componentHidden(ComponentEvent arg0) { |
|
39 |
|
|
40 |
} |
|
41 |
public void componentMoved(ComponentEvent arg0) { |
|
42 |
|
|
43 |
} |
|
44 |
public void componentResized(ComponentEvent arg0) { |
|
45 |
System.out.println(this.getSize().getWidth()+" "+this.getSize().getHeight()); |
|
46 |
} |
|
47 |
public void componentShown(ComponentEvent arg0) { |
|
48 |
|
|
49 |
} |
|
50 |
public TestGeorefDialog(){ |
|
51 |
this.addComponentListener(this); |
|
52 |
this.setSize(w, h); |
|
53 |
GeoreferencingDialogTest tbp = new GeoreferencingDialogTest(this); |
|
54 |
this.getContentPane().add(tbp); |
|
55 |
this.show(); |
|
56 |
} |
|
57 |
/** |
|
58 |
* @param args |
|
59 |
*/ |
|
60 |
public static void main(String[] args) { |
|
61 |
try { |
|
62 |
//UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
63 |
UIManager.setLookAndFeel("com.jgoodies.looks.plastic.PlasticXPLookAndFeel"); |
|
64 |
//UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); |
|
65 |
} catch( Exception e ) { |
|
66 |
System.err.println( "No se puede cambiar al LookAndFeel"); |
|
67 |
} |
|
68 |
TestGeorefDialog f = new TestGeorefDialog(); |
|
69 |
} |
|
70 |
|
|
71 |
|
|
72 |
class GeoreferencingDialogTest extends JPanel implements IGeoUi, ComponentListener { |
|
73 |
|
|
74 |
//**********************Vars********************************** |
|
75 |
private JPanel pBotones = null; // @jve:decl-index=0: |
|
76 |
private JButton bProcesar = null; // @jve:decl-index=0: |
|
77 |
private JButton bCancelar = null; // @jve:decl-index=0: |
|
78 |
private GeoRedimBehavior rb = null; |
|
79 |
private GeoMoveBehavior mb = null; |
|
80 |
; |
|
81 |
private JFrame frame = null; |
|
82 |
|
|
83 |
private ConectorPanel conectorPanel = null; |
|
84 |
|
|
85 |
private boolean enlarge = false; |
|
86 |
private int normalWidth = 400; |
|
87 |
private int normalHeight = 273; |
|
88 |
private int enlargeHeight = 438; |
|
89 |
private int tmpWidth = normalWidth; |
|
90 |
|
|
91 |
private JButton bAceptar = null; |
|
92 |
|
|
93 |
private TablePointsPanel tablePointsPanel = null; |
|
94 |
|
|
95 |
/** |
|
96 |
* Panel que contiene los botones de la barra inferior |
|
97 |
*/ |
|
98 |
private DialogButtons dialogButtons = null; |
|
99 |
//**********************End Vars****************************** |
|
100 |
|
|
101 |
|
|
102 |
//**********************Methods******************************* |
|
103 |
/** |
|
104 |
* Constructor. |
|
105 |
*/ |
|
106 |
public GeoreferencingDialogTest(JFrame f) { |
|
107 |
frame = f; |
|
108 |
initialize(); |
|
109 |
} |
|
110 |
|
|
111 |
/** |
|
112 |
* En la inicializaci?n de la ventana a?adimos los tags de est? y cargamos |
|
113 |
* ls herramientas para manejar las imagenes a georeferenciar. |
|
114 |
*/ |
|
115 |
private void initialize() { |
|
116 |
|
|
117 |
this.setLayout(new BorderLayout()); |
|
118 |
if(!enlarge){ |
|
119 |
this.setPreferredSize(new java.awt.Dimension(normalWidth, normalHeight)); |
|
120 |
this.setSize(new java.awt.Dimension(400,273)); |
|
121 |
this.getConectorPanel().getAdjustGeorefPanel().getZoomLeft().setVisible(false); |
|
122 |
this.getConectorPanel().getAdjustGeorefPanel().getZoomRight().setVisible(false); |
|
123 |
}else{ |
|
124 |
this.setPreferredSize(new java.awt.Dimension(normalWidth, enlargeHeight)); |
|
125 |
this.setSize(new java.awt.Dimension(normalWidth, enlargeHeight)); |
|
126 |
this.getConectorPanel().getAdjustGeorefPanel().getZoomLeft().setVisible(true); |
|
127 |
this.getConectorPanel().getAdjustGeorefPanel().getZoomRight().setVisible(true); |
|
128 |
} |
|
129 |
this.setLocation(new java.awt.Point(0,0)); |
|
130 |
|
|
131 |
this.add(this.getPBotones(), BorderLayout.SOUTH); |
|
132 |
this.add(this.getConectorPanel(), BorderLayout.NORTH); |
|
133 |
|
|
134 |
tablePointsPanel = getConectorPanel().getDataPointsTabPanel().getTablePointsPanel(); |
|
135 |
tablePointsPanel.getTableControlerPanel().getBClear().addActionListener(this.getConectorPanel().getDataPointsTabPanel().getSelectPointsPanel()); |
|
136 |
tablePointsPanel.getTableControlerPanel().getBDelPoint().addActionListener(this.getConectorPanel().getDataPointsTabPanel().getSelectPointsPanel()); |
|
137 |
|
|
138 |
getBInsertPointOfTablePoints().addActionListener(conectorPanel.getDataPointsTabPanel().getSelectPointsPanel()); |
|
139 |
getBNewPointOfTablePoints().addActionListener(conectorPanel.getDataPointsTabPanel().getSelectPointsPanel()); |
|
140 |
} |
|
141 |
|
|
142 |
|
|
143 |
/** |
|
144 |
* This method initializes jButton |
|
145 |
* |
|
146 |
* @return javax.swing.JButton |
|
147 |
*/ |
|
148 |
public JButton getBAccept() { |
|
149 |
if (bAceptar == null) { |
|
150 |
bAceptar = new JButton(); |
|
151 |
bAceptar.setText(PluginServices.getText(this,"aceptar")); |
|
152 |
bAceptar.setToolTipText(PluginServices.getText(this,"accept_tip")); |
|
153 |
} |
|
154 |
return bAceptar; |
|
155 |
} |
|
156 |
|
|
157 |
/** |
|
158 |
* This method initializes bProcesar |
|
159 |
* |
|
160 |
* @return javax.swing.JButton |
|
161 |
*/ |
|
162 |
public JButton getBProcess() { |
|
163 |
if (bProcesar == null) { |
|
164 |
bProcesar = new JButton(); |
|
165 |
bProcesar.setText(PluginServices.getText(this,"procesar")); |
|
166 |
bProcesar.setToolTipText(PluginServices.getText(this,"process_tip")); |
|
167 |
bProcesar.setEnabled(true); |
|
168 |
} |
|
169 |
return bProcesar; |
|
170 |
} |
|
171 |
|
|
172 |
/** |
|
173 |
* El bot?n cancelar restaura el extent con el que se carg? la imagen a georreferenciar |
|
174 |
* y cierra la ventana. |
|
175 |
* |
|
176 |
* @return javax.swing.JButton |
|
177 |
*/ |
|
178 |
public JButton getBCancel() { |
|
179 |
if (bCancelar == null) { |
|
180 |
bCancelar = new JButton(); |
|
181 |
bCancelar.setText(PluginServices.getText(this,"cancelar")); |
|
182 |
bCancelar.setToolTipText(PluginServices.getText(this,"cancel_tip")); |
|
183 |
} |
|
184 |
return bCancelar; |
|
185 |
} |
|
186 |
|
|
187 |
/** |
|
188 |
* Asigna a las textbox el valor de pixel pasado |
|
189 |
* @param x valor x |
|
190 |
* @param y valor y |
|
191 |
*/ |
|
192 |
public void setPixelText(double x, double y){ |
|
193 |
getSelectPointsPanel().getDataPointPanel().getTX().setText(String.valueOf(x)); |
|
194 |
getSelectPointsPanel().getDataPointPanel().getTY().setText(String.valueOf(y)); |
|
195 |
} |
|
196 |
|
|
197 |
/** |
|
198 |
* Asigna a las textbox el valor de coordenadas pasado |
|
199 |
* @param x valor x |
|
200 |
* @param y valor y |
|
201 |
*/ |
|
202 |
public void setMapCoordText(double x, double y){ |
|
203 |
getSelectPointsPanel().getDataPointPanel().getLongitud().setText(GeoUtils.tailDecimals(String.valueOf(x), 5)); |
|
204 |
getSelectPointsPanel().getDataPointPanel().getLatitud().setText(GeoUtils.tailDecimals(String.valueOf(y), 5)); |
|
205 |
} |
|
206 |
|
|
207 |
/** |
|
208 |
* Esta funci?n resetea los controles del panel de info de un punto. |
|
209 |
*/ |
|
210 |
public void resetControls(boolean active){ |
|
211 |
getConectorPanel().getDataPointsTabPanel().getTablePointsPanel().setSaveToDisk(active); |
|
212 |
getConectorPanel().getDataPointsTabPanel().getSelectPointsPanel().resetControls(active); |
|
213 |
getConectorPanel().getAdjustGeorefPanel().getZoomLeft().clear(); |
|
214 |
getConectorPanel().getAdjustGeorefPanel().getZoomRight().clear(); |
|
215 |
setEnabled(active); |
|
216 |
} |
|
217 |
|
|
218 |
/* (non-Javadoc) |
|
219 |
* @see java.awt.event.ComponentListener#componentHidden(java.awt.event.ComponentEvent) |
|
220 |
*/ |
|
221 |
public void componentHidden(ComponentEvent arg0) { |
|
222 |
|
|
223 |
} |
|
224 |
/* (non-Javadoc) |
|
225 |
* @see java.awt.event.ComponentListener#componentMoved(java.awt.event.ComponentEvent) |
|
226 |
*/ |
|
227 |
public void componentMoved(ComponentEvent arg0) { |
|
228 |
|
|
229 |
} |
|
230 |
/* (non-Javadoc) |
|
231 |
* @see java.awt.event.ComponentListener#componentResized(java.awt.event.ComponentEvent) |
|
232 |
*/ |
|
233 |
public void componentResized(ComponentEvent ev) { |
|
234 |
|
|
235 |
if(frame.getWidth() <= this.normalWidth + 10) |
|
236 |
frame.setSize(this.normalWidth, frame.getHeight()); |
|
237 |
|
|
238 |
if(this.getConectorPanel().getDataPointsTabPanel().getTbPoints().getSelectedIndex() == 1){ |
|
239 |
tmpWidth = frame.getWidth(); |
|
240 |
this.newFrameSize(frame.getWidth(), frame.getHeight() - 10); |
|
241 |
} |
|
242 |
} |
|
243 |
/* (non-Javadoc) |
|
244 |
* @see java.awt.event.ComponentListener#componentShown(java.awt.event.ComponentEvent) |
|
245 |
*/ |
|
246 |
public void componentShown(ComponentEvent arg0) { |
|
247 |
|
|
248 |
} |
|
249 |
|
|
250 |
/** |
|
251 |
*Inicializa el tama?o del dialogo |
|
252 |
*/ |
|
253 |
public void resetSize(){ |
|
254 |
if(!enlarge){ |
|
255 |
frame.setSize(this.normalWidth + 12, this.normalHeight + 10); |
|
256 |
}else{ |
|
257 |
frame.setSize(this.normalWidth + 12, this.enlargeHeight + 10); |
|
258 |
} |
|
259 |
newFrameSize((int)Math.round(this.normalWidth / 0.98), this.normalHeight); |
|
260 |
} |
|
261 |
|
|
262 |
/** |
|
263 |
* Calculo del nuevo tama?o a partir de un frame redimensionado |
|
264 |
* @param w Ancho del frame |
|
265 |
* @param h Alto del frame |
|
266 |
*/ |
|
267 |
public void newFrameSize(int w, int h){ |
|
268 |
int newWidth = (int)Math.round(w * 0.98); |
|
269 |
|
|
270 |
this.setSize(new java.awt.Dimension(newWidth, normalHeight )); |
|
271 |
this.setPreferredSize(new java.awt.Dimension(newWidth, normalHeight )); |
|
272 |
this.getConectorPanel().newFrameSize(newWidth, h); |
|
273 |
} |
|
274 |
|
|
275 |
//**********************End Methods*************************** |
|
276 |
|
|
277 |
//**********************Setters & Getters********************* |
|
278 |
/** |
|
279 |
* Obtiene la tabla de puntos |
|
280 |
*/ |
|
281 |
public PointTable getTable(){ |
|
282 |
return this.getConectorPanel().getDataPointsTabPanel().getTablePointsPanel().getJTable(); |
|
283 |
} |
|
284 |
|
|
285 |
/** |
|
286 |
* Asigna un valor a una posici?n de la tabla |
|
287 |
* @param value Valor a asignar |
|
288 |
* @param row Fila en la que se asigna |
|
289 |
* @param col Columna en la que se asigna |
|
290 |
*/ |
|
291 |
public void setTableValueAt(String value, int row, int col)throws ArrayIndexOutOfBoundsException{ |
|
292 |
((DefaultTableModel)getTable().getTable().getModel()).setValueAt(value, row, col); |
|
293 |
} |
|
294 |
|
|
295 |
/** |
|
296 |
* Asigna un valor del checkBox para una fila de la tabla |
|
297 |
* @param row Fila en la que se asigna |
|
298 |
*/ |
|
299 |
public void setCheckValueAt(Boolean value, int row)throws ArrayIndexOutOfBoundsException{ |
|
300 |
((DefaultTableModel)getTable().getTable().getModel()).setValueAt(value, row, 0); |
|
301 |
} |
|
302 |
|
|
303 |
/** |
|
304 |
* Obtiene el n?mero de filas de la tabla |
|
305 |
* @return N?mero de filas de la tabla |
|
306 |
*/ |
|
307 |
public int getTableRowCount(){ |
|
308 |
return getTable().getTable().getRowCount(); |
|
309 |
} |
|
310 |
|
|
311 |
/** |
|
312 |
* A?ade una nueva fila a la tabla de puntos |
|
313 |
*/ |
|
314 |
public void addTableNew(){ |
|
315 |
getTable().getTableModel().addNew(); |
|
316 |
} |
|
317 |
/** |
|
318 |
* @return Returns the tmpWidth. |
|
319 |
*/ |
|
320 |
public int getTmpWidth() { |
|
321 |
return tmpWidth; |
|
322 |
} |
|
323 |
/** |
|
324 |
* @param tmpWidth The tmpWidth to set. |
|
325 |
*/ |
|
326 |
public void setTmpWidth(int tmpWidth) { |
|
327 |
this.tmpWidth = tmpWidth; |
|
328 |
} |
|
329 |
/** |
|
330 |
* @return Returns the enlargeHeight. |
|
331 |
*/ |
|
332 |
public int getEnlargeHeight() { |
|
333 |
return enlargeHeight; |
|
334 |
} |
|
335 |
/** |
|
336 |
* @return Returns the normalHeight. |
|
337 |
*/ |
|
338 |
public int getNormalHeight() { |
|
339 |
return normalHeight; |
|
340 |
} |
|
341 |
|
|
342 |
/** |
|
343 |
* @return Returns the normalWidth. |
|
344 |
*/ |
|
345 |
public int getNormalWidth() { |
|
346 |
return normalWidth; |
|
347 |
} |
|
348 |
|
|
349 |
/** |
|
350 |
* Asigna el valor del campo RMS |
|
351 |
* @param rms Cadena que representa el RMS |
|
352 |
*/ |
|
353 |
public void setRMS(String rms){ |
|
354 |
this.getConectorPanel().getDataPointsTabPanel().getSelectPointsPanel().getErrorPointPanel().getTRMS().setText(rms); |
|
355 |
} |
|
356 |
|
|
357 |
/** |
|
358 |
* Asigna el valor del campo de residuo en X |
|
359 |
* @param rms Cadena que representa el RMS |
|
360 |
*/ |
|
361 |
public void setResX(String resX){ |
|
362 |
this.getConectorPanel().getDataPointsTabPanel().getSelectPointsPanel().getErrorPointPanel().getTResX().setText(resX); |
|
363 |
} |
|
364 |
|
|
365 |
/** |
|
366 |
* Asigna el valor del campo de residuo en Y |
|
367 |
* @param rms Cadena que representa el RMS |
|
368 |
*/ |
|
369 |
public void setResY(String resY){ |
|
370 |
this.getConectorPanel().getDataPointsTabPanel().getSelectPointsPanel().getErrorPointPanel().getTResY().setText(resY); |
|
371 |
} |
|
372 |
|
|
373 |
/** |
|
374 |
* Asigna el valor del campo RMS |
|
375 |
* @param rms Cadena que representa el RMS |
|
376 |
*/ |
|
377 |
public void setTotal(String total){ |
|
378 |
this.getConectorPanel().getDataPointsTabPanel().getSelectPointsPanel().getErrorPointPanel().getTTotal().setText(total); |
|
379 |
} |
|
380 |
|
|
381 |
/** |
|
382 |
* Selecciona un tab del cuadro |
|
383 |
* @param index |
|
384 |
*/ |
|
385 |
public void setSelectedTab(int index){ |
|
386 |
try{ |
|
387 |
this.getConectorPanel().getDataPointsTabPanel().getTbPoints().setSelectedIndex(index); |
|
388 |
}catch(IllegalArgumentException ex){ |
|
389 |
//Si peta al seleccionar un tab, pues nada. |
|
390 |
} |
|
391 |
} |
|
392 |
|
|
393 |
/** |
|
394 |
* @param extended The extended to set. |
|
395 |
*/ |
|
396 |
public void setEnlarge(boolean enlarge) { |
|
397 |
this.enlarge = enlarge; |
|
398 |
if(!enlarge){ |
|
399 |
frame.setSize(new Dimension(this.normalWidth + 12, this.normalHeight + 10)); |
|
400 |
//frame.setPreferredSize(new Dimension(this.normalWidth + 12, this.normalHeight + 10)); |
|
401 |
this.setPreferredSize(new Dimension(this.normalWidth, this.normalHeight)); |
|
402 |
this.setSize(new Dimension(this.normalWidth, this.normalHeight)); |
|
403 |
this.getConectorPanel().setCanvasVisible(false); |
|
404 |
}else{ |
|
405 |
frame.setSize(new Dimension(this.normalWidth + 12, this.enlargeHeight + 10)); |
|
406 |
//frame.setPreferredSize(new Dimension(this.normalWidth + 12, this.enlargeHeight + 10)); |
|
407 |
this.setPreferredSize(new Dimension(this.normalWidth, this.enlargeHeight)); |
|
408 |
this.setSize(new Dimension(this.normalWidth, this.enlargeHeight)); |
|
409 |
this.getConectorPanel().setCanvasVisible(true); |
|
410 |
} |
|
411 |
frame.pack(); |
|
412 |
} |
|
413 |
|
|
414 |
/** |
|
415 |
* @return Returns the extended. |
|
416 |
*/ |
|
417 |
public boolean isEnlarge() { |
|
418 |
return enlarge; |
|
419 |
} |
|
420 |
|
|
421 |
/** |
|
422 |
* Obtiene el panel conector |
|
423 |
* @return |
|
424 |
*/ |
|
425 |
public ConectorPanel getConectorPanel() { |
|
426 |
if (conectorPanel == null) { |
|
427 |
conectorPanel = new ConectorPanel(); |
|
428 |
} |
|
429 |
|
|
430 |
return conectorPanel; |
|
431 |
} |
|
432 |
|
|
433 |
/** |
|
434 |
* This method initializes jPanel |
|
435 |
* |
|
436 |
* @return javax.swing.JPanel |
|
437 |
*/ |
|
438 |
private JPanel getPBotones() { |
|
439 |
if (pBotones == null) { |
|
440 |
FlowLayout flowLayout1 = new FlowLayout(); |
|
441 |
pBotones = new JPanel(); |
|
442 |
pBotones.setLayout(flowLayout1); |
|
443 |
flowLayout1.setHgap(2); |
|
444 |
flowLayout1.setAlignment(java.awt.FlowLayout.RIGHT); |
|
445 |
pBotones.add(getDialogButtons(), null); |
|
446 |
pBotones.add(getBProcess(), null); |
|
447 |
pBotones.add(getBAccept(), null); |
|
448 |
pBotones.add(getBCancel(), null); |
|
449 |
} |
|
450 |
return pBotones; |
|
451 |
} |
|
452 |
|
|
453 |
/** |
|
454 |
* @return Returns the GeoRedimBehavior. |
|
455 |
*/ |
|
456 |
public GeoRedimBehavior getGeoRedimBehavior() { |
|
457 |
return rb; |
|
458 |
} |
|
459 |
|
|
460 |
/** |
|
461 |
* @param rb The GeoRedimBehavior to set. |
|
462 |
*/ |
|
463 |
public void setGeoRedimBehavior(GeoRedimBehavior rb) { |
|
464 |
this.rb = rb; |
|
465 |
} |
|
466 |
|
|
467 |
/** |
|
468 |
* @return Returns the GeoMoveBehavior |
|
469 |
*/ |
|
470 |
public GeoMoveBehavior getGeoMoveBehavior() { |
|
471 |
return mb; |
|
472 |
} |
|
473 |
|
|
474 |
/** |
|
475 |
* @param mb The GeoMoveBehavior to set. |
|
476 |
*/ |
|
477 |
public void setGeoMoveBehavior(GeoMoveBehavior mb) { |
|
478 |
this.mb = mb; |
|
479 |
} |
|
480 |
|
|
481 |
|
|
482 |
/** |
|
483 |
* Obtiene el punto de la lista que ha sido seleccionado |
|
484 |
* @return |
|
485 |
*/ |
|
486 |
public int getSelectedPoint(){ |
|
487 |
return getConectorPanel().getDataPointsTabPanel(). |
|
488 |
getSelectPointsPanel().getTableControlerPanel().getSelectedIndex(); |
|
489 |
} |
|
490 |
|
|
491 |
/** |
|
492 |
* Obtiene el control de la mini imagen que tiene los botones a la izquierda |
|
493 |
* @return ZoomControlPanel |
|
494 |
*/ |
|
495 |
public ZoomControlPanel getZoomControlLeft(){ |
|
496 |
return this.getConectorPanel().getAdjustGeorefPanel().getZoomLeft(); |
|
497 |
} |
|
498 |
|
|
499 |
/** |
|
500 |
* Obtiene el control de la mini imagen que tiene los botones a la derecha |
|
501 |
* @return ZoomControlPanel |
|
502 |
*/ |
|
503 |
public ZoomControlPanel getZoomControlRight(){ |
|
504 |
return this.getConectorPanel().getAdjustGeorefPanel().getZoomRight(); |
|
505 |
} |
|
506 |
|
|
507 |
/** |
|
508 |
* Obtiene el panel de selecci?n de puntos |
|
509 |
* @return Panel de selecci?n de puntos |
|
510 |
*/ |
|
511 |
public SelectPointsPanel getSelectPointsPanel(){ |
|
512 |
return this.getConectorPanel().getDataPointsTabPanel().getSelectPointsPanel(); |
|
513 |
} |
|
514 |
|
|
515 |
/** |
|
516 |
* Obtiene el panel de opciones |
|
517 |
* @return OptionPanel |
|
518 |
*/ |
|
519 |
public OptionsPanel getOptionsPanel(){ |
|
520 |
return getConectorPanel().getAdjustGeorefPanel().getOptionsPanel(); |
|
521 |
} |
|
522 |
|
|
523 |
/** |
|
524 |
* Activa o desactiva este panel y todos los que lo componen |
|
525 |
* @param enabled variable booleana para la activaci?n y/o desactivaci?n |
|
526 |
*/ |
|
527 |
public void setEnabled(boolean enabled){ |
|
528 |
conectorPanel.getDataPointsTabPanel().getSelectPointsPanel().setEnabled(enabled); |
|
529 |
conectorPanel.getAdjustGeorefPanel().setEnabled(enabled); |
|
530 |
} |
|
531 |
|
|
532 |
/** |
|
533 |
* |
|
534 |
*/ |
|
535 |
public ViewPort getLeftInitViewport(ViewPort vp, Point2D center, ViewPort initVp, double zoom){ |
|
536 |
return getZoomControlLeft().getCanvas().initViewPort(vp, center, initVp, zoom); |
|
537 |
} |
|
538 |
|
|
539 |
/** |
|
540 |
* Obtiene el bot?n de activar/desactivar la inserci?n de punto del panel del control de |
|
541 |
* tabla |
|
542 |
* @return JToggleButton |
|
543 |
*/ |
|
544 |
public JToggleButton getBInsertPointOfTablePoints(){ |
|
545 |
return tablePointsPanel.getPTablePanelButtons().getBInsertPoint(); |
|
546 |
} |
|
547 |
|
|
548 |
/** |
|
549 |
* Obtiene el bot?n de activar/desactivar la inserci?n de punto del panel del control de |
|
550 |
* tabla |
|
551 |
* @return JToggleButton |
|
552 |
*/ |
|
553 |
public JButton getBNewPointOfTablePoints(){ |
|
554 |
return tablePointsPanel.getTableControlerPanel().getBNew(); |
|
555 |
} |
|
556 |
|
|
557 |
/** |
|
558 |
* This method initializes jPanel |
|
559 |
* |
|
560 |
* @return javax.swing.JPanel |
|
561 |
*/ |
|
562 |
public DialogButtons getDialogButtons() { |
|
563 |
if (dialogButtons == null) { |
|
564 |
dialogButtons = new DialogButtons(); |
|
565 |
} |
|
566 |
return dialogButtons; |
|
567 |
} |
|
568 |
|
|
569 |
/** |
|
570 |
* Activa/desactiva los botones de la barra correspondientes al salvado |
|
571 |
* de datos a disco. |
|
572 |
* @param active true activa los controles y false los desactiva. |
|
573 |
*/ |
|
574 |
public void setEnableSaveButtons(boolean active){ |
|
575 |
getDialogButtons().getBSave().setEnabled(active); |
|
576 |
getDialogButtons().getBExportToCSV().setEnabled(active); |
|
577 |
} |
|
578 |
//**********************End Setters & Getters***************** |
|
579 |
|
|
580 |
public void updateData(int nPunto, Point2D pixel, Point2D map, View view) { |
|
581 |
|
|
582 |
} |
|
583 |
|
|
584 |
public void savePoints() throws Exception { |
|
585 |
|
|
586 |
} |
|
587 |
|
|
588 |
public boolean isErrorCSV() { |
|
589 |
return false; |
|
590 |
} |
|
591 |
|
|
592 |
public double[][] getErrors() { |
|
593 |
return null; |
|
594 |
} |
|
595 |
|
|
596 |
public void close() { |
|
597 |
|
|
598 |
} |
|
599 |
|
|
600 |
} |
|
601 |
|
|
602 |
|
|
603 |
} |
|
0 | 604 |
tags/tmp_build/extensions/extGeoreferencing/src-test/org/gvsig/georeferencing/gui/pointsTable/PointsTable.java | ||
---|---|---|
1 |
package org.gvsig.georeferencing.gui.pointsTable; |
|
2 |
|
|
3 |
import java.awt.Component; |
|
4 |
import java.awt.GridLayout; |
|
5 |
import java.awt.event.ActionEvent; |
|
6 |
import java.awt.event.ActionListener; |
|
7 |
|
|
8 |
import javax.swing.AbstractCellEditor; |
|
9 |
import javax.swing.JCheckBox; |
|
10 |
import javax.swing.JPanel; |
|
11 |
import javax.swing.JScrollPane; |
|
12 |
import javax.swing.JTable; |
|
13 |
import javax.swing.SwingConstants; |
|
14 |
import javax.swing.SwingUtilities; |
|
15 |
import javax.swing.event.ListSelectionListener; |
|
16 |
import javax.swing.table.DefaultTableModel; |
|
17 |
import javax.swing.table.TableCellEditor; |
|
18 |
import javax.swing.table.TableCellRenderer; |
|
19 |
import javax.swing.table.TableModel; |
|
20 |
|
|
21 |
/** |
|
22 |
* Clase que representa la tabla de puntos |
|
23 |
* @author Nacho Brodin (brodin_ign@gva.es) |
|
24 |
*/ |
|
25 |
public class PointsTable extends JPanel { |
|
26 |
|
|
27 |
private JTable table = null; |
|
28 |
private JScrollPane jScrollPane = null; |
|
29 |
|
|
30 |
private TableModelPoint tabModel = null; |
|
31 |
private TableModel tabModel1 = null; |
|
32 |
final static String[] columnNames = {"", "N?", "X", "Y", |
|
33 |
"X'", "Y'", "Error X", |
|
34 |
"Error Y", "RMS"}; |
|
35 |
|
|
36 |
|
|
37 |
public TableModelPoint getTableModel(){ |
|
38 |
return tabModel; |
|
39 |
} |
|
40 |
|
|
41 |
public PointsTable() { |
|
42 |
super(new GridLayout(1,0)); |
|
43 |
|
|
44 |
|
|
45 |
//table.setPreferredScrollableViewportSize(new Dimension(500, 70)); |
|
46 |
|
|
47 |
|
|
48 |
/*TableColumn column = null; |
|
49 |
for (int i = 0; i < table.getModel().getColumnCount(); i++) { |
|
50 |
column = table.getColumnModel().getColumn(i); |
|
51 |
if(i == 0){ |
|
52 |
column.setCellRenderer(new CheckColumnRenderer()); |
|
53 |
column.setCellEditor(new CheckColumnEditor()); |
|
54 |
column.setMaxWidth(19); |
|
55 |
column.setMinWidth(19); |
|
56 |
} |
|
57 |
if(i == 1){ |
|
58 |
column.setMaxWidth(25); |
|
59 |
column.setMinWidth(25); |
|
60 |
} |
|
61 |
if((i == 2) || (i == 3)){ |
|
62 |
column.setMinWidth(50); |
|
63 |
column.setMaxWidth(140); |
|
64 |
} |
|
65 |
if((i == 4) || (i == 5)){ |
|
66 |
column.setMinWidth(80); |
|
67 |
column.setMaxWidth(190); |
|
68 |
} |
|
69 |
}*/ |
|
70 |
|
|
71 |
add( getJScrollPane()); |
|
72 |
} |
|
73 |
|
|
74 |
private JScrollPane getJScrollPane() { |
|
75 |
if (jScrollPane == null) { |
|
76 |
jScrollPane = new JScrollPane(); |
|
77 |
jScrollPane.setBounds(6, 17, 469, 280); |
|
78 |
jScrollPane.setViewportView(getTable()); |
|
79 |
} |
|
80 |
return jScrollPane; |
|
81 |
} |
|
82 |
|
|
83 |
public JTable getTable() { |
|
84 |
if (table == null) { |
|
85 |
table = new JTable(); |
|
86 |
table.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); |
|
87 |
table.getSelectionModel().addListSelectionListener(new ListSelectionListener() { |
|
88 |
public void valueChanged(javax.swing.event.ListSelectionEvent e) { |
|
89 |
|
|
90 |
} |
|
91 |
}); |
|
92 |
//tabModel = new TableModelPoint(); |
|
93 |
tabModel1 = new DefaultTableModel(null, columnNames); |
|
94 |
table = new JTable(tabModel1); |
|
95 |
} |
|
96 |
return table; |
|
97 |
} |
|
98 |
|
|
99 |
/** |
|
100 |
* TableModel del JTable que contiene los puntos con sus errores |
|
101 |
* @author Nacho Brodin (brodin_ign@gva.es) |
|
102 |
*/ |
|
103 |
public class TableModelPoint extends DefaultTableModel { |
|
104 |
|
|
105 |
public TableModelPoint(){ |
|
106 |
super(new Object[0][9], columnNames); |
|
107 |
} |
|
108 |
|
|
109 |
public int getColumnCount() { |
|
110 |
return columnNames.length; |
|
111 |
} |
|
112 |
|
|
113 |
public String getColumnName(int col) { |
|
114 |
return columnNames[col]; |
|
115 |
} |
|
116 |
|
|
117 |
public Class getColumnClass(int c) { |
|
118 |
if (c == 0) |
|
119 |
return Boolean.class; |
|
120 |
return String.class; |
|
121 |
} |
|
122 |
|
|
123 |
public void addNew() { |
|
124 |
super.addRow(new Object[] {new Boolean(true), "", "", "", "", "", "", "", ""}); |
|
125 |
} |
|
126 |
|
|
127 |
public void setValueAt(Object value, int row, int col) { |
|
128 |
super.setValueAt(value, row, col); |
|
129 |
} |
|
130 |
|
|
131 |
/** |
|
132 |
* Devuelve true si la celda es editable. Solo son editables |
|
133 |
* las celdas de los puntos. |
|
134 |
*/ |
|
135 |
public boolean isCellEditable(int row, int col){ |
|
136 |
return false; |
|
137 |
} |
|
138 |
} |
|
139 |
|
|
140 |
class CheckColumnRenderer extends JCheckBox implements TableCellRenderer { |
|
141 |
final private static long serialVersionUID = -3370601314380922368L; |
|
142 |
|
|
143 |
public Component getTableCellRendererComponent(JTable table, |
|
144 |
Object value, |
|
145 |
boolean isSelected, |
|
146 |
boolean hasFocus, |
|
147 |
int row, int column) { |
|
148 |
if (value == null) { |
|
149 |
this.setSelected(false); |
|
150 |
} |
|
151 |
|
|
152 |
Boolean ValueAsBoolean = (Boolean) value; |
|
153 |
this.setSelected(ValueAsBoolean.booleanValue()); |
|
154 |
this.setHorizontalAlignment(SwingConstants.CENTER); |
|
155 |
|
|
156 |
return this; |
|
157 |
} |
|
158 |
} |
|
159 |
|
|
160 |
class CheckColumnEditor extends AbstractCellEditor implements TableCellEditor { |
|
161 |
final private static long serialVersionUID = -3370601314380922368L; |
|
162 |
public JCheckBox checkBox; |
|
163 |
|
|
164 |
public CheckColumnEditor() { |
|
165 |
super(); |
|
166 |
checkBox = new JCheckBox(); |
|
167 |
checkBox.addActionListener(new ActionListener() { |
|
168 |
public void actionPerformed(ActionEvent event) { |
|
169 |
//checkBox.setSelected(!checkBox.isSelected()); |
|
170 |
fireEditingStopped(); |
|
171 |
} |
|
172 |
}); |
|
173 |
} |
|
174 |
|
|
175 |
public Component getTableCellEditorComponent(JTable table, Object obj, |
|
176 |
boolean isSelected, |
|
177 |
int row, int col) { |
|
178 |
checkBox.setHorizontalAlignment(SwingUtilities.CENTER); |
|
179 |
|
|
180 |
Boolean lValueAsBoolean = (Boolean) obj; |
|
181 |
checkBox.setSelected(lValueAsBoolean.booleanValue()); |
|
182 |
|
|
183 |
return checkBox; |
|
184 |
} |
|
185 |
|
|
186 |
public Object getCellEditorValue() { |
|
187 |
return new Boolean(checkBox.isSelected()); |
|
188 |
} |
|
189 |
} |
|
190 |
|
|
191 |
|
|
192 |
} |
|
0 | 193 |
tags/tmp_build/extensions/extGeoreferencing/src-test/org/gvsig/georeferencing/gui/pointsTable/TestTable.java | ||
---|---|---|
1 |
package org.gvsig.georeferencing.gui.pointsTable; |
|
2 |
import java.awt.event.ComponentEvent; |
|
3 |
import java.awt.event.ComponentListener; |
|
4 |
|
|
5 |
import javax.swing.JFrame; |
|
6 |
import javax.swing.UIManager; |
|
7 |
|
|
8 |
|
|
9 |
public class TestTable extends JFrame implements ComponentListener{ |
|
10 |
|
|
11 |
private int widthTable = 575, heightTable = 110; |
|
12 |
|
|
13 |
public void componentHidden(ComponentEvent arg0) { |
|
14 |
|
|
15 |
} |
|
16 |
public void componentMoved(ComponentEvent arg0) { |
|
17 |
|
|
18 |
} |
|
19 |
public void componentResized(ComponentEvent arg0) { |
|
20 |
System.out.println(this.getSize().getWidth()+" "+this.getSize().getHeight()); |
|
21 |
} |
|
22 |
public void componentShown(ComponentEvent arg0) { |
|
23 |
|
|
24 |
} |
|
25 |
public TestTable(){ |
|
26 |
this.addComponentListener(this); |
|
27 |
this.setSize(553,158); |
|
28 |
PointsTable table = new PointsTable(); |
|
29 |
table.setSize(new java.awt.Dimension(widthTable, heightTable)); |
|
30 |
table.setPreferredSize(new java.awt.Dimension(widthTable, heightTable)); |
|
31 |
this.getContentPane().add(table); |
|
32 |
this.show(); |
|
33 |
} |
|
34 |
/** |
|
35 |
* @param args |
|
36 |
*/ |
|
37 |
public static void main(String[] args) { |
|
38 |
try { |
|
39 |
//UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
40 |
UIManager.setLookAndFeel("com.jgoodies.looks.plastic.PlasticXPLookAndFeel"); |
|
41 |
//UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); |
|
42 |
} catch( Exception e ) { |
|
43 |
System.err.println( "No se puede cambiar al LookAndFeel"); |
|
44 |
} |
|
45 |
TestTable f = new TestTable(); |
|
46 |
} |
|
47 |
|
|
48 |
} |
|
0 | 49 |
tags/tmp_build/extensions/extGeoreferencing/src-test/TestFrame.java | ||
---|---|---|
1 |
import java.awt.event.ComponentEvent; |
|
2 |
import java.awt.event.ComponentListener; |
|
3 |
|
|
4 |
import javax.swing.JFrame; |
|
5 |
|
|
6 |
import org.gvsig.georeferencing.gui.selectPoints.DataPointPanel; |
|
7 |
|
|
8 |
|
|
9 |
public class TestFrame extends JFrame implements ComponentListener{ |
|
10 |
|
|
11 |
public void componentHidden(ComponentEvent arg0) { |
|
12 |
|
|
13 |
} |
|
14 |
public void componentMoved(ComponentEvent arg0) { |
|
15 |
|
|
16 |
} |
|
17 |
public void componentResized(ComponentEvent arg0) { |
|
18 |
System.out.println(this.getSize().getWidth()+" "+this.getSize().getHeight()); |
|
19 |
} |
|
20 |
public void componentShown(ComponentEvent arg0) { |
|
21 |
|
|
22 |
|
|
23 |
} |
|
24 |
public TestFrame(){ |
|
25 |
this.addComponentListener(this); |
|
26 |
this.setSize(353,158); |
|
27 |
DataPointPanel tbp = new DataPointPanel(); |
|
28 |
this.getContentPane().add(tbp); |
|
29 |
this.show(); |
|
30 |
} |
|
31 |
/** |
|
32 |
* @param args |
|
33 |
*/ |
|
34 |
public static void main(String[] args) { |
|
35 |
TestFrame f = new TestFrame(); |
|
36 |
} |
|
37 |
|
|
38 |
} |
|
0 | 39 |
tags/tmp_build/extensions/extGeoreferencing/src-test/TestGeoOperation.java | ||
---|---|---|
1 |
import org.gvsig.georeferencing.GeoOperations; |
|
2 |
import org.gvsig.georeferencing.utils.AffineT; |
|
3 |
import org.gvsig.georeferencing.utils.PointT; |
|
4 |
|
|
5 |
|
|
6 |
public class TestGeoOperation { |
|
7 |
|
|
8 |
private static final int MAXPOINTS = 3; |
|
9 |
|
|
10 |
public TestGeoOperation(GeoOperations go, double x, double y, int o){ |
|
11 |
PointT[] srcPoints = new PointT[TestGeoOperation.MAXPOINTS]; |
|
12 |
PointT[] dstPoints = new PointT[TestGeoOperation.MAXPOINTS]; |
|
13 |
PointT corner = new PointT(); |
|
14 |
int numsrcpoints = 3; |
|
15 |
int order = 0; |
|
16 |
AffineT affine = new AffineT(); |
|
17 |
|
|
18 |
if(numsrcpoints >= 3*10) |
|
19 |
order = 3; |
|
20 |
else if(numsrcpoints >= 3*6) |
|
21 |
order = 2; |
|
22 |
else |
|
23 |
order = 1; |
|
24 |
|
|
25 |
srcPoints[0] = new PointT(); |
|
26 |
srcPoints[0].setX(3108); |
|
27 |
srcPoints[0].setY(3523); |
|
28 |
srcPoints[0].setI(numsrcpoints); |
|
29 |
|
|
30 |
srcPoints[1] = new PointT(); |
|
31 |
srcPoints[1].setX(1651); |
|
32 |
srcPoints[1].setY(1463); |
|
33 |
srcPoints[1].setI(numsrcpoints); |
|
34 |
|
|
35 |
srcPoints[2] = new PointT(); |
|
36 |
srcPoints[2].setX(5578); |
|
37 |
srcPoints[2].setY(300); |
|
38 |
srcPoints[2].setI(numsrcpoints); |
|
39 |
|
|
40 |
dstPoints[0] = new PointT(); |
|
41 |
dstPoints[0].setX(433700.9072); |
|
42 |
dstPoints[0].setY(4582611.7542); |
|
43 |
dstPoints[0].setI(numsrcpoints); |
|
44 |
|
|
45 |
dstPoints[1] = new PointT(); |
|
46 |
dstPoints[1].setX(432975.8313); |
|
47 |
dstPoints[1].setY(4581581.5722); |
|
48 |
dstPoints[1].setI(numsrcpoints); |
|
49 |
|
|
50 |
dstPoints[2] = new PointT(); |
|
51 |
dstPoints[2].setX(434939.2793); |
|
52 |
dstPoints[2].setY(4581000.0758); |
|
53 |
dstPoints[2].setI(numsrcpoints); |
|
54 |
|
|
55 |
//Calcular la transformaci?n afin por m?nimos cuadrados |
|
56 |
affine = go.computeLeastSquaresAffine(affine, srcPoints, dstPoints, order); |
|
57 |
|
|
58 |
corner.setX(x); |
|
59 |
corner.setY(y); |
|
60 |
order = o; |
|
61 |
|
|
62 |
//Transformaci?no de un punto |
|
63 |
double[] point = go.transformPoint((int)corner.getX(), (int)corner.getY(), affine); |
|
64 |
|
|
65 |
System.out.println("Order: "+order); |
|
66 |
System.out.println("Pixel Point: ("+corner.getX()+", "+corner.getY()+")"); |
|
67 |
System.out.println("Map Point: ("+point[0]+", "+point[1]+")"); |
|
68 |
} |
|
69 |
/** |
|
70 |
* @param args |
|
71 |
*/ |
|
72 |
public static void main(String[] args) { |
|
73 |
GeoOperations go = new GeoOperations(); |
|
74 |
double x = Double.parseDouble(args[0]); |
|
75 |
double y = Double.parseDouble(args[1]); |
|
76 |
int order = Integer.parseInt(args[2]); |
|
77 |
TestGeoOperation f = new TestGeoOperation(go, x, y, order); |
|
78 |
} |
|
79 |
|
|
80 |
} |
|
0 | 81 |
tags/tmp_build/extensions/extGeoreferencing/config/text_fr.properties | ||
---|---|---|
1 |
#Translations for language [fr] |
|
2 |
#Mon Feb 26 16:06:24 CET 2007 |
|
3 |
accept_tip= |
|
4 |
aceptar=Accepter |
|
5 |
activo=Active |
|
6 |
algoritmo=Algorithme |
|
7 |
ampl_extent= |
|
8 |
anterior=Pr\u00e9c\u00e9dent |
|
9 |
borrar_todos=Supprimer tous les points |
|
10 |
borrar_uno=Supprimer le point s\u00e9lectionn\u00e9 |
|
11 |
cancel_tip= |
|
12 |
cancelar=Annuler |
|
13 |
cargar=Charger |
|
14 |
centrar_punto= |
|
15 |
confirmacion=Confirmation |
|
16 |
coordenadas_vacias=Coordonn\u00e9es vides |
|
17 |
crear_worldfile=Cr\u00e9er le fichier de g\u00e9or\u00e9f\u00e9rencement (worldfile) |
|
18 |
cuadro_no_asociado= |
|
19 |
de=de |
|
20 |
de\ = |
|
21 |
de\ 0= |
|
22 |
desactivar_capa= |
|
23 |
desactivar_puntos= |
|
24 |
eliminar_punto=Supprimer un point |
|
25 |
eliminar_todos_puntos=Supprimer tous les points |
|
26 |
error_capa_puntos=Erreur au chargement des couches. |
|
27 |
errores_csv= |
|
28 |
escala=Echelle |
|
29 |
fuera_de_extent=Le point s\u00e9lectionn\u00e9 est en dehors de la zone d'extension de l'image |
|
30 |
gcps_exist= |
|
31 |
georaster=G\u00e9or\u00e9f\u00e9rencement |
|
32 |
georef=G\u00e9or\u00e9f\u00e9rencer |
|
33 |
georef_file= |
|
34 |
georreferenciar=G\u00e9or\u00e9f\u00e9rencer |
|
35 |
grado_polinomio=Degr\u00e9 du polynome |
|
36 |
imagen_no_accesible= |
|
37 |
import_from_ascii= |
|
38 |
latitud=Latitude |
|
39 |
load_from_xml=Charger \u00e0 partir d'un fichier XML (.rmf) |
|
40 |
mostrar_puntos=Afficher les points |
|
41 |
Mover_geo=D\u00e9placer l'image \u00e0 g\u00e9or\u00e9f\u00e9rencer |
|
42 |
no=Non |
|
43 |
nuevo=Nouveau |
|
44 |
options=Options |
|
45 |
plegar_despl=Plegar/Desplegar |
|
46 |
primero=Premier |
|
47 |
procesar=Calculer |
|
48 |
process_tip= |
|
49 |
punto=Point |
|
50 |
puntos=Points |
|
51 |
save_to_ascii=Exporter la table des points dans un fichier texte. |
|
52 |
save_to_xml=Enregistrer le fichier XML (.grf) |
|
53 |
seleccionar_fichero=S\u00e9lectionner le fichier |
|
54 |
selectfromview=S\u00e9lectionner les points depuis la vue. |
|
55 |
siguiente=Suivant |
|
56 |
table=Table |
|
57 |
total=Total |
|
58 |
ultimo=Dernier |
|
59 |
usar_georeferenciacion_de_la_imagen= |
|
60 |
yes=Oui |
|
61 |
Zoom_previo=Zoom pr\u00e9c\u00e9dent. |
|
62 |
Zoom_sgte= |
|
0 | 63 |
tags/tmp_build/extensions/extGeoreferencing/config/text_eu.properties | ||
---|---|---|
1 |
#Translations for language [eu] |
|
2 |
#Wed Mar 21 09:03:04 CET 2007 |
|
3 |
accept_tip=GCPak prozesatzen ditu eta geoerreferentziazioa gordetzen du. GCPen sarrera amaitutzat jotzen du. |
|
4 |
aceptar=Ados |
|
5 |
activo=Aktibo |
|
6 |
algoritmo=Algoritmoa |
|
7 |
ampl_extent=Aldatu geoerreferentziatu beharreko irudiaren luzapena |
|
8 |
anterior=Aurrekoa |
|
9 |
borrar_todos=Ezabatu puntu guztiak |
|
10 |
borrar_uno=Ezabatu hautatutako puntua |
|
11 |
cancel_tip=Itxi elkarrizketa leihoa eta desegin azken aldaketak. Berriro editatu daiteke geoerreferentziatzeko. |
|
12 |
cancelar=Utzi |
|
13 |
cargar=Kargatu |
|
14 |
centrar_punto=Zentratu hautatutako puntua bistan |
|
15 |
confirmacion=Baieztapena |
|
16 |
coordenadas_vacias=Koordenatuak hutsik daude |
|
17 |
crear_worldfile=Sortu geoerreferentziatzeko fitxategia (worldfile) |
|
18 |
cuadro_no_asociado=Geoerreferentziazio laukia ez dago bistaren gaineko geruza bati ere ez lotuta, itxi egingo da. Mesedez, ireki behar duzun geruzari lotutako elkarrizketa ireki. |
|
19 |
de=hemendik |
|
20 |
de\ =de |
|
21 |
de\ 0=de 0 |
|
22 |
desactivar_capa=Geruza lehen puntutik aurrera ezkutatzen du. |
|
23 |
desactivar_puntos=Puntuen geruza lehen puntutik aurrera desaktibatzen du |
|
24 |
eliminar_punto=Ezabatu puntua |
|
25 |
eliminar_todos_puntos=Ezabatu puntu guztiak |
|
26 |
error_capa_puntos=Errorea geruza kargatzean. Agian geoerreferentziazioa ez dago aktibo. |
|
27 |
errores_csv=Gorde erroreak CSV fitxategian. |
|
28 |
escala=Eskala |
|
29 |
fuera_de_extent=Hautatutako puntua irudiaren hedaduratik kanpo dago |
|
30 |
gcps_exist=\u0093Raster-ari lotutako kontrol puntuak badaude. Gainean idaztea nahi duzu?\u0094 |
|
31 |
georaster=Geoerreferentziazioa |
|
32 |
georef=Geoerreferentziatu |
|
33 |
georef_file=Geoerreferentziatzeko fitxategia |
|
34 |
georreferenciar=Geoerreferentziatu |
|
35 |
grado_polinomio=Polinomioaren gradua |
|
36 |
imagen_no_accesible=Ezin izan da irudia atzitu. |
|
37 |
import_from_ascii=Inportatu puntuen taula .csv fitxategitik. |
|
38 |
latitud=Latitudea |
|
39 |
load_from_xml=Kargatu XML fitxategitik (.rmf) |
|
40 |
mostrar_puntos=Erakutsi zenbakiak |
|
41 |
Mover_geo=Mugitu geoerreferentziatu beharreko irudia |
|
42 |
no=Ez |
|
43 |
nuevo=Berria |
|
44 |
options=Aukerak |
|
45 |
plegar_despl=Plegar/Desplegar |
|
46 |
primero=Lehenengoa |
|
47 |
procesar=Prozesatu |
|
48 |
process_tip=GCPak prozesatzen ditu eta irudiari aldi baterako extent bat esleitzen dio |
|
49 |
punto=Puntua |
|
50 |
puntos=Puntuak |
|
51 |
save_to_ascii=Esportatu puntuen taula testu fitxategira. |
|
52 |
save_to_xml=Gorde XML (.grf) fitxategira |
|
53 |
seleccionar_fichero=Hautatu fitxategia |
|
54 |
selectfromview=Hautatu puntua bistatik |
|
55 |
siguiente=Hurrengoa |
|
56 |
table=Taula |
|
57 |
total=Guztira |
|
58 |
ultimo=Azkena |
|
59 |
usar_georeferenciacion_de_la_imagen=Erabili irudiaren geoerreferentziazioa |
|
60 |
yes=Bai |
|
61 |
Zoom_previo=Aurreko hedadura |
|
62 |
Zoom_sgte=Hurrengo luzapena |
|
0 | 63 |
tags/tmp_build/extensions/extGeoreferencing/config/text_nl.properties | ||
---|---|---|
1 |
#Translations for language [nl] |
|
2 |
#Mon Feb 26 16:06:24 CET 2007 |
|
3 |
accept_tip= |
|
4 |
aceptar=OK |
|
5 |
activo= |
|
6 |
algoritmo= |
|
7 |
ampl_extent= |
|
8 |
anterior=Vorige |
|
9 |
borrar_todos= |
|
10 |
borrar_uno= |
|
11 |
cancel_tip= |
|
12 |
cancelar=Afbreken |
|
13 |
cargar= |
|
14 |
centrar_punto= |
|
15 |
confirmacion= |
|
16 |
coordenadas_vacias= |
|
17 |
crear_worldfile= |
|
18 |
cuadro_no_asociado= |
|
19 |
de= |
|
20 |
de\ = |
|
21 |
de\ 0= |
|
22 |
desactivar_capa= |
|
23 |
desactivar_puntos= |
|
24 |
eliminar_punto= |
|
25 |
eliminar_todos_puntos= |
|
26 |
error_capa_puntos= |
|
27 |
errores_csv= |
|
28 |
escala=Schaal |
|
29 |
fuera_de_extent= |
|
30 |
gcps_exist= |
|
31 |
georaster= |
|
32 |
georef= |
|
33 |
georef_file= |
|
34 |
georreferenciar= |
|
35 |
grado_polinomio= |
|
36 |
imagen_no_accesible= |
|
37 |
import_from_ascii= |
|
38 |
load_from_xml= |
|
39 |
mostrar_puntos= |
|
40 |
Mover_geo= |
|
41 |
no= |
|
42 |
nuevo=Nieuw |
|
43 |
options= |
|
44 |
plegar_despl= |
|
45 |
primero= |
|
46 |
procesar= |
|
47 |
process_tip= |
|
48 |
punto=Punt |
|
49 |
puntos= |
|
50 |
save_to_ascii= |
|
51 |
save_to_xml= |
|
52 |
seleccionar_fichero= |
|
53 |
selectfromview= |
|
54 |
siguiente=Volgende |
|
55 |
table= |
|
56 |
total= |
|
57 |
ultimo= |
|
58 |
usar_georeferenciacion_de_la_imagen= |
|
59 |
yes= |
|
60 |
Zoom_previo= |
|
61 |
Zoom_sgte= |
|
0 | 62 |
tags/tmp_build/extensions/extGeoreferencing/config/text_pl.properties | ||
---|---|---|
1 |
#Translations for language [pl] |
|
2 |
#Mon Aug 06 12:43:02 CEST 2007 |
|
3 |
accept_tip=Oblicz globalne punkty wpasowania i zapisz wpasowanie rastra. Doko\u0144cz wprowadzanie globalnych punkt\u00f3w wpasowania. |
|
4 |
aceptar=Akceptuj |
|
5 |
activo=Aktywny |
|
6 |
algoritmo=Algorytm |
|
7 |
ampl_extent=Zmie\u0144 zasi\u0119g obrazu aby dokona\u0107 wpasowania |
|
8 |
anterior=Poprzedni |
|
9 |
borrar_todos=Usu\u0144 wszystko |
|
10 |
borrar_uno=Usu\u0144 zaznaczone |
|
11 |
cancel_tip=Wycofuje zmiany i zamyka okno. Mo\u017cna dokona\u0107 ponownego wpasowania. |
|
12 |
cancelar=Anuluj |
|
13 |
cargar=Wczytaj |
|
14 |
centrar_punto=Wycentruj w wybranym punkcie |
|
15 |
confirmacion=Potwierdzenie |
|
16 |
coordenadas_vacias=Brak wsp\u00f3\u0142rz\u0119dnych |
|
17 |
crear_worldfile=Utw\u00f3rz plik z punktami wpasowania (worldfile) |
|
18 |
cuadro_no_asociado=Okno wpasowania nie jest powi\u0105zane z \u017cadn\u0105 warstw\u0105 widoku i zostanie zamkni\u0119te. Prosz\u0119 otworzy\u0107 okno powi\u0105zane z wybran\u0105 warstw\u0105. |
|
19 |
de=z |
|
20 |
de\ =z |
|
21 |
de\ 0=z 0 |
|
22 |
desactivar_capa=Ukryj raster po pierwszym punkcie |
|
23 |
desactivar_puntos=Nie pokazuj punkt\u00f3w dostosowania po pierwszym punkcie |
|
24 |
eliminar_punto=Usu\u0144 punkt |
|
25 |
eliminar_todos_puntos=Usu\u0144 wszystkie punkty |
|
26 |
error_capa_puntos=B\u0142\u0105d przy wczytywaniu warstwy.Sprawd\u017a czy warstwa georeferencyjna jest aktywna. |
|
27 |
errores_csv=Do\u0142\u0105cz b\u0142\u0119dy do pliku CSV. |
|
28 |
escala=Skala |
|
29 |
fuera_de_extent=Zaznaczony punkt jest poza zasi\u0119giem obrazu |
|
30 |
gcps_exist=Globalne punkty wpasowania istniej\u0105 |
|
31 |
georaster=Wpasowanie rastra |
|
32 |
georef=Wpasowanie rastra |
|
33 |
georef_file=Plik do wpasowania |
|
34 |
georreferenciar=Wpasuj raster |
|
35 |
grado_polinomio=Stopie\u0144 wielomianu |
|
36 |
imagen_no_accesible=Brak dost\u0119pu do obrazu |
|
37 |
import_from_ascii=Importuj tabele z pliku CSV. |
|
38 |
load_from_xml=Za\u0142aduj z pliku .xml (.rmf) |
|
39 |
mostrar_puntos=Poka\u017c numery |
|
40 |
Mover_geo=Przesu\u0144 wpasowany raster |
|
41 |
no=Nie |
|
42 |
nuevo=Nowy |
|
43 |
options=Opcje |
|
44 |
plegar_despl=Zaawansowane |
|
45 |
primero=Pierwszy |
|
46 |
procesar=Oblicz |
|
47 |
process_tip=Tworzy globalne punkty wpasowania i przydziela tymczasowe rozszerzenie do obraz\u00f3w |
|
48 |
punto=Punkt |
|
49 |
puntos=Punkty |
|
50 |
save_to_ascii=Exportuj tabel\u0119 punkt\u00f3w do pliku tekstowego |
|
51 |
save_to_xml=Zapisz do XML (.grf) |
|
52 |
seleccionar_fichero=Wybierz plik |
|
53 |
selectfromview=Wybierz punkt z widoku |
|
54 |
siguiente=Nast\u0119pny |
|
55 |
table=Tabela |
|
56 |
total=Og\u00f3\u0142em |
|
57 |
ultimo=Ostatni |
|
58 |
usar_georeferenciacion_de_la_imagen=Uzyj georeferencji obrazu |
|
59 |
yes=Tak |
|
60 |
Zoom_previo=Poprzednie przybli\u017cenie |
|
61 |
Zoom_sgte=Kolejne przybli\u017cenie |
|
0 | 62 |
tags/tmp_build/extensions/extGeoreferencing/config/text_it.properties | ||
---|---|---|
1 |
#Translations for language [it] |
|
2 |
#Tue May 08 12:19:37 CEST 2007 |
|
3 |
accept_tip=Processa i GPS e salva la georeferenziazione. Considera finito l'inserimento dei GPC. |
|
4 |
aceptar=Accetta |
|
5 |
activo=Attivo |
|
6 |
algoritmo=Algoritmo |
|
7 |
ampl_extent=Modifica l'estensione dell'immagine da georeferenziare |
|
8 |
anterior=Precedente |
|
9 |
borrar_todos=Elimina tutto |
|
10 |
borrar_uno=Elimina punto selezionato |
|
11 |
cancel_tip=Annulla le ultime modifiche e chiude la finestra. La georeferenziazione pu\u00f2 essere modificata in seguito. |
|
12 |
cancelar=Cancella |
|
13 |
cargar=Carica |
|
14 |
centrar_punto=Centra punto selezionato nella visuale |
|
15 |
confirmacion=Conferma |
|
16 |
coordenadas_vacias=Coordinate vuote |
|
17 |
crear_worldfile=Crea file di georeferenziazione (worldfile) |
|
18 |
cuadro_no_asociado=Il quadro di georeferenziazione non \u00e8 associato con alcun layer nella vista, verr\u00e0 chiuso. Per favore, aprire la finestra di dialogo associata al layer richiesto. |
|
19 |
de=di |
|
20 |
de\ =di |
|
21 |
de\ 0=di 0 |
|
22 |
desactivar_capa=Nascondi Layer dopo il primo punto. |
|
23 |
desactivar_puntos=Disattiva il layer dei punti dopo il primo punto. |
|
24 |
eliminar_punto=Elimina punto |
|
25 |
eliminar_todos_puntos=Elimina tutti i punti |
|
26 |
error_capa_puntos=Errore nel caricamento del layer. E' possibile che il layer di georeferenziazione non sia attivo. |
|
27 |
errores_csv=Includi errori nel file CSV. |
|
28 |
escala=Scala |
|
29 |
fuera_de_extent=Il punto selezionato \u00e8 esterno agli estremi dell'immagine |
|
30 |
gcps_exist=Esistono gi\u00e0 punti di controllo associati al raster. Desideri sovrascriverli? |
|
31 |
georaster=Georeferenziazione |
|
32 |
georef=Georeferenziare |
|
33 |
georef_file=File di georeferenziazione |
|
34 |
georreferenciar=Georeferenzia immagine |
|
35 |
grado_polinomio=Grado del polinomio |
|
36 |
imagen_no_accesible=Impossibile accedere all'immagine |
|
37 |
import_from_ascii=Importa tabella da file CSV (.csv). |
|
38 |
latitud=Latitudine |
|
39 |
load_from_xml=Carica da file XML (.rmf). |
|
40 |
mostrar_puntos=Mostra numerazione dei GCP |
|
41 |
Mover_geo=Sposta immagine da georeferenziare |
|
42 |
no=No |
|
43 |
nuevo=Nuovo |
|
44 |
options=Opzioni |
|
45 |
plegar_despl=Piegare/Stendere |
|
46 |
primero=Primo |
|
47 |
procesar=Processa |
|
48 |
process_tip=Processa i GCP e assegna un'estensione temporale alle immagini |
|
49 |
punto=Punto |
|
50 |
puntos=Punti |
|
51 |
save_to_ascii=Esporta tabella dei punti in un file di testo. |
|
52 |
save_to_xml=Salva su file XLM (.grf) |
|
53 |
seleccionar_fichero=Seleziona file |
|
54 |
selectfromview=Seleziona un punto dalla vista |
|
55 |
siguiente=Successivo |
|
56 |
table=Tabella |
|
57 |
total=Totale |
|
58 |
ultimo=Ultimo |
|
59 |
usar_georeferenciacion_de_la_imagen=Utilizzare la georeferenziazione dell'immagine |
Also available in: Unified diff