org.deegree.geometry.standard.multi
Class DefaultMultiSolid

java.lang.Object
  extended by org.deegree.geometry.standard.AbstractDefaultGeometry
      extended by org.deegree.geometry.standard.multi.DefaultMultiGeometry<Solid>
          extended by org.deegree.geometry.standard.multi.DefaultMultiSolid
All Implemented Interfaces:
Iterable<Solid>, Collection<Solid>, List<Solid>, GMLObject, Object, TypedObjectNode, Geometry, MultiGeometry<Solid>, MultiSolid

public class DefaultMultiSolid
extends DefaultMultiGeometry<Solid>
implements MultiSolid

Default implementation of MultiSolid.

Version:
$Revision: 31641 $, $Date: 2011-08-24 21:24:55 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.deegree.geometry.multi.MultiGeometry
MultiGeometry.MultiGeometryType
 
Nested classes/interfaces inherited from interface org.deegree.geometry.Geometry
Geometry.GeometryType
 
Field Summary
 
Fields inherited from class org.deegree.geometry.standard.multi.DefaultMultiGeometry
members
 
Fields inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry
crs, env, id, jtsFactory, jtsGeometry, pm
 
Constructor Summary
DefaultMultiSolid(String id, ICRS crs, PrecisionModel pm, List<Solid> members)
          Creates a new DefaultMultiSolid from the given parameters.
 
Method Summary
 MultiGeometry.MultiGeometryType getMultiGeometryType()
           
 double getVolume()
          The volume of all contained Solids measured in units of the used CRS.
 
Methods inherited from class org.deegree.geometry.standard.multi.DefaultMultiGeometry
add, add, addAll, addAll, buildJTSGeometry, clear, contains, containsAll, get, getCoordinateDimension, getEnvelope, getGeometryType, indexOf, isEmpty, isSFSCompliant, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 
Methods inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry
contains, createFromJTS, crosses, equals, getAsDefaultGeometry, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getDifference, getDistance, getGMLProperties, getId, getIntersection, getJTSGeometry, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, toString, touches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.geometry.multi.MultiGeometry
getGeometryType
 
Methods inherited from interface org.deegree.geometry.Geometry
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDifference, getDistance, getEnvelope, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches
 
Methods inherited from interface org.deegree.commons.tom.gml.GMLObject
getGMLProperties
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

DefaultMultiSolid

public DefaultMultiSolid(String id,
                         ICRS crs,
                         PrecisionModel pm,
                         List<Solid> members)
Creates a new DefaultMultiSolid from the given parameters.

Parameters:
id - identifier, may be null
crs - coordinate reference system, may be null
pm - precision model, may be null
members -
Method Detail

getVolume

public double getVolume()
Description copied from interface: MultiSolid
The volume of all contained Solids measured in units of the used CRS.

Specified by:
getVolume in interface MultiSolid
Returns:
volume

getMultiGeometryType

public MultiGeometry.MultiGeometryType getMultiGeometryType()
Specified by:
getMultiGeometryType in interface MultiGeometry<Solid>
Overrides:
getMultiGeometryType in class DefaultMultiGeometry<Solid>
Returns:
the type of MultiGeometry, see MultiGeometry.MultiGeometryType


Copyright © 2011. All Rights Reserved.