svn-gvsig-desktop / tags / v1_0_2_Build_905 / extensions / extGeoreferencing / src / com / iver / cit / gvsig / fmap / layers / IGeoUi.java @ 10767
History | View | Annotate | Download (2.53 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2006 IVER T.I. and Generalitat Valenciana.
|
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 |
package com.iver.cit.gvsig.fmap.layers; |
20 |
|
21 |
import java.awt.geom.Point2D; |
22 |
|
23 |
import com.iver.cit.gvsig.fmap.ViewPort; |
24 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
25 |
|
26 |
|
27 |
/**
|
28 |
* Este interfaz debe ser implementado por el dialogo de georreferenciaci?n
|
29 |
* para que fmap pueda acceder a sus m?todos.
|
30 |
*
|
31 |
* @author Nacho Brodin (brodin_ign@gva.es)
|
32 |
*/
|
33 |
public interface IGeoUi { |
34 |
/**
|
35 |
* Obtiene el punto de la lista que ha sido seleccionado
|
36 |
* @return
|
37 |
*/
|
38 |
public int getSelectedPoint(); |
39 |
public int getWidth(); |
40 |
public int getHeight(); |
41 |
|
42 |
/**
|
43 |
* Obtiene el viewPort inicial de la miniimagen de la izquierda. Esta es la que tiene
|
44 |
* las coordenadas en pixeles.
|
45 |
* @param vp
|
46 |
* @param p
|
47 |
* @param initVp
|
48 |
* @param zoom
|
49 |
* @return
|
50 |
*/
|
51 |
public ViewPort getLeftInitViewport(ViewPort vp, Point2D center, ViewPort initVp, double zoom); |
52 |
|
53 |
/**
|
54 |
* A partir de nuevas coordenadas actualiza la vista, minimagen, capa de puntos el
|
55 |
* dialogo y la tabla.
|
56 |
*
|
57 |
*/
|
58 |
public void updateData(int nPunto, Point2D pixel, Point2D map, View view); |
59 |
|
60 |
/**
|
61 |
* Funci?n para salvar los puntos de control sobre el fichero .rmf asociado a la imagen.
|
62 |
* @param theView
|
63 |
*/
|
64 |
public void savePoints()throws Exception; |
65 |
|
66 |
/**
|
67 |
* Consulta si se desea incluir los errores cuando se exporta a fichero .csv
|
68 |
* @param errorCVS true si se incluyen los errores dentro del fichero y false si no se incluyen
|
69 |
*/
|
70 |
public boolean isErrorCSV(); |
71 |
|
72 |
/**
|
73 |
* Obtiene los errores en una matriz de Nx3 en la que cada fila es un punto y la
|
74 |
* columna 0 es el error en X, la columna 1 es el error en Y y la columna 2 es el error RMS.
|
75 |
* @return matriz de errores
|
76 |
*/
|
77 |
public double[][] getErrors(); |
78 |
|
79 |
/**
|
80 |
* Cierra el dialogo
|
81 |
*/
|
82 |
public void close(); |
83 |
} |