RasterStretchRenderer
关系
Extends
RasterStretchRenderer Extends Accessor
继承: Accessor
构造函数
RasterStretchRenderer
RasterStretchRenderer 基于像素值为 ImageryLayer、ImageryTileLayer 和 WCSLayer 中的每个像素定义具有渐变颜色的符号系统。
new RasterStretchRenderer(properties?)
参数
- properties?:
RasterStretchRendererProperties
返回:RasterStretchRenderer RasterStretchRenderer对象
属性
computeGamma
computeGamma 基于经验模型自动计算最佳伽马值来渲染导出的图像。
computeGamma: boolean
类型: boolean
customStatistics
可以通过 customStatistics 属性指定输入波段统计信息。
customStatistics: RasterBandStatistics
declaredClass
声明的类名
declaredClass: string
类型: string
destroyed
指示对象是否已被销毁
destroyed: boolean
类型: boolean
dynamicRangeAdjustment
当动态范围调整为 true 时,基于当前显示范围的统计信息会在您缩放和平移图像时计算。
dynamicRangeAdjustment: boolean
类型: boolean
gamma
如果 useGamma 设置为 true,则要使用的伽马值。
gamma: number[]
类型: number[]
initialized
指示对象是否已初始化
initialized: boolean
类型: boolean
maxPercent
当 stretchType 为 percent-clip 时适用。
maxPercent: number
类型: number
minPercent
当 stretchType 为 percent-clip 时适用。
minPercent: number
类型: number
numberOfStandardDeviations
当 stretchType 为 standard-deviation 时适用。
numberOfStandardDeviations: number
类型: number
outputMax
outputMax 表示输出最大值,即最高像素值。
outputMax: number
类型: number
outputMin
outputMin 表示输出最小值,即最低像素值。
outputMin: number
类型: number
sigmoidStrengthLevel
sigmoid 强度级别确定在拉伸中将使用多少 sigmoid 函数。
sigmoidStrengthLevel: number
类型: number
stretchType
拉伸类型定义将应用于栅格以增强其外观的直方图拉伸。
stretchType: "none" | "standard-deviation" | "histogram-equalization" | "min-max" | "percent-clip" | "sigmoid"
类型: "none" | "standard-deviation" | "histogram-equalization" | "min-max" | "percent-clip" | "sigmoid"
type
渲染器的类型。
type: "raster-stretch"
类型: "raster-stretch"
useGamma
表示是否应使用 gamma 值。
useGamma: boolean
类型: boolean
访问器
colorRamp
拉伸值映射到此指定的颜色渐变。
get colorRamp(): ColorRamp
返回: ColorRamp 拉伸值映射到此指定的颜色渐变。
方法
addHandles
添加事件句柄到指定组
addHandles(handles, groupKey?): void
返回:void
clone
创建渲染器的深度克隆。
clone(): RasterStretchRenderer
返回:RasterStretchRenderer
destroy
销毁对象实例
destroy(): void
返回:void
hasHandles
检查是否存在指定组的句柄
hasHandles(groupKey?): boolean
参数
- groupKey?:
Exclude<T> 组标识键
返回:boolean
removeHandles
移除指定组的所有句柄
removeHandles(groupKey?): void
参数
- groupKey?:
Exclude<T> 组标识键,如果不指定则移除默认组的句柄
返回:void
set
设置单个属性值
set(propertyName, value): this
参数
propertyName:
stringT属性名称 ###### value 属性值
返回:this
toJSON
将此类的实例转换为其 JSON 表示形式。
toJSON(): any
返回:any
watch
监听属性变化
watch(path, callback, sync?): WatchHandle
参数
- path:
string|string要监听的属性路径,可以是字符串或字符串数组 - callback:
WatchCallback属性变化时的回调函数 - sync?:
boolean是否同步执行回调,默认为false
返回:WatchHandle

BIMFlux AI
