Class

com.scalakml.kml

ImagePyramid

Related Doc: package kml

Permalink

case class ImagePyramid(tileSize: Option[Int] = None, maxWidth: Option[Int] = None, maxHeight: Option[Int] = None, gridOrigin: Option[GridOrigin] = None, id: Option[String] = None, targetId: Option[String] = None, imagePyramidSimpleExtensionGroup: Seq[Any] = Nil, imagePyramidObjectExtensionGroup: Seq[Any] = Nil, objectSimpleExtensionGroup: Seq[Any] = Nil) extends KmlObject with Product with Serializable

For very large images, you'll need to construct an image pyramid, which is a hierarchical set of images, each of which is an increasingly lower resolution version of the original image. Each image in the pyramid is subdivided into tiles, so that only the portions in view need to be loaded. Google Earth calculates the current viewpoint and loads the tiles that are appropriate to the user's distance from the image. As the viewpoint moves closer to the PhotoOverlay, Google Earth loads higher resolution tiles. Since all the pixels in the original image can't be viewed on the screen at once, this preprocessing allows Google Earth to achieve maximum performance because it loads only the portions of the image that are in view, and only the pixel details that can be discerned by the user at the current viewpoint. When you specify an image pyramid, you also modify the <href> in the <Icon> element to include specifications for which tiles to load.

tileSize

Size of the tiles, in pixels. Tiles must be square, and <tileSize> must be a power of 2. A tile size of 256 (the default) or 512 is recommended. The original image is divided into tiles of this size, at varying resolutions.

maxWidth

Width in pixels of the original image.

maxHeight

Height in pixels of the original image.

gridOrigin

Specifies where to begin numbering the tiles in each layer of the pyramid. A value of lowerLeft specifies that row 1, column 1 of each layer is in the bottom left corner of the grid.

Linear Supertypes
Serializable, Serializable, Product, Equals, KmlObject, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ImagePyramid
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. KmlObject
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ImagePyramid(tileSize: Int, maxWidth: Int, maxHeight: Int, gridOrigin: GridOrigin)

    Permalink
  2. new ImagePyramid(tileSize: Option[Int] = None, maxWidth: Option[Int] = None, maxHeight: Option[Int] = None, gridOrigin: Option[GridOrigin] = None, id: Option[String] = None, targetId: Option[String] = None, imagePyramidSimpleExtensionGroup: Seq[Any] = Nil, imagePyramidObjectExtensionGroup: Seq[Any] = Nil, objectSimpleExtensionGroup: Seq[Any] = Nil)

    Permalink

    tileSize

    Size of the tiles, in pixels. Tiles must be square, and <tileSize> must be a power of 2. A tile size of 256 (the default) or 512 is recommended. The original image is divided into tiles of this size, at varying resolutions.

    maxWidth

    Width in pixels of the original image.

    maxHeight

    Height in pixels of the original image.

    gridOrigin

    Specifies where to begin numbering the tiles in each layer of the pyramid. A value of lowerLeft specifies that row 1, column 1 of each layer is in the bottom left corner of the grid.

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. val gridOrigin: Option[GridOrigin]

    Permalink

    Specifies where to begin numbering the tiles in each layer of the pyramid.

    Specifies where to begin numbering the tiles in each layer of the pyramid. A value of lowerLeft specifies that row 1, column 1 of each layer is in the bottom left corner of the grid.

  10. val id: Option[String]

    Permalink
    Definition Classes
    ImagePyramidKmlObject
  11. val imagePyramidObjectExtensionGroup: Seq[Any]

    Permalink
  12. val imagePyramidSimpleExtensionGroup: Seq[Any]

    Permalink
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. val maxHeight: Option[Int]

    Permalink

    Height in pixels of the original image.

  15. val maxWidth: Option[Int]

    Permalink

    Width in pixels of the original image.

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

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. val objectSimpleExtensionGroup: Seq[Any]

    Permalink
    Definition Classes
    ImagePyramidKmlObject
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. val targetId: Option[String]

    Permalink
    Definition Classes
    ImagePyramidKmlObject
  22. val tileSize: Option[Int]

    Permalink

    Size of the tiles, in pixels.

    Size of the tiles, in pixels. Tiles must be square, and <tileSize> must be a power of 2. A tile size of 256 (the default) or 512 is recommended. The original image is divided into tiles of this size, at varying resolutions.

  23. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from KmlObject

Inherited from AnyRef

Inherited from Any

Ungrouped