org.deegree.geometry.refs
Class SolidReference<T extends Solid>

java.lang.Object
  extended by org.deegree.commons.tom.Reference<T>
      extended by org.deegree.commons.tom.gml.GMLReference<T>
          extended by org.deegree.geometry.refs.GeometryReference<T>
              extended by org.deegree.geometry.refs.SolidReference<T>
All Implemented Interfaces:
GMLObject, Object, TypedObjectNode, Geometry, GeometricPrimitive, Solid

public class SolidReference<T extends Solid>
extends GeometryReference<T>
implements Solid

The class TODO add class documentation here.

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.primitive.Solid
Solid.SolidType
 
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.GeometricPrimitive
GeometricPrimitive.PrimitiveType
 
Nested classes/interfaces inherited from interface org.deegree.geometry.Geometry
Geometry.GeometryType
 
Constructor Summary
SolidReference(GMLReferenceResolver resolver, String uri, String baseURL)
          Creates a new SolidReference instance.
 
Method Summary
 Measure getArea(Unit requestedBaseUnit)
           
 Surface getExteriorSurface()
          Returns the exterior surface (shell) of the solid.
 List<Surface> getInteriorSurfaces()
          Returns the interior surfaces of the solid.
 GeometricPrimitive.PrimitiveType getPrimitiveType()
          Must always return GeometricPrimitive.PrimitiveType.Solid.
 Solid.SolidType getSolidType()
          Returns the type of solid.
 Measure getVolume(Unit requestedBaseUnit)
           
 
Methods inherited from class org.deegree.geometry.refs.GeometryReference
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDifference, getDistance, getEnvelope, getGeometryType, getGMLProperties, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches
 
Methods inherited from class org.deegree.commons.tom.Reference
getId, getReferencedObject, getURI, isLocal, isResolved, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deegree.geometry.primitive.GeometricPrimitive
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
 

Constructor Detail

SolidReference

public SolidReference(GMLReferenceResolver resolver,
                      String uri,
                      String baseURL)
Creates a new SolidReference instance.

Parameters:
resolver - used for resolving the reference, must not be null
uri - the geometry's uri, must not be null
baseURL - base URL for resolving the uri, may be null (no resolving of relative URLs)
Method Detail

getArea

public Measure getArea(Unit requestedBaseUnit)
Specified by:
getArea in interface Solid
Returns:
area of the solid's boundary

getPrimitiveType

public GeometricPrimitive.PrimitiveType getPrimitiveType()
Description copied from interface: Solid
Must always return GeometricPrimitive.PrimitiveType.Solid.

Specified by:
getPrimitiveType in interface GeometricPrimitive
Specified by:
getPrimitiveType in interface Solid
Returns:
GeometricPrimitive.PrimitiveType.Solid

getSolidType

public Solid.SolidType getSolidType()
Description copied from interface: Solid
Returns the type of solid.

Specified by:
getSolidType in interface Solid
Returns:
the type of solid

getVolume

public Measure getVolume(Unit requestedBaseUnit)
Specified by:
getVolume in interface Solid
Returns:
volume of the solid

getExteriorSurface

public Surface getExteriorSurface()
Description copied from interface: Solid
Returns the exterior surface (shell) of the solid.

Please note that this method may return null. The following explanation is from the GML 3.1.1 schema (geometryPrimitives.xsd): In normal 3-dimensional Euclidean space, one (composite) surface is distinguished as the exterior. In the more general case, this is not always possible.

Specified by:
getExteriorSurface in interface Solid
Returns:
the exterior surface, or null if no surface is distinguished as being the exterior boundary

getInteriorSurfaces

public List<Surface> getInteriorSurfaces()
Description copied from interface: Solid
Returns the interior surfaces of the solid.

Specified by:
getInteriorSurfaces in interface Solid
Returns:
the interior surfaces, list may be empty (but not null)


Copyright © 2011. All Rights Reserved.