org.deegree.model.geometry
Interface GM_Curve

All Superinterfaces:
GM_GenericCurve, GM_Object, GM_OrientableCurve, GM_OrientablePrimitive, GM_Primitive
All Known Implementing Classes:
GM_Curve_Impl

public interface GM_Curve
extends GM_OrientableCurve, GM_GenericCurve

The interface defines the access to curve geometries. Curves are made of one or more curve segments.

-----------------------------------------------------

Version:
$Revision: 1.2 $ $Date: 2002/10/21 08:19:01 $

Author:
Andreas Poth

Method Summary
 void addCurveSegment(GM_CurveSegment segment)
          adds a segment at the end of the curve
 void deleteCurveSegmentAt(int index)
          deletes the segment at the submitted index
 GM_CurveSegment getCurveSegmentAt(int index)
          returns the curve segment at the submitted index
 int getNumberOfCurveSegments()
          returns the number of segments building the curve
 void insertCurveSegmentAt(GM_CurveSegment segment, int index)
          inserts a segment in the curve at the submitted position. all points with a position that equals index or is higher will be shifted
 void setCurveSegmentAt(GM_CurveSegment segment, int index)
          writes a segment to the curve at submitted position. the old point will be deleted
 
Methods inherited from interface org.deegree.model.geometry.GM_OrientableCurve
getCurveBoundary
 
Methods inherited from interface org.deegree.model.geometry.GM_OrientablePrimitive
getOrientation, setOrientation
 
Methods inherited from interface org.deegree.model.geometry.GM_Object
contains, contains, difference, distance, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDimension, getEnvelope, intersection, intersects, isEmpty, isWithinDistance, translate, union
 
Methods inherited from interface org.deegree.model.geometry.GM_GenericCurve
getAsLineString, getEndPoint, getLength, getStartPoint
 

Method Detail

getNumberOfCurveSegments

public int getNumberOfCurveSegments()
returns the number of segments building the curve


getCurveSegmentAt

public GM_CurveSegment getCurveSegmentAt(int index)
                                  throws GM_Exception
returns the curve segment at the submitted index

Throws:
GM_Exception

setCurveSegmentAt

public void setCurveSegmentAt(GM_CurveSegment segment,
                              int index)
                       throws GM_Exception
writes a segment to the curve at submitted position. the old point will be deleted

Throws:
GM_Exception

insertCurveSegmentAt

public void insertCurveSegmentAt(GM_CurveSegment segment,
                                 int index)
                          throws GM_Exception
inserts a segment in the curve at the submitted position. all points with a position that equals index or is higher will be shifted

Throws:
GM_Exception

addCurveSegment

public void addCurveSegment(GM_CurveSegment segment)
                     throws GM_Exception
adds a segment at the end of the curve

Throws:
GM_Exception

deleteCurveSegmentAt

public void deleteCurveSegmentAt(int index)
                          throws GM_Exception
deletes the segment at the submitted index

Throws:
GM_Exception