IPixelPyramid
Description
- Derived from
- Extended by
-
IPixelPyramidDataset
IPixelPyramidDraw
IPixelPyramidShape
PixelPyramid abstract
Base interface for classes that represent a tile pyramid of color buffers (see ColorBuffer).
Public / Methods
Cache
2 overloads
Wraps this pixel pyramid in a memory cache.
The built-in pixel pyramid operations already make use of the Cache1 method where applicable, so client code usually does not need to call it.
If the Cache1 method has already been called on this object, the method silently returns this
.
- See also
Wraps this pixel pyramid in a file cache.
SetTileData
Sets the data content of the given map tile.
If data in is not null
, the content of the given map tile will be updated with the specified data in. If the map tile does not exist, it will be created as empty (see TileDataResult.Empty), before being updated. Also, all non-existent ancestors of the map tile will be created as empty tiles (see TileDataResult.Empty).
If data in is null
, the map tile will be emptied (see TileDataResult.Empty). If the map tile is a leaf (i.e. it does not have any existing child tiles), it will be removed (see TileDataResult.Void). All empty map tiles that become a leaf because of this removal will also be removed recursively.
- IOException
-
If an I/O error has occurred while setting the data content.
Extensions
Combine
Combines this pyramid (first
) with the given one (second
), according to the given color and combine operation (see ColorOp, CombineOp).
If the given combine operation (see combineOp opt) has yielded a result of TileDataResult.Ok, the tile data buffers of the first
and second
pyramids are combined by applying the specified color operation (see colorOp opt); existing tiles of second
will overwrite existing tiles of first
.
The resulting pixel pyramid will have the maximum tile size, maximum full size and maximum tile pad as of the first
and second
pyramids (see IPyramidBase.TileSize, IPyramidBase.FullSize and IPyramidBase.TilePad).
CopyTiles
Processes the given pyramid tiles by getting the tile data for each one and optionally copies the tile data to the specified output pyramid.
The copy operation can be used to transfer tile data from one pyramid to another. Also, it may be used without target, for example to warm up a pyramid file cache.
Downsample
Fills all TileDataResult.Empty tiles of this pyramid by downsampling the four child tiles.
SetTileData
Sets the data content of the given map tile.
If data in is not null
, the content of the given map tile will be updated with the specified data in. If the map tile does not exist, it will be created as empty (see TileDataResult.Empty), before being updated. Also, all non-existent ancestors of the map tile will be created as empty tiles (see TileDataResult.Empty).
If data in is null
, the map tile will be emptied (see TileDataResult.Empty). If the map tile is a leaf (i.e. it does not have any existing child tiles), it will be removed (see TileDataResult.Void). All empty map tiles that become a leaf because of this removal will also be removed recursively.
- IOException
-
If an I/O error has occurred while setting the data content.
Slice
2 overloads
Slices this pixel pyramid by the given level range.
Slices this pixel pyramid by the given ground sample distance range.
ToImage
3 overloads
Reads a whole cubemap face of the bottom-most level of this pyramid as an image.
The returned IImage object will never throw IOExceptions or ValidatingExceptions.
Reads a whole cubemap face of a single level of this pyramid as an image.
The returned IImage object will never throw IOExceptions or ValidatingExceptions.
Reads a rectangular region of a single level of this pyramid as an image.
The returned IImage object will never throw IOExceptions or ValidatingExceptions.
Unproject
Unprojects this map pyramid into a plain cubemap pyramid.
- GeorefException
-
If the geo-reference of this pyramid cannot be unprojected to a plain cubemap geographic coordinate system.