Skip to content

autk-map


autk-map / Triangles2DLayer

Class: Triangles2DLayer

Defined in: layer-triangles2D.ts:13

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.

Extends

Constructors

Constructor

new Triangles2DLayer(layerInfo, layerRenderInfo, layerData, dimension?): Triangles2DLayer

Defined in: layer-triangles2D.ts:47

Constructor for Triangles2DBorder

Parameters

layerInfo

ILayerInfo

The layer information.

layerRenderInfo

ILayerRenderInfo

The layer render information.

layerData

ILayerData

The layer data.

dimension?

number = 2

The dimension of the layer (2 or 3).

Returns

Triangles2DLayer

Overrides

VectorLayer.constructor

Properties

_borderComponents

protected _borderComponents: ILayerBorderComponent[] = []

Defined in: layer-triangles2D.ts:30

Components of the layer.


_borderIds

protected _borderIds: number[]

Defined in: layer-triangles2D.ts:24

IDs of the borders.


_borderPos

protected _borderPos: number[]

Defined in: layer-triangles2D.ts:18

Positions of the borders.


_components

protected _components: ILayerComponent[] = []

Defined in: layer-vector.ts:56

Components of the layer.

Inherited from

VectorLayer._components


_dataIsDirty

protected _dataIsDirty: boolean = false

Defined in: layer.ts:38

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

Inherited from

VectorLayer._dataIsDirty


_dimension

protected _dimension: number

Defined in: layer-vector.ts:30

Dimension of the layer.

Inherited from

VectorLayer._dimension


_highlightedIds

protected _highlightedIds: Set<number>

Defined in: layer-vector.ts:65

Highlighted IDs of the layer. This is a set to ensure uniqueness of highlighted IDs.

Inherited from

VectorLayer._highlightedIds


_highlightedVertices

protected _highlightedVertices: number[]

Defined in: layer-vector.ts:71

Highlighted vertices of the layer.

Inherited from

VectorLayer._highlightedVertices


_indices

protected _indices: number[]

Defined in: layer-vector.ts:50

Indices of the triangles.

Inherited from

VectorLayer._indices


_layerInfo

protected _layerInfo: ILayerInfo

Defined in: layer.ts:18

Layer information.

Inherited from

VectorLayer._layerInfo


_layerRenderInfo

protected _layerRenderInfo: ILayerRenderInfo

Defined in: layer.ts:24

Layer rendering information.

Inherited from

VectorLayer._layerRenderInfo


_pipeline

protected _pipeline: Pipeline

Defined in: layer-vector.ts:92

Rendering pipeline for the layer.

Inherited from

VectorLayer._pipeline


_pipelineBorder

protected _pipelineBorder: PipelineTriangleBorder

Defined in: layer-triangles2D.ts:36

Pipeline for rendering borders.


_pipelinePicking

protected _pipelinePicking: PipelineTrianglePicking

Defined in: layer-vector.ts:98

Pipeline for picking triangles.

Inherited from

VectorLayer._pipelinePicking


_position

protected _position: number[]

Defined in: layer-vector.ts:38

Positions of the triangles.

Inherited from

VectorLayer._position


_renderInfoIsDirty

protected _renderInfoIsDirty: boolean = false

Defined in: layer.ts:31

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

Inherited from

VectorLayer._renderInfoIsDirty


_skippedIds

protected _skippedIds: Set<number>

Defined in: layer-vector.ts:78

Skipped IDs of the layer. This is a set to ensure uniqueness of skipped IDs.

Inherited from

VectorLayer._skippedIds


_skippedVertices

protected _skippedVertices: number[]

Defined in: layer-vector.ts:84

Skipped vertices of the layer.

Inherited from

VectorLayer._skippedVertices


_thematic

protected _thematic: number[]

Defined in: layer-vector.ts:44

Thematic data for the layer.

Inherited from

VectorLayer._thematic

Accessors

borderIds

Get Signature

get borderIds(): number[]

Defined in: layer-triangles2D.ts:68

Get the border IDs.

Returns

number[]

  • The IDs of the borders.

borderPos

Get Signature

get borderPos(): number[]

Defined in: layer-triangles2D.ts:60

Get the border positions.

Returns

number[]

  • The positions of the borders.

components

Get Signature

get components(): ILayerComponent[]

Defined in: layer-vector.ts:148

Get the components of the layer.

Returns

ILayerComponent[]

  • The components of the layer.

Inherited from

VectorLayer.components


highlightedIds

Get Signature

get highlightedIds(): number[]

Defined in: layer-vector.ts:156

Gets the IDs of the highlighted components in the layer.

Returns

number[]

The highlighted IDs.

Inherited from

VectorLayer.highlightedIds


highlightedVertices

Get Signature

get highlightedVertices(): number[]

Defined in: layer-vector.ts:164

Gets the highlighted vertices of the layer.

Returns

number[]

The highlighted vertices.

Inherited from

VectorLayer.highlightedVertices


indices

Get Signature

get indices(): number[]

Defined in: layer-vector.ts:140

Get the indices of the triangles.

Returns

number[]

  • The indices of the triangles.

Inherited from

VectorLayer.indices


layerInfo

Get Signature

get layerInfo(): ILayerInfo

Defined in: layer.ts:54

Gets the information of the layer.

Returns

ILayerInfo

The information of the layer.

Set Signature

set layerInfo(layerInfo): void

Defined in: layer.ts:62

Sets the information of the layer.

Parameters
layerInfo

ILayerInfo

The info to set for the layer.

Returns

void

Inherited from

VectorLayer.layerInfo


layerRenderInfo

Get Signature

