org.geotools.geometry.iso.coordinate
Class TriangleImpl

java.lang.Object
  extended by org.geotools.geometry.iso.coordinate.SurfacePatchImpl
      extended by org.geotools.geometry.iso.coordinate.PolygonImpl
          extended by org.geotools.geometry.iso.coordinate.TriangleImpl
All Implemented Interfaces:
java.io.Serializable, org.opengis.geometry.coordinate.GenericSurface, org.opengis.geometry.coordinate.Polygon, org.opengis.geometry.coordinate.Triangle, org.opengis.geometry.primitive.SurfacePatch

public class TriangleImpl
extends PolygonImpl
implements org.opengis.geometry.coordinate.Triangle

Author:
sanjay
See Also:
Serialized Form

Constructor Summary
TriangleImpl(SurfaceBoundaryImpl triangleBoundary, org.opengis.geometry.coordinate.TriangulatedSurface ts, PositionImpl p1, PositionImpl p2, PositionImpl p3)
           
 
Method Summary
 java.util.List<org.opengis.geometry.coordinate.Position> getCorners()
          Returns the corners of the Triangle
 PositionImpl getFirstCorner()
          Returns first corner of the Triangle
 PositionImpl getSecondCorner()
          Returns second corner of the Triangle
 org.opengis.geometry.coordinate.TriangulatedSurface getSurface()
           
 PositionImpl getThirdCorner()
          Returns third corner of the Triangle
 void setAssociatedSurface(TriangulatedSurfaceImpl tsi)
           
 java.lang.String toString()
           
 
Methods inherited from class org.geotools.geometry.iso.coordinate.PolygonImpl
equals, getArea, getEnvelope, getPerimeter, getSpanningSurface, getUpNormal, hashCode
 
Methods inherited from class org.geotools.geometry.iso.coordinate.SurfacePatchImpl
getBoundary, getInterpolation, getNumDerivativesOnBoundary, setSurface
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.geometry.coordinate.Polygon
getBoundary, getSpanningSurface
 
Methods inherited from interface org.opengis.geometry.primitive.SurfacePatch
getInterpolation, getNumDerivativesOnBoundary
 
Methods inherited from interface org.opengis.geometry.coordinate.GenericSurface
getArea, getPerimeter, getUpNormal
 

Constructor Detail

TriangleImpl

public TriangleImpl(SurfaceBoundaryImpl triangleBoundary,
                    org.opengis.geometry.coordinate.TriangulatedSurface ts,
                    PositionImpl p1,
                    PositionImpl p2,
                    PositionImpl p3)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getCorners

public java.util.List<org.opengis.geometry.coordinate.Position> getCorners()
Returns the corners of the Triangle

Specified by:
getCorners in interface org.opengis.geometry.coordinate.Triangle
Returns:
Array of Position with three elements

getFirstCorner

public PositionImpl getFirstCorner()
Returns first corner of the Triangle

Returns:
first corner of the Triangle

getSecondCorner

public PositionImpl getSecondCorner()
Returns second corner of the Triangle

Returns:
second corner of the Triangle

getThirdCorner

public PositionImpl getThirdCorner()
Returns third corner of the Triangle

Returns:
third corner of the Triangle

getSurface

public org.opengis.geometry.coordinate.TriangulatedSurface getSurface()
Specified by:
getSurface in interface org.opengis.geometry.coordinate.Polygon
Specified by:
getSurface in interface org.opengis.geometry.coordinate.Triangle
Specified by:
getSurface in interface org.opengis.geometry.primitive.SurfacePatch
Overrides:
getSurface in class PolygonImpl

setAssociatedSurface

public void setAssociatedSurface(TriangulatedSurfaceImpl tsi)
Parameters:
tsi -


Copyright © 1996-2010 Geotools. All Rights Reserved.