svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.geometry / org.gvsig.fmap.geometry.api / src / main / java / org / gvsig / fmap / geom / primitive / Circle.java @ 40435
History | View | Annotate | Download (2.41 KB)
1 | 40435 | jjdelcerro | /* 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 | /**
|
||
31 | * <p>
|
||
32 | * This interface is equivalent to the GM_Circle specified in
|
||
33 | * <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>.
|
||
34 | * Same as Arc, but closed to form a full circle. The "start" and "end" points are equal.
|
||
35 | * @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
|
||
36 | * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
|
||
37 | */
|
||
38 | public interface Circle extends Surface { |
||
39 | |||
40 | /**
|
||
41 | * Sets the two values to define a circle.
|
||
42 | * @param center
|
||
43 | * The center point of the circle.
|
||
44 | * @param radious
|
||
45 | * A point that is used to calculate the radius.
|
||
46 | */
|
||
47 | void setPoints(Point center, Point radious); |
||
48 | |||
49 | /**
|
||
50 | * Sets the two values to define a circle.
|
||
51 | * @param center
|
||
52 | * The center point of the circle.
|
||
53 | * @param radious
|
||
54 | * The radius of the circle.
|
||
55 | */
|
||
56 | void setPoints(Point center, double radious); |
||
57 | |||
58 | /**
|
||
59 | * Sets the values to define a circle from three points. The circle
|
||
60 | * will be inside or the area defined by the three points.
|
||
61 | * @param p1
|
||
62 | * First point
|
||
63 | * @param p2
|
||
64 | * Second point
|
||
65 | * @param p3
|
||
66 | * Third point
|
||
67 | */
|
||
68 | void setPoints(Point p1, Point p2, Point p3); |
||
69 | |||
70 | /**
|
||
71 | * Returns the center of the circle.
|
||
72 | * @return
|
||
73 | * The center of the circle.
|
||
74 | */
|
||
75 | Point getCenter();
|
||
76 | |||
77 | /**
|
||
78 | * Returns the radius of the circle
|
||
79 | * @return
|
||
80 | * The radius of the circle
|
||
81 | */
|
||
82 | double getRadious();
|
||
83 | } |