geotrellis.geometry.grid

GridPolygon

case class GridPolygon(edges: Seq[GridLine]) extends Product with Serializable

a polygon is a set of lines. it is assumed that each line's p2 is equal to the next line's p1 (with the final line's p2 equal to the first line's p1). the user is required to provide lines in this order.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. GridPolygon
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GridPolygon(edges: Seq[GridLine])

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def canEqual(arg0: Any): Boolean

    Definition Classes
    GridPolygon → Equals
  8. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. val edges: Seq[GridLine]

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    GridPolygon → Equals → AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    GridPolygon → AnyRef → Any
  15. var i: Int

  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. val len: Int

  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def productArity: Int

    Definition Classes
    GridPolygon → Product
  22. def productElement(arg0: Int): Any

    Definition Classes
    GridPolygon → Product
  23. def productIterator: Iterator[Any]

    Definition Classes
    Product
  24. def productPrefix: String

    Definition Classes
    GridPolygon → Product
  25. def rasterize(cols: Int, rows: Int, value: Int, _data: RasterData, xoffset: Int, yoffset: Int): Unit

    this uses a scanline-esque algorithm--we render a single row of pixels at at time.

    this uses a scanline-esque algorithm--we render a single row of pixels at at time. to do this, we calculate the various X intercepts of each of our line segments, and write between X intercepts. there are two special cases that have to be handled: spikes and hinges.

    a spike looks like either: /\ or \/... it is a local Y-minima (or Y-maxima). these are important because unlike other X coordinates they do not indicate the start (or end) of a "filled region". only the pixel itself should be filled.

    a hinge is a joint between two line segments whose slopes have the same sign (e.g. they are both falling or rising). in this case, we only want one of their X coordinates, not the other.

  26. def rasterize(raster: Raster, value: Int): Unit

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    GridPolygon → AnyRef → Any
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. var xmax: Int

  33. var xmin: Int

  34. var ymax: Int

  35. var ymin: Int

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any