org.geotools.geometry.iso.complex
Class CompositeSolidImpl

java.lang.Object
  extended by org.geotools.geometry.iso.root.GeometryImpl
      extended by org.geotools.geometry.iso.complex.ComplexImpl
          extended by org.geotools.geometry.iso.complex.CompositeImpl<SolidImpl>
              extended by org.geotools.geometry.iso.complex.CompositeSolidImpl
All Implemented Interfaces:
java.io.Serializable, org.opengis.geometry.complex.Complex, org.opengis.geometry.complex.Composite, org.opengis.geometry.Geometry, org.opengis.geometry.TransfiniteSet

public class CompositeSolidImpl
extends CompositeImpl<SolidImpl>

A CompositeSolid (Figure 30) shall be a Complex with all the geometric properties of a solid. Essentially, a composite solid is a set of solids that join in pairs on common boundary surfaces to form a single solid.

Author:
Jackson Roehrig & Sanjay Jena
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.geometry.iso.complex.ComplexImpl
elements
 
Fields inherited from class org.geotools.geometry.iso.root.GeometryImpl
crs, percision
 
Constructor Summary
CompositeSolidImpl(java.util.List<CurveImpl> generator)
          The association role Composition::generator associates this CompositeSolid to the primitive Solids in its generating set, that is, the solids that form the core of this complex.
 
Method Summary
 CompositeSolidImpl clone()
           
 java.util.Set<org.opengis.geometry.complex.Complex> createBoundary()
           
 int dimension(DirectPositionImpl point)
          The method dimension returns the inherent dimension of this Object, which is less than or equal to the coordinate dimension.
 org.opengis.geometry.Boundary getBoundary()
           
 int getDimension(org.opengis.geometry.DirectPosition point)
           
 org.opengis.geometry.Envelope getEnvelope()
           
 java.lang.Class getGeneratorClass()
           
 java.util.List getGenerators()
           
 org.opengis.geometry.DirectPosition getRepresentativePoint()
           
 boolean isSimple()
           
 
Methods inherited from class org.geotools.geometry.iso.complex.ComplexImpl
addSubComplex, addSuperComplex, getElements, getMaximalComplex, getSubComplexes, getSuperComplexes, isMaximal, setElements
 
Methods inherited from class org.geotools.geometry.iso.root.GeometryImpl
castToGeometryImpl, castToGeometryImpl, contains, contains, cRelate, crosses, difference, disjoint, distance, equals, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getDistance, getMbRegion, getPositionFactory, getPrecision, intersection, intersects, isCycle, isMutable, overlaps, relate, symmetricDifference, toImmutable, touches, transform, transform, union, within
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opengis.geometry.complex.Complex
getElements, getSubComplexes, getSuperComplexes, isMaximal
 
Methods inherited from interface org.opengis.geometry.Geometry
distance, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getMaximalComplex, getMbRegion, getPrecision, isCycle, isMutable, toImmutable, transform, transform
 
Methods inherited from interface org.opengis.geometry.TransfiniteSet
contains, contains, difference, equals, intersection, intersects, symmetricDifference, union
 

Constructor Detail

CompositeSolidImpl

public CompositeSolidImpl(java.util.List<CurveImpl> generator)
The association role Composition::generator associates this CompositeSolid to the primitive Solids in its generating set, that is, the solids that form the core of this complex. CompositeSolid::generator : Set NOTE To get a full representation of the elements in the Complex, the Surfaces, Curves and Points on the boundary of the generator set if Solids would have to be added to the generator list. The Solids generators will be passed through the super constructor and saved in the element ArrayList of the according Complex

Parameters:
generator -
Method Detail

dimension

public int dimension(DirectPositionImpl point)
The method dimension returns the inherent dimension of this Object, which is less than or equal to the coordinate dimension. The dimension of a collection of geometric objects is 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. Locally, the dimension of a geometric object at a point is the dimension of a local neighborhood of the point - that is the dimension of any coordinate neighborhood of the point. Dimension is unambiguously defined only for DirectPositions interior to this Object. If the passed DirectPosition2D is NULL, then the method returns the largest possible dimension for any DirectPosition2D in this Object.

Parameters:
point - a DirectPosition2D value
Returns:
an int value

getGeneratorClass

public java.lang.Class getGeneratorClass()
Specified by:
getGeneratorClass in class CompositeImpl<SolidImpl>
Returns:
the class

createBoundary

public java.util.Set<org.opengis.geometry.complex.Complex> createBoundary()
Specified by:
createBoundary in class ComplexImpl
Returns:
Set

clone

public CompositeSolidImpl clone()
                         throws java.lang.CloneNotSupportedException
Specified by:
clone in interface org.opengis.geometry.Geometry
Specified by:
clone in class GeometryImpl
Throws:
java.lang.CloneNotSupportedException

isSimple

public boolean isSimple()

getGenerators

public java.util.List getGenerators()

getBoundary

public org.opengis.geometry.Boundary getBoundary()
Specified by:
getBoundary in interface org.opengis.geometry.Geometry
Specified by:
getBoundary in class GeometryImpl

getDimension

public int getDimension(org.opengis.geometry.DirectPosition point)
Specified by:
getDimension in interface org.opengis.geometry.Geometry
Specified by:
getDimension in class GeometryImpl

getEnvelope

public org.opengis.geometry.Envelope getEnvelope()
Specified by:
getEnvelope in interface org.opengis.geometry.Geometry
Specified by:
getEnvelope in class GeometryImpl

getRepresentativePoint

public org.opengis.geometry.DirectPosition getRepresentativePoint()
Specified by:
getRepresentativePoint in interface org.opengis.geometry.Geometry
Specified by:
getRepresentativePoint in class GeometryImpl


Copyright © 1996-2010 Geotools. All Rights Reserved.