Expand description
Constructors§
Source§new Triangles2DLayer(
layerInfo: ILayerInfo,
layerRenderInfo: ILayerRenderInfo,
layerData: ILayerData,
dimension?: number,
): Triangles2DLayer
new Triangles2DLayer(
layerInfo: ILayerInfo,
layerRenderInfo: ILayerRenderInfo,
layerData: ILayerData,
dimension?: number,
): Triangles2DLayer
Constructor for Triangles2DBorder
Properties§
protected _ border Components: ILayerBorderComponent[][]Components of the layer.
protected _ border Ids: number[]IDs of the borders.
protected _ border Pos: number[]Positions of the borders.
protected _ components: ILayerComponent[][]Components of the layer.
protected _ data Is Dirty: booleanfalseIndicates if the layer's data is dirty. This is used to determine if VOBs need to be reconstructed.
protected _ dimension: numberDimension of the layer.
protected _ highlighted Ids: Set<number>Highlighted IDs of the layer. This is a set to ensure uniqueness of highlighted IDs.
protected _ highlighted Vertices: number[]Highlighted vertices of the layer.
protected _ indices: number[]Indices of the triangles.
protected _ layer Info: ILayerInfoLayer information.
protected _ layer Render Info: ILayerRenderInfoLayer rendering information.
protected _ pipeline: PipelineRendering pipeline for the layer.
protected _ pipeline Border: PipelineTriangleBorderPipeline for rendering borders.
protected _ pipeline Picking: PipelineTrianglePickingPipeline for picking triangles.
protected _ position: number[]Positions of the triangles.
protected _ render Info Is Dirty: booleanfalseIndicates if the layer's rendering information is dirty. This is used to determine if uniforms need to be reloaded.
protected _ skipped Ids: Set<number>Skipped IDs of the layer. This is a set to ensure uniqueness of skipped IDs.
protected _ skipped Vertices: number[]Skipped vertices of the layer.
protected _ thematic: number[]Thematic data for the layer.
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§loadBorderComponent(borderComponent: ILayerBorderComponent[]): void
loadBorderComponent(borderComponent: ILayerBorderComponent[]): void
Load the border components for the layer.
Source§loadBorderGeometry(border: ILayerBorder[]): void
loadBorderGeometry(border: ILayerBorder[]): void
Load the border geometry data for the layer.
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, specifically the border information.
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.
Triangles2DBorder class extends Triangles2DLayer to handle rendering of borders in 2D triangles layers. It manages the border positions and indices, and creates a specific rendering pipeline for borders.