org.deegree.model.geometry
Interface GM_CurveSegment

All Superinterfaces:
GM_GenericCurve
All Known Subinterfaces:
GM_LineString
All Known Implementing Classes:
GM_CurveSegment_Impl, GM_LineString_Impl

public interface GM_CurveSegment
extends GM_GenericCurve

The interface defines the root of each unit building Curves

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

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

Author:
Andreas Poth

Method Summary
 boolean contains(GM_Object gmo)
          The Boolean valued operation "contains" shall return TRUE if this GM_Object contains another GM_Object.
 CS_CoordinateSystem getCoordinateSystem()
          returns the coordinate system of the curve segment
 int getNumberOfPoints()
          returns the number of points building the curve segment
 GM_Position getPositionAt(int index)
          returns the curve position at the submitted index
 GM_Position[] getPositions()
          returns all positions of the segement as array of GM_Point
 boolean intersects(GM_Object gmo)
          The Boolean valued operation "intersects" shall return TRUE if this GM_Object intersects another GM_Object.
 void reverse()
          reverses the direction of the curvesegment
 
Methods inherited from interface org.deegree.model.geometry.GM_GenericCurve
getAsLineString, getEndPoint, getLength, getStartPoint
 

Method Detail

getNumberOfPoints

public int getNumberOfPoints()
returns the number of points building the curve segment


getPositions

public GM_Position[] getPositions()
returns all positions of the segement as array of GM_Point


getPositionAt

public GM_Position getPositionAt(int index)
returns the curve position at the submitted index


reverse

public void reverse()
reverses the direction of the curvesegment


getCoordinateSystem

public CS_CoordinateSystem getCoordinateSystem()
returns the coordinate system of the curve segment


intersects

public boolean intersects(GM_Object gmo)
The Boolean valued operation "intersects" shall return TRUE if this GM_Object intersects another GM_Object. Within a GM_Complex, the GM_Primitives do not intersect one another. In general, topologically structured data uses shared geometric objects to capture intersection information.


contains

public boolean contains(GM_Object gmo)
The Boolean valued operation "contains" shall return TRUE if this GM_Object contains another GM_Object.