org.geotools.geometry.iso.coordinate
Class TriangulatedSurfaceImpl

java.lang.Object
  extended by org.geotools.geometry.iso.root.GeometryImpl
      extended by org.geotools.geometry.iso.primitive.PrimitiveImpl
          extended by org.geotools.geometry.iso.primitive.OrientablePrimitiveImpl
              extended by org.geotools.geometry.iso.primitive.OrientableSurfaceImpl
                  extended by org.geotools.geometry.iso.primitive.SurfaceImpl
                      extended by org.geotools.geometry.iso.coordinate.PolyhedralSurfaceImpl
                          extended by org.geotools.geometry.iso.coordinate.TriangulatedSurfaceImpl
All Implemented Interfaces:
java.io.Serializable, org.opengis.geometry.coordinate.GenericSurface, org.opengis.geometry.coordinate.PolyhedralSurface, org.opengis.geometry.coordinate.TriangulatedSurface, org.opengis.geometry.Geometry, org.opengis.geometry.primitive.OrientablePrimitive, org.opengis.geometry.primitive.OrientableSurface, org.opengis.geometry.primitive.Primitive, org.opengis.geometry.primitive.Surface, org.opengis.geometry.TransfiniteSet
Direct Known Subclasses:
TinImpl

public class TriangulatedSurfaceImpl
extends PolyhedralSurfaceImpl
implements org.opengis.geometry.coordinate.TriangulatedSurface

A TriangulatedSurface (Figure 21) is a PolyhedralSurface that is composed only of triangles (Triangle). There is no restriction on how the triangulation is derived.

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

Field Summary
 
Fields inherited from class org.geotools.geometry.iso.primitive.SurfaceImpl
patch
 
Fields inherited from class org.geotools.geometry.iso.primitive.OrientablePrimitiveImpl
proxy
 
Fields inherited from class org.geotools.geometry.iso.primitive.PrimitiveImpl
complex, containedPrimitive, containingPrimitive
 
Fields inherited from class org.geotools.geometry.iso.root.GeometryImpl
crs, percision
 
Constructor Summary
TriangulatedSurfaceImpl()
           
TriangulatedSurfaceImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs, java.util.List<org.opengis.geometry.coordinate.Polygon> triangles)
          Constructor
TriangulatedSurfaceImpl(SurfaceBoundaryImpl boundary)
           
 
Method Summary
 java.util.List<org.opengis.geometry.coordinate.Triangle> getPatches()
           
 void setTriangles(java.util.ArrayList<TriangleImpl> triangles)
          Sets the Triangles for the Triangulated Surface
 
Methods inherited from class org.geotools.geometry.iso.primitive.SurfaceImpl
clone, createProxy, equals, getArea, getBoundary, getBoundaryRings, getComposite, getDimension, getEnvelope, getPerimeter, getPrimitive, getProxy, getRepresentativePoint, getUpNormal, hashCode, isSimple, setBoundary, setPatches, toString, transform
 
Methods inherited from class org.geotools.geometry.iso.primitive.OrientablePrimitiveImpl
getOrientation
 
Methods inherited from class org.geotools.geometry.iso.primitive.PrimitiveImpl
addComplex, addContainedPrimitive, addContainingPrimitive, getComplexes, getContainedPrimitives, getContainingPrimitives, getMaximalComplex
 
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, union, within
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.geometry.primitive.Surface
getProxy
 
Methods inherited from interface org.opengis.geometry.primitive.OrientableSurface
getBoundary, getComposite, getPrimitive
 
Methods inherited from interface org.opengis.geometry.primitive.OrientablePrimitive
getOrientation
 
Methods inherited from interface org.opengis.geometry.primitive.Primitive
getComplexes, getContainedPrimitives, getContainingPrimitives
 
Methods inherited from interface org.opengis.geometry.Geometry
clone, distance, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getDimension, getEnvelope, getMaximalComplex, getMbRegion, getPrecision, getRepresentativePoint, isCycle, isMutable, isSimple, toImmutable, transform, transform
 
Methods inherited from interface org.opengis.geometry.TransfiniteSet
contains, contains, difference, equals, intersection, intersects, symmetricDifference, union
 
Methods inherited from interface org.opengis.geometry.coordinate.GenericSurface
getArea, getPerimeter, getUpNormal
 

Constructor Detail

TriangulatedSurfaceImpl

public TriangulatedSurfaceImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs,
                               java.util.List<org.opengis.geometry.coordinate.Polygon> triangles)
Constructor

Parameters:
crs -
triangles -

TriangulatedSurfaceImpl

public TriangulatedSurfaceImpl()

TriangulatedSurfaceImpl

public TriangulatedSurfaceImpl(SurfaceBoundaryImpl boundary)
Parameters:
boundary -
Method Detail

setTriangles

public void setTriangles(java.util.ArrayList<TriangleImpl> triangles)
Sets the Triangles for the Triangulated Surface

Parameters:
triangles -
surfaceBoundary -

getPatches

public java.util.List<org.opengis.geometry.coordinate.Triangle> getPatches()
Specified by:
getPatches in interface org.opengis.geometry.coordinate.PolyhedralSurface
Specified by:
getPatches in interface org.opengis.geometry.coordinate.TriangulatedSurface
Specified by:
getPatches in interface org.opengis.geometry.primitive.Surface
Overrides:
getPatches in class PolyhedralSurfaceImpl


Copyright © 1996-2010 Geotools. All Rights Reserved.