Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libFMap_geometries / src / org / gvsig / fmap / geom / primitive / Point.java @ 28990

History | View | Annotate | Download (2.68 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

    
23
/*
24
* AUTHORS (In addition to CIT):
25
* 2009 {Iver T.I.}   {Task}
26
*/
27

    
28
package org.gvsig.fmap.geom.primitive;
29

    
30
import org.gvsig.fmap.geom.DirectPosition;
31

    
32
/**
33
 * <p>
34
 * This interface is equivalent to the GM_Point specified in 
35
 * <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>.
36
 * It is the basic data type for a geometric object consisting 
37
 * of one and only one point. 
38
 * </p>
39
 * @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
40
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
41
 */
42
public interface Point extends Primitive {
43
        
44
        /**
45
         * Gets the {@link DirectPosition of a point}, that is
46
         * composed by a set of ordinates
47
         * @return
48
         * The direct position
49
         */
50
        public DirectPosition getDirectPosition();
51
        
52
        /**
53
         * Sets a ordinate in a concrete dimension
54
         * @param dimension
55
         * The dimension to set
56
         * @param value
57
         * The value to set
58
         */
59
        void setCoordinateAt(int dimension, double value);
60
        
61
        /**
62
         * Sets the point coordinates
63
         * @param values
64
         * The coordinates to set
65
         */
66
        void setCoordinates(double[] values);
67
        
68
        /**
69
         * Sets the X coordinate
70
         * @param x
71
         * The value to set
72
         */
73
        void setX(double x);
74
        
75
        /**
76
         * Sets the Y coordinate
77
         * @param y
78
         * The value to set
79
         */
80
        void setY(double y);
81
        
82
        /**
83
         * Gets the coordinate in a concrete dimension
84
         * @param dimension
85
         * The ordinate dimension
86
         * @return
87
         * The value of the ordinate
88
         */
89
        double getCoordinateAt(int dimension);
90
        
91
        /**
92
         * Returns an array of coordinates
93
         * @return
94
         * The point coordinates
95
         */
96
        double[] getCoordinates();
97
        
98
        /**
99
         * Returns the X coordinate 
100
         * @return
101
         * The X coordinate
102
         */
103
        double getX();
104
        
105
        /**
106
         * Returns the Y coordinate 
107
         * @return
108
         * The Y coordinate
109
         */
110
        double getY();
111
        
112
}