org.deegree.geometry.primitive
Interface Solid

All Superinterfaces:
GeometricPrimitive, Geometry, GMLObject, Object, TypedObjectNode
All Known Subinterfaces:
CompositeSolid
All Known Implementing Classes:
DefaultCompositeSolid, DefaultSolid, SolidReference

public interface Solid
extends GeometricPrimitive

Solid instances are 3D-geometries that ...

Author:
Andreas Poth, Markus Schneider, last edited by: $Author: mschneider $

Nested Class Summary
static class Solid.SolidType
          Convenience enum type for discriminating the different solid variants.
 
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
 
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 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
 

Method Detail

getPrimitiveType

GeometricPrimitive.PrimitiveType getPrimitiveType()
Must always return GeometricPrimitive.PrimitiveType.Solid.

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

getSolidType

Solid.SolidType getSolidType()
Returns the type of solid.

Returns:
the type of solid

getVolume

Measure getVolume(Unit requestedBaseUnit)
Parameters:
requestedBaseUnit -
Returns:
volume of the solid

getArea

Measure getArea(Unit requestedBaseUnit)
Parameters:
requestedBaseUnit -
Returns:
area of the solid's boundary

getExteriorSurface

Surface getExteriorSurface()
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.

Returns:
the exterior surface, or null if no surface is distinguished as being the exterior boundary

getInteriorSurfaces

List<Surface> getInteriorSurfaces()
Returns the interior surfaces of the solid.

Returns:
the interior surfaces, list may be empty (but not null)


Copyright © 2011. All Rights Reserved.