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 / Curve.java @ 40559
History | View | Annotate | Download (3.11 KB)
1 | 40559 | jjdelcerro | /**
|
---|---|---|---|
2 | * gvSIG. Desktop Geographic Information System.
|
||
3 | 40435 | jjdelcerro | *
|
4 | 40559 | jjdelcerro | * Copyright (C) 2007-2013 gvSIG Association.
|
5 | *
|
||
6 | 40435 | jjdelcerro | * This program is free software; you can redistribute it and/or
|
7 | * modify it under the terms of the GNU General Public License
|
||
8 | 40559 | jjdelcerro | * as published by the Free Software Foundation; either version 3
|
9 | 40435 | jjdelcerro | * of the License, or (at your option) any later version.
|
10 | 40559 | jjdelcerro | *
|
11 | 40435 | jjdelcerro | * 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 | 40559 | jjdelcerro | *
|
16 | 40435 | jjdelcerro | * 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 | 40559 | jjdelcerro | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 | 40435 | jjdelcerro | * MA 02110-1301, USA.
|
20 | 40559 | jjdelcerro | *
|
21 | * For any additional information, do not hesitate to contact us
|
||
22 | * at info AT gvsig.com, or visit our website www.gvsig.com.
|
||
23 | 40435 | jjdelcerro | */
|
24 | /*
|
||
25 | * AUTHORS (In addition to CIT):
|
||
26 | * 2009 {Iver T.I.} {Task}
|
||
27 | */
|
||
28 | |||
29 | package org.gvsig.fmap.geom.primitive; |
||
30 | |||
31 | /**
|
||
32 | * <p>
|
||
33 | * This interface is equivalent to the GM_Curve and the GM_CurveSegment specified in
|
||
34 | * <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>.
|
||
35 | * Curve is a descendent subtype of {@link Primitive} through {@link OrientablePrimitive}.
|
||
36 | * It is the basis for 1-dimensional geometry.
|
||
37 | * </p>
|
||
38 | * <p>
|
||
39 | * A curve is a continuous image of an open interval
|
||
40 | * and so could be written as a parameterized function such as c(t):(a, b) -> E^n where "t" is a real
|
||
41 | * parameter and E^n is Euclidean space of dimension n (usually 2 or 3, as determined by
|
||
42 | * the coordinate reference system). Any other parameterization that results in the same image curve,
|
||
43 | * traced in the same direction, such as any linear shifts and positive scales such as
|
||
44 | * e(t) = c(a + t(b-a)):(0,1) -> E^n, is an equivalent representation of the same curve.
|
||
45 | * </p>
|
||
46 | * <p>
|
||
47 | * Curves are continuous, connected, and have a measurable length in terms of
|
||
48 | * the coordinate system. The orientation of the curve is determined by this
|
||
49 | * parameterization, and is consistent with the tangent function, which
|
||
50 | * approximates the derivative function of the parameterization and shall
|
||
51 | * always point in the "forward" direction. The parameterization of the reversal of
|
||
52 | * the curve defined by c(t):(a, b) -> E^n would be defined by a function of the
|
||
53 | * form s(t) = c(a + b - t):(a, b) - >E^n.
|
||
54 | * </p>
|
||
55 | * <p>
|
||
56 | * In the ISO model a curve is composed of one or more curve segments.
|
||
57 | * In gvSIG a curve is not composed by curve segments: a curve is
|
||
58 | * one and only one curve segment.
|
||
59 | * </p>
|
||
60 | * @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>
|
||
61 | * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
|
||
62 | */
|
||
63 | public interface Curve extends OrientableCurve{ |
||
64 | |||
65 | /**
|
||
66 | * Sets the initial point and the end point of the curve. On this case,
|
||
67 | * the curve is a single line
|
||
68 | * @param initialPoint
|
||
69 | * The initial point
|
||
70 | * @param endPoint
|
||
71 | * The end point
|
||
72 | */
|
||
73 | public void setPoints(Point initialPoint, Point endPoint); |
||
74 | |||
75 | } |