public class Polygon3D extends BaseLine3D implements Polygon
AbstractLine.LineIterator, AbstractLine.VertexIteratorGeometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatuscoordinatesBEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W| Constructor and Description |
|---|
Polygon3D() |
Polygon3D(Coordinate[] coordinates) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInteriorRing(Line line)
Creates a ring from the coordinates of the line and adds it to the surface like an inner ring.
|
void |
addInteriorRing(Polygon polygon)
Creates a ring from the coordinates of the shell of the polygon and adds it to the surface like an inner ring.
|
void |
addInteriorRing(Ring ring) |
Geometry |
cloneGeometry()
Creates a clone of this geometry.
|
boolean |
ensureOrientation(boolean ccw)
Ensures the orientation of the geometry according to the parameter, flipping it if necessary.
|
boolean |
equals(java.lang.Object obj) |
void |
flip()
Flip the coordinates of the geometry.
|
Ring |
getInteriorRing(int index) |
com.vividsolutions.jts.geom.Geometry |
getJTS() |
int |
getNumInteriorRings() |
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at)
If applies an affine transformation and returns the GeneralPathXIterator
with this geometry's information.
|
SurfaceAppearance |
getSurfaceAppearance()
Gets surface appearance
|
Geometry |
offset(double distance) |
void |
removeInteriorRing(int index) |
void |
reProject(ICoordTrans ct)
Reprojects this geometry by the coordinate transformer passed as
parameter.
|
void |
setSurfaceAppearance(SurfaceAppearance app)
Sets the appearance of the Surface
|
MultiLine |
toLines()
Converts the geometry to be lines and makes with them a multiLine
|
MultiPolygon |
toPolygons()
Converts the geometry to be polygons and makes with them a multiPolygon
|
void |
transform(java.awt.geom.AffineTransform at)
It applies an affine transformation to the geometry.
|
addVertex, addVertex, fixPoint, getVertex, toPointsaddMoveToVertex, addVertex, cloneCoordinates, closePrimitive, ensureCapacity, getCoordinateAt, getDimension, getGeneralPath, getNumVertices, getPathIterator, getShape, getShape, insertVertex, is3D, isClosed, iterator, removeVertex, setCoordinateAt, setGeneralPath, setPoints, setVertexgetHandlersarea, buffer, centroid, closestPoints, compareTo, contains, contains, contains, contains, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, fastIntersects, getBounds, getBounds2D, getEnvelope, getGeometryType, getInteriorPoint, getInternalShape, getManager, getType, getValidationStatus, intersection, intersects, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, notifyDeprecated, out, overlaps, perimeter, rotate, scale, snapTo, toString, touches, union, withinclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddMoveToVertex, addVertex, addVertex, addVertex, closePrimitive, ensureCapacity, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setGeneralPath, setVertexarea, buffer, centroid, closestPoints, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, fastIntersects, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getShape, getShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, out, overlaps, perimeter, rotate, scale, snapTo, toPoints, touches, union, withinpublic Polygon3D()
subtype - public Polygon3D(Coordinate[] coordinates)
public Geometry cloneGeometry()
GeometrycloneGeometry in interface Geometrypublic void setSurfaceAppearance(SurfaceAppearance app)
SurfacesetSurfaceAppearance in interface Surfaceapp - The appearance of the surfacepublic SurfaceAppearance getSurfaceAppearance()
SurfacegetSurfaceAppearance in interface Surfacepublic int getNumInteriorRings()
getNumInteriorRings in interface Surfacepublic Ring getInteriorRing(int index)
getInteriorRing in interface Surfacepublic void addInteriorRing(Ring ring)
addInteriorRing in interface Surfacepublic void addInteriorRing(Line line)
SurfaceaddInteriorRing in interface Surfacepublic void addInteriorRing(Polygon polygon)
SurfaceaddInteriorRing in interface Surfacepublic void removeInteriorRing(int index)
removeInteriorRing in interface Surfacepublic MultiLine toLines() throws GeometryException
GeometrytoLines in interface GeometrytoLines in class BaseLine3DGeometryExceptionpublic MultiPolygon toPolygons() throws GeometryException
GeometrytoPolygons in interface GeometrytoPolygons in class BaseLine3DGeometryExceptionpublic com.vividsolutions.jts.geom.Geometry getJTS()
getJTS in interface GeometryJTSgetJTS in class AbstractLinepublic java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
GeometrygetPathIterator in interface java.awt.ShapegetPathIterator in interface GeometrygetPathIterator in class AbstractLineat - The transformation to apply.public boolean ensureOrientation(boolean ccw)
throws GeometryOperationNotSupportedException,
GeometryOperationException
GeometryensureOrientation in interface GeometryensureOrientation in class AbstractGeometryGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic void flip()
throws GeometryOperationNotSupportedException,
GeometryOperationException
Geometryflip in interface Geometryflip in class AbstractLineGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic void transform(java.awt.geom.AffineTransform at)
Geometrytransform in interface Geometrytransform in class AbstractLineat - The transformation to apply.public Geometry offset(double distance) throws GeometryOperationNotSupportedException, GeometryOperationException
offset in interface GeometryGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic void reProject(ICoordTrans ct)
GeometryreProject in interface GeometryreProject in class AbstractLinect - Coordinate Transformer.public boolean equals(java.lang.Object obj)
equals in class AbstractGeometry