svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_geometries / src / org / gvsig / fmap / geom / primitive / Envelope.java @ 21178
History | View | Annotate | Download (3.75 KB)
1 |
|
---|---|
2 |
/* gvSIG. Geographic Information System of the Valencian Government
|
3 |
*
|
4 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
5 |
* of the Valencian Government (CIT)
|
6 |
*
|
7 |
* This program is free software; you can redistribute it and/or
|
8 |
* modify it under the terms of the GNU General Public License
|
9 |
* as published by the Free Software Foundation; either version 2
|
10 |
* of the License, or (at your option) any later version.
|
11 |
*
|
12 |
* This program is distributed in the hope that it will be useful,
|
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15 |
* GNU General Public License for more details.
|
16 |
*
|
17 |
* You should have received a copy of the GNU General Public License
|
18 |
* along with this program; if not, write to the Free Software
|
19 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
20 |
* MA 02110-1301, USA.
|
21 |
*
|
22 |
*/
|
23 |
|
24 |
/*
|
25 |
* AUTHORS (In addition to CIT):
|
26 |
* ${year} IVER T.I. S.A. {{Task}}
|
27 |
*/
|
28 |
|
29 |
/* gvSIG. Geographic Information System of the Valencian Government
|
30 |
*
|
31 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
32 |
* of the Valencian Government (CIT)
|
33 |
*
|
34 |
* This program is free software; you can redistribute it and/or
|
35 |
* modify it under the terms of the GNU General Public License
|
36 |
* as published by the Free Software Foundation; either version 2
|
37 |
* of the License, or (at your option) any later version.
|
38 |
*
|
39 |
* This program is distributed in the hope that it will be useful,
|
40 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
41 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
42 |
* GNU General Public License for more details.
|
43 |
*
|
44 |
* You should have received a copy of the GNU General Public License
|
45 |
* along with this program; if not, write to the Free Software
|
46 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
47 |
* MA 02110-1301, USA.
|
48 |
*
|
49 |
*/
|
50 |
/*
|
51 |
* AUTHORS (In addition to CIT):
|
52 |
* ${year} IVER T.I. S.A. {{Task}}
|
53 |
*/
|
54 |
package org.gvsig.fmap.geom.primitive; |
55 |
|
56 |
|
57 |
|
58 |
/**
|
59 |
* A minimum bounding box or rectangle. Regardless of dimension, an Envelope
|
60 |
* can be represented without ambiguity as two direct positions (coordinate
|
61 |
* points). To encode an Envelope, it is sufficient to encode these two
|
62 |
* points. This is consistent with all of the data types in this
|
63 |
* specification, their state is represented by their publicly accessible
|
64 |
* attributes.
|
65 |
*/
|
66 |
public interface Envelope { |
67 |
/**
|
68 |
* Returns the center ordinate along the specified dimension.
|
69 |
*
|
70 |
* @param dimension DOCUMENT ME!
|
71 |
*
|
72 |
* @return DOCUMENT ME!
|
73 |
*/
|
74 |
double getCenter(int dimension); |
75 |
|
76 |
/**
|
77 |
* The length of coordinate sequence (the number of entries) in this
|
78 |
* envelope.
|
79 |
*
|
80 |
* @return DOCUMENT ME!
|
81 |
*/
|
82 |
int getDimension();
|
83 |
|
84 |
/**
|
85 |
* Returns the envelope length along the specified dimension.
|
86 |
*
|
87 |
* @param dimension
|
88 |
*
|
89 |
* @return
|
90 |
*/
|
91 |
double getLength(int dimension); |
92 |
|
93 |
/**
|
94 |
* A coordinate position consisting of all the minimal ordinates for each
|
95 |
* dimension for all points within the Envelope.
|
96 |
*
|
97 |
* @return
|
98 |
*/
|
99 |
double[] getLowerCorner(); |
100 |
|
101 |
/**
|
102 |
* Returns the maximal ordinate along the specified dimension.
|
103 |
*
|
104 |
* @param dimension
|
105 |
*
|
106 |
* @return
|
107 |
*/
|
108 |
double getMaximum(int dimension); |
109 |
|
110 |
/**
|
111 |
* Returns the minimal ordinate along the specified dimension.
|
112 |
*
|
113 |
* @param dimension
|
114 |
*
|
115 |
* @return
|
116 |
*/
|
117 |
double getMinimum(int dimension); |
118 |
|
119 |
/**
|
120 |
* A coordinate position consisting of all the maximal ordinates for each
|
121 |
* dimension for all points within the Envelope.
|
122 |
*
|
123 |
* @return
|
124 |
*/
|
125 |
double[] getUpperCorner(); |
126 |
|
127 |
void add(Envelope boundsShp);
|
128 |
} |