org.deegree.geometry.primitive
Interface OrientableCurve

All Superinterfaces:
Curve, GeometricPrimitive, Geometry, GMLObject, Object, TypedObjectNode
All Known Implementing Classes:
DefaultOrientableCurve

public interface OrientableCurve
extends Curve

An OrientableCurve consists of a wrapped base Curve and an additional orientation.

If the orientation is *not* reversed, then the OrientableCurve is identical to the base curve. If the orientation is reversed, then the OrientableCurve is related to the base curve with a parameterization that reverses the sense of the curve traversal.

Version:
$Revision: 31641 $, $Date: 2011-08-24 21:24:55 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.Curve
Curve.CurveType
 
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.GeometricPrimitive
GeometricPrimitive.PrimitiveType
 
Nested classes/interfaces inherited from interface org.deegree.geometry.Geometry
Geometry.GeometryType
 
Method Summary
 Curve getBaseCurve()
          Returns the Curve that this OrientableCurve is based on.
 Curve.CurveType getCurveType()
          Must always return Curve.CurveType.OrientableCurve.
 boolean isReversed()
          Returns whether the orientation of this curve is reversed compared to the base curve.
 
Methods inherited from interface org.deegree.geometry.primitive.Curve
getAsLineString, getBoundary, getControlPoints, getCurveSegments, getEndPoint, getLength, getPrimitiveType, getStartPoint, isClosed
 
Methods inherited from interface org.deegree.geometry.primitive.GeometricPrimitive
getGeometryType
 
Methods inherited from interface org.deegree.geometry.Geometry
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDifference, getDistance, getEnvelope, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches
 
Methods inherited from interface org.deegree.commons.tom.gml.GMLObject
getGMLProperties
 

Method Detail

getCurveType

Curve.CurveType getCurveType()
Must always return Curve.CurveType.OrientableCurve.

Specified by:
getCurveType in interface Curve
Returns:
Curve.CurveType.OrientableCurve

isReversed

boolean isReversed()
Returns whether the orientation of this curve is reversed compared to the base curve.

Returns:
true, if the orientation is reversed, false otherwise

getBaseCurve

Curve getBaseCurve()
Returns the Curve that this OrientableCurve is based on.

Returns:
the base Curve


Copyright © 2011. All Rights Reserved.