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

public interface Surface extends OrientableSurface
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:
  • Method Details

    • setSurfaceAppearance

      void setSurfaceAppearance(SurfaceAppearance app)
      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

      Ring getInteriorRing(int index)
    • addInteriorRing

      void addInteriorRing(Ring ring)
    • addInteriorRing

      void addInteriorRing(Line line)
      Creates a ring from the coordinates of the line and adds it to the surface like an inner ring.
      Parameters:
      ring -
    • getInteriorRings

      List<Ring> getInteriorRings()
    • addInteriorRing

      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.
      Parameters:
      polygon -
    • removeInteriorRing

      void removeInteriorRing(int index)
    • split

      Geometry split(Geometry splitter)