Package org.gvsig.fmap.geom.primitive
Interface Surface
- All Superinterfaces:
Cloneable,Comparable,Geometry,org.gvsig.tools.util.GetItem<Point>,org.gvsig.tools.util.IsEmpty,OrientablePrimitive,OrientableSurface,Primitive,Serializable,Shape,org.gvsig.tools.util.Size
- All Known Subinterfaces:
Circle,Ellipse,EllipticArc,FilledSpline,Polygon
This interface is equivalent to the GM_Surface specified in ISO 19107. Surface is a subclass of
Primitive and is the basis
for 2-dimensional geometry. Unorientable surfaces such as the M�bius band
are not allowed.
The orientation of a surface chooses an "up" direction through the choice of
the upward normal, which, if the surface is not a cycle, is the side of the
surface from which the exterior boundary appears counterclockwise. Reversal
of the surface orientation reverses the curve orientation of each boundary
component, and interchanges the conceptual "up" and "down" direction of the
surface.
If the surface is the boundary of a solid, the "up" direction is usually
outward. For closed surfaces, which have no boundary, the up direction is
that of the surface patches, which must be consistent with one another.- Author:
- gvSIG team
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gvsig.fmap.geom.Geometry
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus -
Field Summary
Fields inherited from interface org.gvsig.fmap.geom.Geometry
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, JOIN_STYLE_BEVEL, JOIN_STYLE_MITRE, JOIN_STYLE_ROUND, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInteriorRing(Line line) Creates a ring from the coordinates of the line and adds it to the surface like an inner ring.voidaddInteriorRing(Polygon polygon) Creates a ring from the coordinates of the shell of the polygon and adds it to the surface like an inner ring.voidaddInteriorRing(Ring ring) getInteriorRing(int index) intGets surface appearancevoidremoveInteriorRing(int index) voidSets the appearance of the SurfaceMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gvsig.fmap.geom.Geometry
area, boundary, buffer, buffer, canBeReprojected, canBeTransformed, centroid, clone, cloneGeometry, closestPoints, contains, convertTo, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToGeoJson, convertToHexEWKB, convertToHexEWKBQuietly, convertToHexWKB, convertToHexWKBQuietly, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKBQuietly, convertToWKT, convertToWKTQuietly, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, equals, fastIntersects, fix, flip, force2D, forceSubtype, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getProjection, getShape, getShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isEmpty, isSimple, isValid, isWithinDistance, makeValid, move, offset, offset, out, overlaps, perimeter, reProject, rotate, scale, setProjection, setProjection, setProjectionIffNull, snapTo, toLines, toPoints, toPolygons, touches, transform, union, withinMethods inherited from interface org.gvsig.tools.util.GetItem
getMethods inherited from interface org.gvsig.tools.util.IsEmpty
isEmptyMethods inherited from interface org.gvsig.fmap.geom.primitive.OrientablePrimitive
addMoveToVertex, addVertex, addVertex, addVertex, closePrimitive, ensureCapacity, getCoordinateAt, getNumVertices, getVertex, insertVertex, removeVertex, setCoordinateAt, setGeneralPath, setVertexMethods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, intersectsMethods inherited from interface org.gvsig.tools.util.Size
size
-
Method Details
-
setSurfaceAppearance
Sets the appearance of the Surface- Parameters:
app- The appearance of the surface
-
getSurfaceAppearance
SurfaceAppearance getSurfaceAppearance()Gets surface appearance- Returns:
- the surface appearance
-
getNumInteriorRings
int getNumInteriorRings() -
getInteriorRing
-
addInteriorRing
-
addInteriorRing
Creates a ring from the coordinates of the line and adds it to the surface like an inner ring.- Parameters:
ring-
-
getInteriorRings
-
addInteriorRing
Creates a ring from the coordinates of the shell of the polygon and adds it to the surface like an inner ring.- Parameters:
polygon-
-
removeInteriorRing
void removeInteriorRing(int index) -
split
-