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

abstract class GM_OrientablePrimitive_Impl
extends GM_Primitive_Impl
implements GM_OrientablePrimitive, java.io.Serializable

default implementation of the GM_OrientablePrimitive interface from package jago.model. the implementation is abstract because it doesn't make sense to instantiate it.

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

Version:
8.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_OrientablePrimitive_Impl(CS_CoordinateSystem crs, char orientation)
          the constructor sets the curves orientation
 
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_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_OrientablePrimitive_Impl

protected GM_OrientablePrimitive_Impl(CS_CoordinateSystem crs,
                                      char orientation)
                               throws GM_Exception
the constructor sets the curves orientation

Parameters:
crs - spatial reference system of the geometry
orientation - orientation of the curve ('+'|'-')
Throws:
GM_Exception - will be thrown if orientation is invalid
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