get layerRenderInfo(): ILayerRenderInfo

Defined in: layer.ts:70

Gets the rendering information of the layer.

Returns

ILayerRenderInfo

The rendering information of the layer.

Set Signature

set layerRenderInfo(layerRenderInfo): void

Defined in: layer.ts:78

Sets the rendering information of the layer.

Parameters
layerRenderInfo

ILayerRenderInfo

The rendering info to set for the layer.

Returns

void

Inherited from

VectorLayer.layerRenderInfo


position

Get Signature

get position(): number[]

Defined in: layer-vector.ts:124

Get the positions of the triangles.

Returns

number[]

  • The positions of the triangles.

Inherited from

VectorLayer.position


skippedIds

Get Signature

get skippedIds(): number[]

Defined in: layer-vector.ts:172

Gets the IDs of the skipped components in the layer.

Returns

number[]

The skipped IDs.

Inherited from

VectorLayer.skippedIds


skippedVertices

Get Signature

get skippedVertices(): number[]

Defined in: layer-vector.ts:180

Gets the skipped vertices of the layer.

Returns

number[]

The skipped vertices.

Inherited from

VectorLayer.skippedVertices


thematic

Get Signature

get thematic(): number[]

Defined in: layer-vector.ts:132

Get the thematic data of the layer.

Returns

number[]

  • The thematic data.

Inherited from

VectorLayer.thematic

Methods

clearHighlightedIds()

clearHighlightedIds(): void

Defined in: layer-vector.ts:458

Clears the highlighted components of the layer.

Returns

void

Inherited from

VectorLayer.clearHighlightedIds


clearSkippedIds()

clearSkippedIds(): void

Defined in: layer-vector.ts:469

Clears the skipped components of the layer.

Returns

void

Inherited from

VectorLayer.clearSkippedIds


createPipeline()

createPipeline(renderer): void

Defined in: layer-triangles2D.ts:78

Create the rendering pipeline for the layer.

Parameters

renderer

Renderer

The renderer instance.

Returns

void

Overrides

VectorLayer.createPipeline


getPickedId()

getPickedId(x, y): Promise<number>

Defined in: layer-vector.ts:351

Get the picked ID at the specified screen coordinates.

Parameters

x

number

The x-coordinate of the screen position.

y

number

The y-coordinate of the screen position.

Returns

Promise<number>

  • A promise that resolves to the picked ID.

Inherited from

VectorLayer.getPickedId


loadBorderComponent()

loadBorderComponent(borderComponent): void

Defined in: layer-triangles2D.ts:135

Load the border components for the layer.

Parameters

borderComponent

ILayerBorderComponent[]

The border components to load.

Returns

void


loadBorderGeometry()

loadBorderGeometry(border): void

Defined in: layer-triangles2D.ts:102

Load the border geometry data for the layer.

Parameters

border

ILayerBorder[]

The border geometry data to load.

Returns

void


loadComponent()

loadComponent(layerComponents): void

Defined in: layer-vector.ts:250

Load the components of the layer.

Parameters

layerComponents

ILayerComponent[]

The components to load.

Returns

void

Inherited from

VectorLayer.loadComponent


loadGeometry()

loadGeometry(layerGeometry): void

Defined in: layer-vector.ts:210

Load the geometry data for the layer.

Parameters

layerGeometry

ILayerGeometry[]

The geometry data to load.

Returns

void

Inherited from

VectorLayer.loadGeometry


loadLayerData()

loadLayerData(layerData): void

Defined in: layer-triangles2D.ts:89

Load the layer data, specifically the border information.

Parameters

layerData

ILayerData

The data associated with the layer.

Returns

void

Overrides

VectorLayer.loadLayerData


loadThematic()

loadThematic(layerThematic): void

Defined in: layer-vector.ts:271

Load the thematic data for the layer.

Parameters

layerThematic

ILayerThematic[]

The thematic data to load.

Returns

void

Inherited from

VectorLayer.loadThematic


makeLayerDataDirty()

makeLayerDataDirty(): void

Defined in: layer.ts:85

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

Returns

void

Inherited from

VectorLayer.makeLayerDataDirty


makeLayerRenderInfoDirty()

makeLayerRenderInfoDirty(): void

Defined in: layer.ts:92

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

Returns

void

Inherited from

VectorLayer.makeLayerRenderInfoDirty


renderPass()

renderPass(camera): void

Defined in: layer-triangles2D.ts:158

Render the layer for the current pass.

Parameters

camera

Camera

The camera instance.

Returns

void

Overrides

VectorLayer.renderPass


renderPickingPass()

renderPickingPass(camera): void

Defined in: layer-vector.ts:338

Render the picking pass for the layer.

Parameters

camera

Camera

The camera instance.

Returns

void

Inherited from

VectorLayer.renderPickingPass


setHighlightedIds()

setHighlightedIds(ids): void

Defined in: layer-vector.ts:395

Set highlighted IDs for the layer.

Parameters

ids

number[]

The IDs to highlight.

Returns

void

Inherited from

VectorLayer.setHighlightedIds


setSkippedIds()

setSkippedIds(ids): void

Defined in: layer-vector.ts:421

Set skipped IDs for the layer.

Parameters

ids

number[]

The IDs to skip.

Returns

void

Inherited from

VectorLayer.setSkippedIds


toggleHighlightedIds()

toggleHighlightedIds(ids): void

Defined in: layer-vector.ts:359

Toggle highlighted IDs for the layer.

Parameters

ids

number[]

The IDs to highlight.

Returns

void

Inherited from

VectorLayer.toggleHighlightedIds

Released under the MIT License.