01: /*
02: * This file is part of the GeOxygene project source files.
03: *
04: * GeOxygene aims at providing an open framework which implements OGC/ISO specifications for
05: * the development and deployment of geographic (GIS) applications. It is a open source
06: * contribution of the COGIT laboratory at the Institut Géographique National (the French
07: * National Mapping Agency).
08: *
09: * See: http://oxygene-project.sourceforge.net
10: *
11: * Copyright (C) 2005 Institut Géographique National
12: *
13: * This library is free software; you can redistribute it and/or modify it under the terms
14: * of the GNU Lesser General Public License as published by the Free Software Foundation;
15: * either version 2.1 of the License, or any later version.
16: *
17: * This library is distributed in the hope that it will be useful, but WITHOUT ANY
18: * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
19: * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
20: *
21: * You should have received a copy of the GNU Lesser General Public License along with
22: * this library (see file LICENSE if present); if not, write to the Free Software
23: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24: *
25: */
26:
27: package fr.ign.cogit.geoxygene.spatial.coordgeom;
28:
29: /** NON IMPLEMENTE.
30: * Courbe qui est à une distance constante d'une courbe de base.
31: *
32: * @author Thierry Badard & Arnaud Braun
33: * @version 1.0
34: *
35: */
36:
37: class GM_OffsetCurve extends GM_CurveSegment {
38:
39: /**
40: * Courbe de base à partir de laquelle est générée self.
41: */
42: protected GM_CurveSegment baseCurve;
43:
44: public GM_CurveSegment getBaseCurve() {
45: return this .baseCurve;
46: }
47:
48: protected void setBaseCurve(GM_CurveSegment value) {
49: this .baseCurve = value;
50: }
51:
52: public int cardBaseCurve() {
53: if (this .baseCurve == null)
54: return 0;
55: else
56: return 1;
57: }
58:
59: /**
60: * Distance de self à la courbe de base. (NORME : cet attribut est de type Length.)
61: */
62: protected double distance;
63:
64: public double getDistance() {
65: return this .distance;
66: }
67:
68: /**
69: * Inutile en 2D.
70: */
71: /* protected Vecteur refDirection;
72: public Vecteur getRefDirection () {
73: return this.refDirection;
74: }
75: */
76: /** NON IMPLEMENTE. */
77: // implemente une methode de GM_CurveSegment
78: public DirectPositionList coord() {
79: return null;
80: }
81:
82: /** NON IMPLEMENTE. */
83: // implemente une methode de GM_CurveSegment
84: public GM_CurveSegment reverse() {
85: return null;
86: }
87:
88: }
|