public class ImagePyramid extends AbstractObject implements Cloneable
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
| Modifier and Type | Field and Description |
|---|---|
protected GridOrigin |
gridOrigin
GridOrigin
lowerLeft, upperLeft
See Also:
See
|
protected List<AbstractObject> |
imagePyramidObjectExtension
|
protected List<Object> |
imagePyramidSimpleExtension |
protected int |
maxHeight
|
protected int |
maxWidth
|
protected int |
tileSize
|
id, objectSimpleExtension, targetId| Constructor and Description |
|---|
ImagePyramid() |
| Modifier and Type | Method and Description |
|---|---|
ImagePyramid |
addToImagePyramidObjectExtension(AbstractObject imagePyramidObjectExtension)
add a value to the imagePyramidObjectExtension property collection
|
ImagePyramid |
addToImagePyramidSimpleExtension(Object imagePyramidSimpleExtension)
add a value to the imagePyramidSimpleExtension property collection
|
ImagePyramid |
addToObjectSimpleExtension(Object objectSimpleExtension)
add a value to the objectSimpleExtension property collection
|
ImagePyramid |
clone() |
boolean |
equals(Object obj) |
GridOrigin |
getGridOrigin() |
List<AbstractObject> |
getImagePyramidObjectExtension() |
List<Object> |
getImagePyramidSimpleExtension() |
int |
getMaxHeight() |
int |
getMaxWidth() |
int |
getTileSize() |
int |
hashCode() |
void |
setGridOrigin(GridOrigin value) |
void |
setImagePyramidObjectExtension(List<AbstractObject> imagePyramidObjectExtension) |
void |
setImagePyramidSimpleExtension(List<Object> imagePyramidSimpleExtension) |
void |
setMaxHeight(int value) |
void |
setMaxWidth(int value) |
void |
setObjectSimpleExtension(List<Object> objectSimpleExtension) |
void |
setTileSize(int value) |
ImagePyramid |
withGridOrigin(GridOrigin gridOrigin)
fluent setter
|
ImagePyramid |
withId(String id)
fluent setter
|
ImagePyramid |
withImagePyramidObjectExtension(List<AbstractObject> imagePyramidObjectExtension)
fluent setter
|
ImagePyramid |
withImagePyramidSimpleExtension(List<Object> imagePyramidSimpleExtension)
fluent setter
|
ImagePyramid |
withMaxHeight(int maxHeight)
fluent setter
|
ImagePyramid |
withMaxWidth(int maxWidth)
fluent setter
|
ImagePyramid |
withObjectSimpleExtension(List<Object> objectSimpleExtension)
fluent setter
|
ImagePyramid |
withTargetId(String targetId)
fluent setter
|
ImagePyramid |
withTileSize(int tileSize)
fluent setter
|
getId, getObjectSimpleExtension, getTargetId, setId, setTargetIdprotected int tileSize
Size of the tiles, in pixels. Tiles must be square, and
protected int maxWidth
Width in pixels of the original image.
protected int maxHeight
Height in pixels of the original image.
protected GridOrigin gridOrigin
lowerLeft, upperLeft
See Also: Seeprotected List<AbstractObject> imagePyramidObjectExtension
public int getTileSize()
IntegertileSizepublic void setTileSize(int value)
value - allowed object is
IntegertileSizepublic int getMaxWidth()
IntegermaxWidthpublic void setMaxWidth(int value)
value - allowed object is
IntegermaxWidthpublic int getMaxHeight()
IntegermaxHeightpublic void setMaxHeight(int value)
value - allowed object is
IntegermaxHeightpublic GridOrigin getGridOrigin()
GridOrigingridOriginpublic void setGridOrigin(GridOrigin value)
value - allowed object is
GridOrigingridOriginpublic List<Object> getImagePyramidSimpleExtension()
imagePyramidSimpleExtensionpublic List<AbstractObject> getImagePyramidObjectExtension()
imagePyramidObjectExtensionpublic int hashCode()
hashCode in class AbstractObjectpublic boolean equals(Object obj)
equals in class AbstractObjectpublic void setImagePyramidSimpleExtension(List<Object> imagePyramidSimpleExtension)
imagePyramidSimpleExtension - imagePyramidSimpleExtensionpublic ImagePyramid addToImagePyramidSimpleExtension(Object imagePyramidSimpleExtension)
imagePyramidSimpleExtension - Objects of the following type are allowed in the list: Objectpublic void setImagePyramidObjectExtension(List<AbstractObject> imagePyramidObjectExtension)
imagePyramidObjectExtension - imagePyramidObjectExtensionpublic ImagePyramid addToImagePyramidObjectExtension(AbstractObject imagePyramidObjectExtension)
imagePyramidObjectExtension - Objects of the following type are allowed in the list: AbstractObjectpublic void setObjectSimpleExtension(List<Object> objectSimpleExtension)
setObjectSimpleExtension in class AbstractObjectobjectSimpleExtensionpublic ImagePyramid addToObjectSimpleExtension(Object objectSimpleExtension)
AbstractObjectaddToObjectSimpleExtension in class AbstractObjectobjectSimpleExtension - Objects of the following type are allowed in the list: Objectpublic ImagePyramid withTileSize(int tileSize)
tileSize - required parametersetTileSize(int)public ImagePyramid withMaxWidth(int maxWidth)
maxWidth - required parametersetMaxWidth(int)public ImagePyramid withMaxHeight(int maxHeight)
maxHeight - required parametersetMaxHeight(int)public ImagePyramid withGridOrigin(GridOrigin gridOrigin)
gridOrigin - required parametersetGridOrigin(GridOrigin)public ImagePyramid withImagePyramidSimpleExtension(List<Object> imagePyramidSimpleExtension)
imagePyramidSimpleExtension - required parameter#setImagePyramidSimpleExtension(Listpublic ImagePyramid withImagePyramidObjectExtension(List<AbstractObject> imagePyramidObjectExtension)
imagePyramidObjectExtension - required parameter#setImagePyramidObjectExtension(List) public ImagePyramid withObjectSimpleExtension(List<Object> objectSimpleExtension)
AbstractObjectwithObjectSimpleExtension in class AbstractObjectobjectSimpleExtension - required parameter#setObjectSimpleExtension(Listpublic ImagePyramid withId(String id)
AbstractObjectwithId in class AbstractObjectid - required parameterAbstractObject.setId(String)public ImagePyramid withTargetId(String targetId)
AbstractObjectwithTargetId in class AbstractObjecttargetId - required parameterAbstractObject.setTargetId(String)public ImagePyramid clone()
clone in class AbstractObjectCopyright © 2014 Micromata GmbH. All rights reserved.