org.geotools.geometry.iso.primitive
Class OrientableCurveImpl

java.lang.Object
  extended by org.geotools.geometry.iso.root.GeometryImpl
      extended by org.geotools.geometry.iso.primitive.PrimitiveImpl
          extended by org.geotools.geometry.iso.primitive.OrientablePrimitiveImpl
              extended by org.geotools.geometry.iso.primitive.OrientableCurveImpl
All Implemented Interfaces:
java.io.Serializable, org.opengis.geometry.Geometry, org.opengis.geometry.primitive.OrientableCurve, org.opengis.geometry.primitive.OrientablePrimitive, org.opengis.geometry.primitive.Primitive, org.opengis.geometry.TransfiniteSet
Direct Known Subclasses:
CurveImpl

public abstract class OrientableCurveImpl
extends OrientablePrimitiveImpl
implements org.opengis.geometry.primitive.OrientableCurve

OrientableCurve consists of a curve and an orientation inherited from OrientablePrimitive. If the orientation is "+", then the OrientableCurve is a Curve. If the orientation is "-", then the OrientableCurve is related to another Curve with a parameterization that reverses the sense of the curve traversal. OrientableCurve: {Orientation = "+" implies primitive = self}; {Orientation = "-" implies primitive.parameterization(length()-s) = parameterization(s)};

Author:
Jackson Roehrig & Sanjay Jena
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.geometry.iso.primitive.OrientablePrimitiveImpl
proxy
 
Fields inherited from class org.geotools.geometry.iso.primitive.PrimitiveImpl
complex, containedPrimitive, containingPrimitive
 
Fields inherited from class org.geotools.geometry.iso.root.GeometryImpl
crs, percision
 
Constructor Summary
protected OrientableCurveImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
          Constructor
 
Method Summary
abstract  org.opengis.geometry.primitive.CurveBoundary getBoundary()
           
 org.opengis.geometry.complex.CompositeCurve getComposite()
           
 org.opengis.geometry.primitive.Curve getPrimitive()
           
 org.opengis.geometry.primitive.OrientableCurve[] getProxy()
          Returns an array with two orientable primitives, whereas the first one is "this" object and the second one the field proxy
 
Methods inherited from class org.geotools.geometry.iso.primitive.OrientablePrimitiveImpl
createProxy, getOrientation
 
Methods inherited from class org.geotools.geometry.iso.primitive.PrimitiveImpl
addComplex, addContainedPrimitive, addContainingPrimitive, getComplexes, getContainedPrimitives, getContainingPrimitives, getMaximalComplex
 
Methods inherited from class org.geotools.geometry.iso.root.GeometryImpl
castToGeometryImpl, castToGeometryImpl, clone, contains, contains, cRelate, crosses, difference, disjoint, distance, equals, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getDimension, getDistance, getEnvelope, getMbRegion, getPositionFactory, getPrecision, getRepresentativePoint, intersection, intersects, isCycle, isMutable, overlaps, relate, symmetricDifference, toImmutable, touches, transform, transform, union, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opengis.geometry.primitive.OrientablePrimitive
getOrientation
 
Methods inherited from interface org.opengis.geometry.primitive.Primitive
getComplexes, getContainedPrimitives, getContainingPrimitives
 
Methods inherited from interface org.opengis.geometry.Geometry
clone, distance, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getDimension, getEnvelope, getMaximalComplex, getMbRegion, getPrecision, getRepresentativePoint, isCycle, isMutable, isSimple, toImmutable, transform, transform
 
Methods inherited from interface org.opengis.geometry.TransfiniteSet
contains, contains, difference, equals, intersection, intersects, symmetricDifference, union
 

Constructor Detail

OrientableCurveImpl

protected OrientableCurveImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Constructor

Parameters:
crs -
Method Detail

getBoundary

public abstract org.opengis.geometry.primitive.CurveBoundary getBoundary()
Specified by:
getBoundary in interface org.opengis.geometry.Geometry
Specified by:
getBoundary in interface org.opengis.geometry.primitive.OrientableCurve
Specified by:
getBoundary in interface org.opengis.geometry.primitive.Primitive
Specified by:
getBoundary in class PrimitiveImpl

getPrimitive

public org.opengis.geometry.primitive.Curve getPrimitive()
Specified by:
getPrimitive in interface org.opengis.geometry.primitive.OrientableCurve
Specified by:
getPrimitive in interface org.opengis.geometry.primitive.OrientablePrimitive
Overrides:
getPrimitive in class OrientablePrimitiveImpl

getComposite

public org.opengis.geometry.complex.CompositeCurve getComposite()
Specified by:
getComposite in interface org.opengis.geometry.primitive.OrientableCurve
Specified by:
getComposite in interface org.opengis.geometry.primitive.Primitive
Overrides:
getComposite in class PrimitiveImpl

getProxy

public org.opengis.geometry.primitive.OrientableCurve[] getProxy()
Returns an array with two orientable primitives, whereas the first one is "this" object and the second one the field proxy

Specified by:
getProxy in interface org.opengis.geometry.primitive.Primitive
Overrides:
getProxy in class OrientablePrimitiveImpl
Returns:
an array OrientablePrimitive[2] with the positive and the negative orientable primitive


Copyright © 1996-2010 Geotools. All Rights Reserved.