gvsig-raster / org.gvsig.raster / branches / org.gvsig.raster.2.4 / org.gvsig.raster / org.gvsig.raster.lib / org.gvsig.raster.lib.buffer / org.gvsig.raster.lib.buffer.api / src / main / java / org / gvsig / raster / lib / buffer / api / ROI.java @ 5439
History | View | Annotate | Download (2.25 KB)
1 |
/* gvSIG. Desktop Geographic Information System.
|
---|---|
2 |
*
|
3 |
* Copyright ? 2007-2016 gvSIG Association
|
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., 51 Franklin Street, Fifth Floor, Boston,
|
18 |
* MA 02110-1301, USA.
|
19 |
*
|
20 |
* For any additional information, do not hesitate to contact us
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
22 |
*/
|
23 |
package org.gvsig.raster.lib.buffer.api; |
24 |
|
25 |
import java.awt.Color; |
26 |
|
27 |
import org.gvsig.fmap.geom.primitive.Envelope; |
28 |
|
29 |
|
30 |
/**
|
31 |
* @author fdiaz
|
32 |
*
|
33 |
*/
|
34 |
public interface ROI { |
35 |
|
36 |
// public RasterDataStore getStore();
|
37 |
|
38 |
/**
|
39 |
* Checks if the rectangle defined in the parameters is inside in the ROI or outside
|
40 |
* @param x
|
41 |
* @param y
|
42 |
* @param w
|
43 |
* @param h
|
44 |
* @return true if the rectangle defined in the parameters is inside in the ROI
|
45 |
*/
|
46 |
public boolean isInside(double x, double y, double w, double h); |
47 |
|
48 |
/**
|
49 |
* Checks if a point in pixel coordinates is inside of this region of interest
|
50 |
* @param x
|
51 |
* @param y
|
52 |
* @return true whether the point is inside
|
53 |
*/
|
54 |
public boolean isInsideOfPolygon(int x, int y); |
55 |
|
56 |
/**
|
57 |
* Gets the bounding box of this ROI
|
58 |
*
|
59 |
* @return the envelope
|
60 |
*/
|
61 |
public Envelope getROIExtent(); //FIXME: Antes pon?a Extent |
62 |
|
63 |
/**
|
64 |
* @return the color
|
65 |
*/
|
66 |
public Color getColor(); |
67 |
|
68 |
/**
|
69 |
* @param color
|
70 |
*/
|
71 |
public void setColor(Color color); |
72 |
|
73 |
/**
|
74 |
* @return the name
|
75 |
*/
|
76 |
public String getName(); |
77 |
|
78 |
/**
|
79 |
* @param name
|
80 |
*/
|
81 |
public void setName(String name); |
82 |
|
83 |
/**
|
84 |
* @return the indentifier
|
85 |
*/
|
86 |
public long getID(); |
87 |
|
88 |
/**
|
89 |
* @param id
|
90 |
*/
|
91 |
public void setID(long id); |
92 |
|
93 |
} |