Expand description
Constructors§
Source§new Triangles3DLayer(
layerInfo: ILayerInfo,
layerRenderInfo: ILayerRenderInfo,
layerData: ILayerData,
): Triangles3DLayer
new Triangles3DLayer(
layerInfo: ILayerInfo,
layerRenderInfo: ILayerRenderInfo,
layerData: ILayerData,
): Triangles3DLayer
Constructor for Triangles3DLayer
Properties§
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 _ normal: number[]Normals of the triangles.
protected _ pipeline: PipelineRendering pipeline for the layer.
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§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.
Triangles3DLayer class extends Triangles2DLayer to handle rendering of 3D triangles layers. It manages the normals and creates a specific rendering pipeline for 3D triangles.