import { LatLngBounds } from "../common/latlng-bounds"; import { PlaneBounds } from "../common/plane-bounds"; import { ScreenBounds } from "../common/screen-bounds"; import { ScreenXY } from "../common/screen-xy"; import { CRS } from "../crs/crs"; /** * 栅格 */ export declare abstract class Raster { private _canvas; /** * 动态栅格(实时渲染) */ get dynamic(): boolean; /** * 画布存放Image */ get canvas(): HTMLCanvasElement; /** * 栅格经纬度边界 */ get bounds(): LatLngBounds; /** * 坐标系 */ protected _crs: CRS; /** * 包络矩形 */ protected _latlngBounds: LatLngBounds; protected _planeBounds: PlaneBounds; protected _screenBounds: ScreenBounds; /** * 包络矩形 */ get latlngBounds(): LatLngBounds; get planeBounds(): PlaneBounds; get screenBounds(): ScreenBounds; /** * 设置坐标系并投影 */ set crs(value: CRS); /** * 创建栅格 * @remarks * 遍历图形集合进行绘制 * @param {number} xmin - 经度左值 * @param {number} ymin - 纬度下值 * @param {number} xmax - 经度右值 * @param {number} ymax - 纬度上值 * @param {number} width - 栅格宽度 * @param {number} height - 栅格高度 * @param {number} cellsize - 栅格大小 */ constructor(xmin: any, ymin: any, xmax: any, ymax: any, width?: number, height?: number); /** * 投影变换虚函数 * @param {Projection} projection - 坐标投影转换 */ abstract project(): any; /** * 数据变换 * @param {ScreenXY} origin - 窗口坐标原点 * @param {number} zoom - 当前缩放级别 */ abstract transform(origin: ScreenXY, zoom: number): any; /** * 绘制栅格 * @remarks * 遍历图形集合进行绘制 * @param {CanvasRenderingContext2D} ctx - 绘图上下文 */ abstract draw(ctx: CanvasRenderingContext2D): any; }