Class RasterLayer

Source
Expand description

Base class for map layers. This class provides the basic structure and functionality for all map layers.

It includes methods for loading data, geometry, components, and thematic data, as well as rendering and picking operations.

Constructors§

Source§

new RasterLayer(
    layerInfo: ILayerInfo,
    layerRenderInfo: ILayerRenderInfo,
    layerData: ILayerData,
): RasterLayer

Constructor for Raster

Properties§

Source§

protected _components: ILayerComponent[] = []

Components of the layer.

Source§

protected _dataIsDirty: boolean = false

Indicates if the layer's data is dirty. This is used to determine if VOBs need to be reconstructed.

Source§

protected _indices: number[]

Indices of the triangles.

Source§

protected _layerInfo: ILayerInfo

Layer information.

Source§

protected _layerRenderInfo: ILayerRenderInfo

Layer rendering information.

Source§

protected _pipeline: Pipeline

Pipeline for rendering borders.

Source§

protected _position: number[]

Positions of the triangles.

Source§

protected _rasterData: number[]

The raster data for the layer.

Source§

protected _rasterResX: number

The raster resolution in X direction.

Source§

protected _rasterResY: number

The raster resolution in Y direction.

Source§

protected _renderInfoIsDirty: boolean = false

Indicates if the layer's rendering information is dirty. This is used to determine if uniforms need to be reloaded.

Source§

protected _texCoord: number[]

The texture coordinates for the layer.

Accessors§

Source§

get components(): ILayerComponent[]

Get the components of the layer.

Source§

get indices(): number[]

Get the indices of the triangles.

Source§

get layerInfo(): ILayerInfo

Gets the information of the layer.

Source§

set layerInfo(layerInfo: ILayerInfo): void

Sets the information of the layer.

Source§

get layerRenderInfo(): ILayerRenderInfo

Gets the rendering information of the layer.

Source§

set layerRenderInfo(layerRenderInfo: ILayerRenderInfo): void

Sets the rendering information of the layer.

Source§

get position(): number[]

Get the positions of the triangles.

Source§

get rasterData(): number[]

Get the raster data.

Source§

get rasterResX(): number

Get the raster resolution in X direction.

Source§

get rasterResY(): number

Get the raster resolution in Y direction.

Source§

get texCoord(): number[]

Get the texture coordinates.

Methods§

Source§

createPipeline(renderer: Renderer): void

Create the rendering pipeline for the layer.

Source§

loadComponent(layerComponents: ILayerComponent[]): void

Load the components of the layer.

Source§

loadGeometry(layerGeometry: ILayerGeometry[]): void

Load the texture coordinates from the layer data.

Source§

loadLayerData(layerData: ILayerData): void

Load the layer data.

Source§

loadRaster(layerRaster: IRasterData[]): void

Load the raster data from the layer data.

Source§

makeLayerDataDirty(): void

Marks the layer's data as dirty, indicating that VOBs need to be reconstructed.

Source§

makeLayerRenderInfoDirty(): void

Marks the layer's rendering information as dirty, indicating uniforms need to be reloaded.

Source§

renderPass(camera: Camera): void

Render the layer for the current pass.