org.deegree_impl.model.geometry
Class GM_OrientableCurve_Impl

java.lang.Object
  extended byorg.deegree_impl.model.geometry.GM_Object_Impl
      extended byorg.deegree_impl.model.geometry.GM_Primitive_Impl
          extended byorg.deegree_impl.model.geometry.GM_OrientablePrimitive_Impl
              extended byorg.deegree_impl.model.geometry.GM_OrientableCurve_Impl
All Implemented Interfaces:
GM_Object, GM_OrientableCurve, GM_OrientablePrimitive, GM_Primitive, java.io.Serializable
Direct Known Subclasses:
GM_Curve_Impl, GM_Ring_Impl

abstract class GM_OrientableCurve_Impl
extends GM_OrientablePrimitive_Impl
implements GM_OrientableCurve, java.io.Serializable

default implementierung of the GM_OrientableSurface interface from package jago.model. the implementation is abstract because only initialization of the spatial reference system is unique to all orientated curves

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

Version:
11.6.2001
Author:
Andreas Poth


Field Summary
protected  char orientation
           
private static long serialVersionUID
          Use serialVersionUID for interoperability.
 
Fields inherited from class org.deegree_impl.model.geometry.GM_Object_Impl
boundary, centroid, convexHull, crs, empty, envelope, mute, valid
 
Constructor Summary
protected GM_OrientableCurve_Impl(CS_CoordinateSystem crs)
          Creates a new GM_OrientableCurve_Impl object.
protected GM_OrientableCurve_Impl(CS_CoordinateSystem crs, char orientation)
          Creates a new GM_OrientableCurve_Impl object.
 
Method Summary
 char getOrientation()
          returns the orientation of a curve
 void setOrientation(char orientation)
          sets the curves orientation
 
Methods inherited from class org.deegree_impl.model.geometry.GM_Object_Impl
calculateParam, clone, contains, contains, difference, distance, equals, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, intersection, intersects, isEmpty, isValid, isWithinDistance, setCoordinateSystem, setEmpty, setValid, toString, translate, union
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Use serialVersionUID for interoperability.

See Also:
Constant Field Values

orientation

protected char orientation
Constructor Detail

GM_OrientableCurve_Impl

protected GM_OrientableCurve_Impl(CS_CoordinateSystem crs)
                           throws GM_Exception
Creates a new GM_OrientableCurve_Impl object.

Parameters:
crs -
Throws:
GM_Exception

GM_OrientableCurve_Impl

protected GM_OrientableCurve_Impl(CS_CoordinateSystem crs,
                                  char orientation)
                           throws GM_Exception
Creates a new GM_OrientableCurve_Impl object.

Parameters:
crs -
orientation -
Throws:
GM_Exception
Method Detail

getOrientation

public char getOrientation()
returns the orientation of a curve

Specified by:
getOrientation in interface GM_OrientablePrimitive
Returns:
curve orientation ('+'|'-')

setOrientation

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

Specified by:
setOrientation in interface GM_OrientablePrimitive
Parameters:
orientation - orientation of the curve ('+'|'-')
Throws:
GM_Exception - will be thrown if orientation is invalid