itowns
Version:
A JS/WebGL framework for 3D geospatial data visualization
54 lines (53 loc) • 1.75 kB
TypeScript
export const EMPTY_TEXTURE_ZOOM: -1;
/**
* A `RasterTile` is part of raster {@link Layer} data.
* This part is a spatial subdivision of the extent of a layer.
* In the `RasterTile`, The data are converted on three.js textures.
* This `RasterTile` textures are assigned to a `LayeredMaterial`.
* This material is applied on terrain (TileMesh).
* The color textures are mapped to color the terrain.
* The elevation textures are used to displace vertex terrain.
*
* @class RasterTile
*/
export class RasterTile extends THREE.EventDispatcher<any> {
constructor(layer: any);
layer: any;
crs: any;
textures: any[];
offsetScales: any[];
level: number;
needsUpdate: boolean;
_handlerCBEvent: () => void;
get id(): any;
get opacity(): any;
get visible(): any;
initFromParent(parent: any, extents: any): void;
sortBestParentTextures(textures: any): any;
disposeRedrawnTextures(newTextures: any): void;
dispose(removeEvent?: boolean): void;
_listeners: {} | undefined;
disposeAtIndexes(indexes: any): void;
setTexture(index: any, texture: any, offsetScale: any): void;
setTextures(textures: any, pitchs: any): void;
shouldWriteTextureAtIndex(index: any, texture: any): any;
}
export class RasterColorTile extends RasterTile {
get effect_type(): any;
get effect_parameter(): any;
get transparent(): any;
}
export class RasterElevationTile extends RasterTile {
scaleFactor: number;
min: any;
max: any;
bias: any;
mode: any;
zmin: any;
zmax: any;
get scale(): number;
dispose(removeEvent: any): void;
updateMinMaxElevation(): void;
replaceNoDataValueFromTexture(texture: any): void;
}
import * as THREE from 'three';