Expand description
Constructors§
Source§new VectorLayer(
layerInfo: ILayerInfo,
layerRenderInfo: ILayerRenderInfo,
layerData: ILayerData,
dimension?: number,
): VectorLayer
new VectorLayer(
layerInfo: ILayerInfo,
layerRenderInfo: ILayerRenderInfo,
layerData: ILayerData,
dimension?: number,
): VectorLayer
Constructor for Triangles2DLayer
Properties§
Source§protected _ components: ILayerComponent[] = []
protected _ components: ILayerComponent[] = []
Components of the layer.
Source§protected _ data Is Dirty: boolean = false
protected _ data Is Dirty: boolean = false
Indicates if the layer's data is dirty. This is used to determine if VOBs need to be reconstructed.
Source§protected _ highlighted Ids: Set<number>
protected _ highlighted Ids: Set<number>
Highlighted IDs of the layer. This is a set to ensure uniqueness of highlighted IDs.
Source§protected _ layer Info: ILayerInfo
protected _ layer Info: ILayerInfo
Layer information.
Source§protected _ layer Render Info: ILayerRenderInfo
protected _ layer Render Info: ILayerRenderInfo
Layer rendering information.
Source§protected _ pipeline Picking: PipelineTrianglePicking
protected _ pipeline Picking: PipelineTrianglePicking
Pipeline for picking triangles.
Source§protected _ render Info Is Dirty: boolean = false
protected _ render Info Is Dirty: boolean = false
Indicates if the layer's rendering information is dirty. This is used to determine if uniforms need to be reloaded.
Accessors§
Source§get components(): ILayerComponent[]
get components(): ILayerComponent[]
Get the components of the layer.
Source§get layerInfo(): ILayerInfo
get layerInfo(): ILayerInfo
Gets the information of the layer.
Source§set layerInfo(layerInfo: ILayerInfo): void
set layerInfo(layerInfo: ILayerInfo): void
Sets the information of the layer.
Source§get layerRenderInfo(): ILayerRenderInfo
get layerRenderInfo(): ILayerRenderInfo
Gets the rendering information of the layer.
Source§set layerRenderInfo(layerRenderInfo: ILayerRenderInfo): void
set layerRenderInfo(layerRenderInfo: ILayerRenderInfo): void
Sets the rendering information of the layer.
Methods§
Source§getPickedId(x: number, y: number): Promise<number>
getPickedId(x: number, y: number): Promise<number>
Get the picked ID at the specified screen coordinates.
Source§loadComponent(layerComponents: ILayerComponent[]): void
loadComponent(layerComponents: ILayerComponent[]): void
Load the components of the layer.
Source§loadGeometry(layerGeometry: ILayerGeometry[]): void
loadGeometry(layerGeometry: ILayerGeometry[]): void
Load the geometry data for the layer.
Source§loadLayerData(layerData: ILayerData): void
loadLayerData(layerData: ILayerData): void
Load the layer data, including geometry and components.
Source§loadThematic(layerThematic: ILayerThematic[]): void
loadThematic(layerThematic: ILayerThematic[]): void
Load the thematic data for the layer.
Source§makeLayerDataDirty(): void
makeLayerDataDirty(): void
Marks the layer's data as dirty, indicating that VOBs need to be reconstructed.
Vector layer class extends Layer to handle vector data. It manages the positions, thematic data, indices, and components of the layer, as well as the rendering pipelines.