org.deegree_impl.model.geometry
Class GM_OrientableSurface_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_OrientableSurface_Impl
All Implemented Interfaces:
GM_Object, GM_OrientablePrimitive, GM_OrientableSurface, GM_Primitive, java.io.Serializable
Direct Known Subclasses:
GM_Surface_Impl

abstract class GM_OrientableSurface_Impl
extends GM_OrientablePrimitive_Impl
implements GM_OrientableSurface, java.io.Serializable

default implementation 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 surfaces

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

Version:
05.04.2002
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_OrientableSurface_Impl(CS_CoordinateSystem crs)
          Creates a new GM_OrientableSurface_Impl object.
protected GM_OrientableSurface_Impl(CS_CoordinateSystem crs, char orientation)
          Creates a new GM_OrientableSurface_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_OrientableSurface
getSurfaceBoundary
 
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_OrientableSurface_Impl

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

Parameters:
crs -
Throws:
GM_Exception

GM_OrientableSurface_Impl

protected GM_OrientableSurface_Impl(CS_CoordinateSystem crs,
                                    char orientation)
                             throws GM_Exception
Creates a new GM_OrientableSurface_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