org.deegree.model.geometry
Interface GM_OrientablePrimitive

All Superinterfaces:
GM_Object, GM_Primitive
All Known Subinterfaces:
GM_CompositeCurve, GM_CompositeSurface, GM_Curve, GM_OrientableCurve, GM_OrientableSurface, GM_Ring, GM_Shell, GM_Surface
All Known Implementing Classes:
GM_Curve_Impl, GM_OrientableCurve_Impl, GM_OrientablePrimitive_Impl, GM_OrientableSurface_Impl, GM_Ring_Impl, GM_Surface_Impl

public interface GM_OrientablePrimitive
extends GM_Primitive

The basic interface for orientated two dimensional geometries.

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

Version:
$Revision: 1.4 $ $Date: 2004/03/11 08:25:33 $

Author:
Andreas Poth

Method Summary
 char getOrientation()
          returns the orientation of a curve
 void setOrientation(char orientation)
          sets the curves orientation
 
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
 

Method Detail

getOrientation

public char getOrientation()
returns the orientation of a curve

Returns:
curve orientation ('+'|'-')

setOrientation

public void setOrientation(char orientation)
                    throws GM_Exception
sets the curves orientation

Parameters:
orientation - orientation of the curve ('+'|'-')
Throws:
GM_Exception - will be thrown if orientation is invalid