deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.model.spatialschema
Class MultiPrimitiveImpl

java.lang.Object
  extended by org.deegree.model.spatialschema.GeometryImpl
      extended by org.deegree.model.spatialschema.AggregateImpl
          extended by org.deegree.model.spatialschema.MultiPrimitiveImpl
All Implemented Interfaces:
java.io.Serializable, Aggregate, Geometry, MultiPrimitive
Direct Known Subclasses:
MultiCurveImpl, MultiPointImpl, MultiSurfaceImpl

public class MultiPrimitiveImpl
extends AggregateImpl
implements MultiPrimitive, java.io.Serializable

default implementation of the MultiPrimitive interface

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.deegree.model.spatialschema.AggregateImpl
aggregate
 
Fields inherited from class org.deegree.model.spatialschema.GeometryImpl
boundary, centroid, convexHull, crs, empty, envelope, mute, valid
 
Fields inherited from interface org.deegree.model.spatialschema.Geometry
BUFFER_CAP_BUTT, BUFFER_CAP_ROUND, BUFFER_CAP_SQUARE
 
Constructor Summary
protected MultiPrimitiveImpl(CoordinateSystem crs)
          Creates a new MultiPrimitiveImpl object.
 
Method Summary
protected  void calculateParam()
          recalculates internal parameters
 Primitive[] getAllPrimitives()
          returns all Primitives as array
 int getCoordinateDimension()
          The operation "coordinateDimension" shall return the dimension of the coordinates that define this Geometry, which must be the same as the coordinate dimension of the coordinate reference system for this Geometry.
 int getDimension()
          The operation "dimension" shall return the inherent dimension of this Geometry, which shall be less than or equal to the coordinate dimension.
 Primitive getPrimitiveAt(int index)
          returns the Primitive at the submitted index.
 void merge(Aggregate aggregate)
          merges this aggregation with another one
 
Methods inherited from class org.deegree.model.spatialschema.AggregateImpl
add, equals, getAll, getIterator, getObjectAt, getSize, insertObjectAt, intersects, isEmpty, isMember, removeAll, removeObject, removeObjectAt, setCoordinateSystem, setObjectAt, toString, translate
 
Methods inherited from class org.deegree.model.spatialschema.GeometryImpl
clone, contains, contains, difference, distance, getBoundary, getBuffer, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isValid, isWithinDistance, setEmpty, setTolerance, setValid, union
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.model.spatialschema.Aggregate
add, getAll, getIterator, getObjectAt, getSize, insertObjectAt, isMember, removeAll, removeObject, removeObjectAt, setObjectAt
 
Methods inherited from interface org.deegree.model.spatialschema.Geometry
contains, contains, difference, distance, getBoundary, getBuffer, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, intersects, isEmpty, isWithinDistance, setTolerance, translate, union
 

Constructor Detail

MultiPrimitiveImpl

protected MultiPrimitiveImpl(CoordinateSystem crs)
Creates a new MultiPrimitiveImpl object.

Parameters:
crs -
Method Detail

merge

public void merge(Aggregate aggregate)
           throws GeometryException
merges this aggregation with another one

Specified by:
merge in interface Aggregate
Overrides:
merge in class AggregateImpl
Throws:
GeometryException - will be thrown if the submitted isn't the same type as the recieving one.

getPrimitiveAt

public Primitive getPrimitiveAt(int index)
returns the Primitive at the submitted index.

Specified by:
getPrimitiveAt in interface MultiPrimitive
Returns:
the Primitive at the submitted index.

getAllPrimitives

public Primitive[] getAllPrimitives()
returns all Primitives as array

Specified by:
getAllPrimitives in interface MultiPrimitive
Returns:
all Primitives as array

getCoordinateDimension

public int getCoordinateDimension()
Description copied from interface: Geometry
The operation "coordinateDimension" shall return the dimension of the coordinates that define this Geometry, which must be the same as the coordinate dimension of the coordinate reference system for this Geometry.

Specified by:
getCoordinateDimension in interface Geometry
Returns:
-1

getDimension

public int getDimension()
Description copied from interface: Geometry
The operation "dimension" shall return the inherent dimension of this Geometry, which shall be less than or equal to the coordinate dimension. The dimension of a collection of geometric objects shall be the largest dimension of any of its pieces. Points are 0-dimensional, curves are 1-dimensional, surfaces are 2-dimensional, and solids are 3-dimensional.

Specified by:
getDimension in interface Geometry
Returns:
dimension

calculateParam

protected void calculateParam()
Description copied from class: GeometryImpl
recalculates internal parameters

Specified by:
calculateParam in class GeometryImpl

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org