/*$************************************************************************************************
**
** $Id: Solid.java 831 2006-05-01 00:27:23Z Desruisseaux $
**
** $URL: http://svn.code.sf.net/p/geoapi/code/branches/2.0.x/geoapi/src/main/java/org/opengis/spatialschema/geometry/primitive/Solid.java $
**
** Copyright (C) 2003-2005 Open GIS Consortium, Inc.
** All Rights Reserved. http://www.opengis.org/legal/
**
*************************************************************************************************/
package org.opengis.spatialschema.geometry.primitive;
// Annotations
import org.opengis.annotation.UML;
import static org.opengis.annotation.Obligation.*;
import static org.opengis.annotation.Specification.*;
/**
* Basis for 3-dimensional geometry. The extent of a solid is
* defined by the boundary surfaces.
*
* @version Abstract specification 5
* @author Martin Desruisseaux (IRD)
* @since GeoAPI 1.0
*
* @see PrimitiveFactory#createSolid
*
* @todo Some associations are commented out for now.
*/
@UML(identifier="GM_Solid", specification=ISO_19107)
public interface Solid extends Primitive {
/**
* Returns a sequence of sets of {@linkplain Surface surfaces} that limit the extent of this
* {@code Solid}. These surfaces shall be organized into one set of surfaces for each
* boundary component of this {@code Solid}. Each of these shells shall be a cycle
* (closed composite surface without boundary).
*
*
* NOTE: The exterior shell of a solid is defined only because the embedding
* coordinate space is always a 3D Euclidean one. In general, a solid in a bounded 3-dimensional
* manifold has no distinguished exterior boundary. In cases where "exterior" boundary is not
* well defined, all the shells of the {@linkplain SolidBoundary solid boundary} shall be
* listed as "interior".
*
*
* The {@linkplain OrientableSurface orientable surfaces} that bound a solid shall be oriented
* outward  that is, the "top" of each {@linkplain Surface surface} as defined by its orientation
* shall face away from the interior of the solid. Each {@linkplain Shell shell}, when viewed as
* a composite surface, shall be a cycle.
*
* @return The sets of positions on the boundary.
*/
/// @UML(identifier="boundary", obligation=MANDATORY, specification=ISO_19107)
/// public SolidBoundary getBoundary();
/**
* Returns the sum of the surface areas of all of the boundary components of a solid.
*
* @return The area of this solid.
*
* @todo In UML diagram, this operation has an {@code Area} return type.
*/
@UML(identifier="area", obligation=MANDATORY, specification=ISO_19107)
public double getArea();
/**
* Returns the volume of this solid. This is the volume interior to the exterior
* boundary shell minus the sum of the volumes interior to any interior boundary
* shell.
*
* @return The volume of this solid.
*
* @todo In UML diagram, this operation has a {@code Volume} return type.
*/
@UML(identifier="volume", obligation=MANDATORY, specification=ISO_19107)
public double getVolume();
// public org.opengis.spatialschema.geometry.complex.GM_CompositeSolid composite[];
// public void setComposite(org.opengis.spatialschema.geometry.complex.GM_CompositeSolid composite[]) { }
// public org.opengis.spatialschema.geometry.complex.GM_CompositeSolid[] getComposite() { return null; }
}
Ads help maintain this website.