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. def != (arg0: AnyRef): Boolean

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

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

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

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

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

    Attributes
    final
    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. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    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. def getClass (): java.lang.Class[_]

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

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

  16. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  17. val len : Int

  18. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    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: IntRaster, value: Int): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef
  28. def toString (): String

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

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

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

    Attributes
    final
    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

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any