@itwin/core-frontend 4.9.4 → 4.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -1
- package/lib/cjs/render/GraphicBranch.d.ts +4 -0
- package/lib/cjs/render/GraphicBranch.d.ts.map +1 -1
- package/lib/cjs/render/GraphicBranch.js.map +1 -1
- package/lib/cjs/render/RealityMeshGraphicParams.d.ts +1 -0
- package/lib/cjs/render/RealityMeshGraphicParams.d.ts.map +1 -1
- package/lib/cjs/render/RealityMeshGraphicParams.js.map +1 -1
- package/lib/cjs/render/RenderSystem.d.ts +1 -1
- package/lib/cjs/render/RenderSystem.d.ts.map +1 -1
- package/lib/cjs/render/RenderSystem.js +2 -2
- package/lib/cjs/render/RenderSystem.js.map +1 -1
- package/lib/cjs/render/webgl/BranchState.d.ts +5 -0
- package/lib/cjs/render/webgl/BranchState.d.ts.map +1 -1
- package/lib/cjs/render/webgl/BranchState.js +2 -0
- package/lib/cjs/render/webgl/BranchState.js.map +1 -1
- package/lib/cjs/render/webgl/BranchUniforms.d.ts +1 -0
- package/lib/cjs/render/webgl/BranchUniforms.d.ts.map +1 -1
- package/lib/cjs/render/webgl/BranchUniforms.js +13 -0
- package/lib/cjs/render/webgl/BranchUniforms.js.map +1 -1
- package/lib/cjs/render/webgl/Graphic.d.ts +1 -0
- package/lib/cjs/render/webgl/Graphic.d.ts.map +1 -1
- package/lib/cjs/render/webgl/Graphic.js +1 -0
- package/lib/cjs/render/webgl/Graphic.js.map +1 -1
- package/lib/cjs/render/webgl/RealityMesh.js +1 -1
- package/lib/cjs/render/webgl/RealityMesh.js.map +1 -1
- package/lib/cjs/tile/map/MapTile.js +1 -1
- package/lib/cjs/tile/map/MapTile.js.map +1 -1
- package/lib/esm/render/GraphicBranch.d.ts +4 -0
- package/lib/esm/render/GraphicBranch.d.ts.map +1 -1
- package/lib/esm/render/GraphicBranch.js.map +1 -1
- package/lib/esm/render/RealityMeshGraphicParams.d.ts +1 -0
- package/lib/esm/render/RealityMeshGraphicParams.d.ts.map +1 -1
- package/lib/esm/render/RealityMeshGraphicParams.js.map +1 -1
- package/lib/esm/render/RenderSystem.d.ts +1 -1
- package/lib/esm/render/RenderSystem.d.ts.map +1 -1
- package/lib/esm/render/RenderSystem.js +2 -2
- package/lib/esm/render/RenderSystem.js.map +1 -1
- package/lib/esm/render/webgl/BranchState.d.ts +5 -0
- package/lib/esm/render/webgl/BranchState.d.ts.map +1 -1
- package/lib/esm/render/webgl/BranchState.js +2 -0
- package/lib/esm/render/webgl/BranchState.js.map +1 -1
- package/lib/esm/render/webgl/BranchUniforms.d.ts +1 -0
- package/lib/esm/render/webgl/BranchUniforms.d.ts.map +1 -1
- package/lib/esm/render/webgl/BranchUniforms.js +13 -0
- package/lib/esm/render/webgl/BranchUniforms.js.map +1 -1
- package/lib/esm/render/webgl/Graphic.d.ts +1 -0
- package/lib/esm/render/webgl/Graphic.d.ts.map +1 -1
- package/lib/esm/render/webgl/Graphic.js +1 -0
- package/lib/esm/render/webgl/Graphic.js.map +1 -1
- package/lib/esm/render/webgl/RealityMesh.js +1 -1
- package/lib/esm/render/webgl/RealityMesh.js.map +1 -1
- package/lib/esm/tile/map/MapTile.js +1 -1
- package/lib/esm/tile/map/MapTile.js.map +1 -1
- package/package.json +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Change Log - @itwin/core-frontend
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 05 Nov 2024 15:22:45 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 4.9.6
|
|
6
|
+
Tue, 05 Nov 2024 15:22:45 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 4.9.5
|
|
11
|
+
Tue, 22 Oct 2024 20:01:40 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
4
14
|
|
|
5
15
|
## 4.9.4
|
|
6
16
|
Wed, 09 Oct 2024 20:22:04 GMT
|
|
@@ -112,6 +112,10 @@ export interface GraphicBranchOptions {
|
|
|
112
112
|
* @internal
|
|
113
113
|
*/
|
|
114
114
|
viewAttachmentId?: Id64String;
|
|
115
|
+
/** If true, the view's [DisplayStyleSettings.clipStyle]($common) will be disabled for this branch.
|
|
116
|
+
* No [ClipStyle.insideColor]($common), [ClipStyle.outsideColor]($common), or [ClipStyle.intersectionStyle]($common) will be applied.
|
|
117
|
+
*/
|
|
118
|
+
disableClipStyle?: true;
|
|
115
119
|
}
|
|
116
120
|
/** Clip/Transform for a branch that are varied over time.
|
|
117
121
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphicBranch.d.ts","sourceRoot":"","sources":["../../../src/render/GraphicBranch.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAgB,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EACL,yBAAyB,EAAE,UAAU,EAAE,2BAA2B,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EACjH,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAE5E;;GAEG;AACH,MAAM,WAA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B,EAAE,CAAC;gBAC1C,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC;oBAC/B,QAAQ,CAAC,GAAG,CAAC,uBAAuB,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;;oBAEnF,kBAAkB,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;YAC1E,CAAC;QACH,CAAC;QAED,OAAO;YACL,YAAY,EAAE,QAAQ;YACtB,gBAAgB,EAAE,MAAM,CAAC,iBAAiB;SAC3C,CAAC;IACJ,CAAC;IAnBe,gCAAU,aAmBzB,CAAA;AACH,CAAC,EArBgB,qBAAqB,qCAArB,qBAAqB,QAqBrC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Rendering\n */\n\nimport { disposeArray, Id64String, IDisposable } from \"@itwin/core-bentley\";\nimport {\n FeatureAppearanceProvider, HiddenLine, RealityModelDisplaySettings, RenderSchedule, ViewFlagOverrides, ViewFlags,\n} from \"@itwin/core-common\";\nimport { IModelConnection } from \"../IModelConnection\";\nimport { IModelApp } from \"../IModelApp\";\nimport { FeatureSymbology } from \"./FeatureSymbology\";\nimport { RenderClipVolume } from \"./RenderClipVolume\";\nimport { RenderGraphic } from \"./RenderGraphic\";\nimport { RenderMemory } from \"./RenderMemory\";\nimport { RenderPlanarClassifier } from \"./RenderPlanarClassifier\";\nimport { RenderTextureDrape } from \"./RenderSystem\";\nimport { Range3d } from \"@itwin/core-geometry\";\nimport { AnimationNodeId } from \"../common/internal/render/AnimationNodeId\";\n\n/** Carries information in a GraphicBranchOptions about a GraphicBranch produced by drawing one view into the context of another.\n * @internal\n */\nexport interface GraphicBranchFrustum {\n is3d: boolean;\n scale: {\n x: number;\n y: number;\n };\n}\n\n/**\n * A node in a scene graph. The branch itself is not renderable. Instead it contains a list of RenderGraphics,\n * and a transform, symbology overrides, and clip volume which are to be applied when rendering them.\n * Branches can be nested to build an arbitrarily-complex scene graph.\n * @see [[RenderSystem.createBranch]]\n * @public\n * @extensions\n */\nexport class GraphicBranch implements IDisposable /* , RenderMemory.Consumer */ {\n /** The child nodes of this branch */\n public readonly entries: RenderGraphic[] = [];\n /** If true, when the branch is disposed of, the RenderGraphics in its entries array will also be disposed */\n public readonly ownsEntries: boolean;\n /** Selectively overrides the view's [ViewFlags]($common) while drawing graphics within this branch. The default overrides nothing.\n * @see [[setViewFlagOverrides]].\n */\n public viewFlagOverrides: ViewFlagOverrides = {};\n /** Controls how reality models are displayed within this branch.\n * @beta\n */\n public realityModelDisplaySettings?: RealityModelDisplaySettings;\n /** @internal */\n public realityModelRange?: Range3d;\n /** Optional symbology overrides to be applied to all graphics in this branch */\n public symbologyOverrides?: FeatureSymbology.Overrides;\n /** Optional animation branch Id that incorporates the model Id and, for element timelines, the batch Id.\n * @internal\n */\n public animationId?: string;\n /** Identifies the node in the [RenderSchedule.Script]($backend) with which this branch is associated.\n * @internal\n */\n public animationNodeId?: AnimationNodeId | number;\n\n /** Identifies the \"group\" to which this branch belongs.\n * Groups represent cross-cutting subsets of a tile tree's contents.\n * For example, if a tile tree contains geometry from multiple models, each model (or smaller groups of multiple models) could be considered a group.\n * The top-level branches containing graphics from multiple tiles will each specify the group they represent, and the child branches within each\n * tile will likewise specify the group to which they belong.\n * When drawing, only the graphics within a tile that correlate with the current group will be drawn.\n * Groups cannot nest.\n * @internal\n */\n public groupNodeId?: number;\n\n /** Constructor\n * @param ownsEntries If true, when this branch is [[dispose]]d, all of the [[RenderGraphic]]s it contains will also be disposed.\n */\n public constructor(ownsEntries: boolean = false) {\n this.ownsEntries = ownsEntries;\n }\n\n /** Add a graphic to this branch. */\n public add(graphic: RenderGraphic): void {\n this.entries.push(graphic);\n }\n\n /** Compute the view flags that result from applying this branch's [[viewFlagOverrides]] to the input flags.\n * @param flags The input view flags, e.g., from the view's [[DisplayStyleState]].\n * @returns The result of applying [[viewFlagOverrides]] to `flags`.\n */\n public getViewFlags(flags: ViewFlags): ViewFlags {\n return flags.override(this.viewFlagOverrides);\n }\n\n /** Set [[viewFlagOverrides]] to override **all** ViewFlags as specified by `flags`. */\n public setViewFlags(flags: ViewFlags): void {\n this.viewFlagOverrides = { ...flags };\n }\n\n /** Change [[viewFlagOverrides]]. */\n public setViewFlagOverrides(ovr: ViewFlagOverrides): void {\n this.viewFlagOverrides = { ...ovr };\n }\n\n /** Disposes of all graphics in this branch, if and only if [[ownsEntries]] is true. */\n public dispose() {\n this.clear();\n }\n\n /** Returns true if this branch contains no graphics. */\n public get isEmpty(): boolean {\n return 0 === this.entries.length;\n }\n\n /** Empties the list of [[RenderGraphic]]s contained in this branch, and if the [[ownsEntries]] flag is set, also disposes of them. */\n public clear(): void {\n if (this.ownsEntries)\n disposeArray(this.entries);\n else\n this.entries.length = 0;\n }\n\n /** @internal */\n public collectStatistics(stats: RenderMemory.Statistics): void {\n for (const entry of this.entries)\n entry.collectStatistics(stats);\n }\n}\n\n/** Options passed to [[RenderSystem.createGraphicBranch]].\n * @public\n * @extensions\n */\nexport interface GraphicBranchOptions {\n /** Clip applied to the graphics in the branch. */\n clipVolume?: RenderClipVolume;\n /** @internal */\n classifierOrDrape?: RenderPlanarClassifier | RenderTextureDrape;\n /** Optionally replaces the view's hidden line settings when drawing the branch. */\n hline?: HiddenLine.Settings;\n /** The iModel from which the graphics originate, if different than that associated with the view. */\n iModel?: IModelConnection;\n /** @internal */\n frustum?: GraphicBranchFrustum;\n /** Supplements the view's [[FeatureSymbology.Overrides]] for graphics in the branch. */\n appearanceProvider?: FeatureAppearanceProvider;\n /** @internal Secondary planar classifiers (map layers) */\n secondaryClassifiers?: Map<number, RenderPlanarClassifier>;\n /** The Id of the [ViewAttachment]($backend) from which this branch's graphics originated.\n * @internal\n */\n viewAttachmentId?: Id64String;\n}\n\n/** Clip/Transform for a branch that are varied over time.\n * @internal\n */\nexport interface AnimationBranchState {\n readonly clip?: RenderClipVolume;\n readonly omit?: boolean;\n}\n\n/** @internal */\nexport function formatAnimationBranchId(modelId: Id64String, branchId: number): string {\n if (branchId < 0)\n return modelId;\n\n return `${modelId}_Node_${branchId.toString()}`;\n}\n\nfunction addAnimationBranch(modelId: Id64String, timeline: RenderSchedule.Timeline, branchId: number, branches: Map<string, AnimationBranchState>, time: number): void {\n const clipVector = timeline.getClipVector(time);\n const clip = clipVector ? IModelApp.renderSystem.createClipVolume(clipVector) : undefined;\n if (clip)\n branches.set(formatAnimationBranchId(modelId, branchId), { clip });\n}\n\n/** Mapping from node/branch IDs to animation branch state\n * @internal\n */\nexport interface AnimationBranchStates {\n /** Maps node Id to branch state. */\n readonly branchStates: Map<string, AnimationBranchState>;\n /** Ids of nodes that apply a transform. */\n readonly transformNodeIds: ReadonlySet<number>;\n}\n\n/** @internal */\nexport namespace AnimationBranchStates {\n export function fromScript(script: RenderSchedule.Script, time: number): AnimationBranchStates | undefined {\n if (!script.containsModelClipping && !script.requiresBatching)\n return undefined;\n\n const branches = new Map<string, AnimationBranchState>();\n for (const model of script.modelTimelines) {\n addAnimationBranch(model.modelId, model, -1, branches, time);\n for (const elem of model.elementTimelines) {\n if (elem.getVisibility(time) <= 0)\n branches.set(formatAnimationBranchId(model.modelId, elem.batchId), { omit: true });\n else\n addAnimationBranch(model.modelId, elem, elem.batchId, branches, time);\n }\n }\n\n return {\n branchStates: branches,\n transformNodeIds: script.transformBatchIds,\n };\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"GraphicBranch.js","sourceRoot":"","sources":["../../../src/render/GraphicBranch.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAA4E;AAK5E,4CAAyC;AAqBzC;;;;;;;GAOG;AACH,MAAa,aA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AAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;;oBAEnF,kBAAkB,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;YAC1E,CAAC;QACH,CAAC;QAED,OAAO;YACL,YAAY,EAAE,QAAQ;YACtB,gBAAgB,EAAE,MAAM,CAAC,iBAAiB;SAC3C,CAAC;IACJ,CAAC;IAnBe,gCAAU,aAmBzB,CAAA;AACH,CAAC,EArBgB,qBAAqB,qCAArB,qBAAqB,QAqBrC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Rendering\n */\n\nimport { disposeArray, Id64String, IDisposable } from \"@itwin/core-bentley\";\nimport {\n FeatureAppearanceProvider, HiddenLine, RealityModelDisplaySettings, RenderSchedule, ViewFlagOverrides, ViewFlags,\n} from \"@itwin/core-common\";\nimport { IModelConnection } from \"../IModelConnection\";\nimport { IModelApp } from \"../IModelApp\";\nimport { FeatureSymbology } from \"./FeatureSymbology\";\nimport { RenderClipVolume } from \"./RenderClipVolume\";\nimport { RenderGraphic } from \"./RenderGraphic\";\nimport { RenderMemory } from \"./RenderMemory\";\nimport { RenderPlanarClassifier } from \"./RenderPlanarClassifier\";\nimport { RenderTextureDrape } from \"./RenderSystem\";\nimport { Range3d } from \"@itwin/core-geometry\";\nimport { AnimationNodeId } from \"../common/internal/render/AnimationNodeId\";\n\n/** Carries information in a GraphicBranchOptions about a GraphicBranch produced by drawing one view into the context of another.\n * @internal\n */\nexport interface GraphicBranchFrustum {\n is3d: boolean;\n scale: {\n x: number;\n y: number;\n };\n}\n\n/**\n * A node in a scene graph. The branch itself is not renderable. Instead it contains a list of RenderGraphics,\n * and a transform, symbology overrides, and clip volume which are to be applied when rendering them.\n * Branches can be nested to build an arbitrarily-complex scene graph.\n * @see [[RenderSystem.createBranch]]\n * @public\n * @extensions\n */\nexport class GraphicBranch implements IDisposable /* , RenderMemory.Consumer */ {\n /** The child nodes of this branch */\n public readonly entries: RenderGraphic[] = [];\n /** If true, when the branch is disposed of, the RenderGraphics in its entries array will also be disposed */\n public readonly ownsEntries: boolean;\n /** Selectively overrides the view's [ViewFlags]($common) while drawing graphics within this branch. The default overrides nothing.\n * @see [[setViewFlagOverrides]].\n */\n public viewFlagOverrides: ViewFlagOverrides = {};\n /** Controls how reality models are displayed within this branch.\n * @beta\n */\n public realityModelDisplaySettings?: RealityModelDisplaySettings;\n /** @internal */\n public realityModelRange?: Range3d;\n /** Optional symbology overrides to be applied to all graphics in this branch */\n public symbologyOverrides?: FeatureSymbology.Overrides;\n /** Optional animation branch Id that incorporates the model Id and, for element timelines, the batch Id.\n * @internal\n */\n public animationId?: string;\n /** Identifies the node in the [RenderSchedule.Script]($backend) with which this branch is associated.\n * @internal\n */\n public animationNodeId?: AnimationNodeId | number;\n\n /** Identifies the \"group\" to which this branch belongs.\n * Groups represent cross-cutting subsets of a tile tree's contents.\n * For example, if a tile tree contains geometry from multiple models, each model (or smaller groups of multiple models) could be considered a group.\n * The top-level branches containing graphics from multiple tiles will each specify the group they represent, and the child branches within each\n * tile will likewise specify the group to which they belong.\n * When drawing, only the graphics within a tile that correlate with the current group will be drawn.\n * Groups cannot nest.\n * @internal\n */\n public groupNodeId?: number;\n\n /** Constructor\n * @param ownsEntries If true, when this branch is [[dispose]]d, all of the [[RenderGraphic]]s it contains will also be disposed.\n */\n public constructor(ownsEntries: boolean = false) {\n this.ownsEntries = ownsEntries;\n }\n\n /** Add a graphic to this branch. */\n public add(graphic: RenderGraphic): void {\n this.entries.push(graphic);\n }\n\n /** Compute the view flags that result from applying this branch's [[viewFlagOverrides]] to the input flags.\n * @param flags The input view flags, e.g., from the view's [[DisplayStyleState]].\n * @returns The result of applying [[viewFlagOverrides]] to `flags`.\n */\n public getViewFlags(flags: ViewFlags): ViewFlags {\n return flags.override(this.viewFlagOverrides);\n }\n\n /** Set [[viewFlagOverrides]] to override **all** ViewFlags as specified by `flags`. */\n public setViewFlags(flags: ViewFlags): void {\n this.viewFlagOverrides = { ...flags };\n }\n\n /** Change [[viewFlagOverrides]]. */\n public setViewFlagOverrides(ovr: ViewFlagOverrides): void {\n this.viewFlagOverrides = { ...ovr };\n }\n\n /** Disposes of all graphics in this branch, if and only if [[ownsEntries]] is true. */\n public dispose() {\n this.clear();\n }\n\n /** Returns true if this branch contains no graphics. */\n public get isEmpty(): boolean {\n return 0 === this.entries.length;\n }\n\n /** Empties the list of [[RenderGraphic]]s contained in this branch, and if the [[ownsEntries]] flag is set, also disposes of them. */\n public clear(): void {\n if (this.ownsEntries)\n disposeArray(this.entries);\n else\n this.entries.length = 0;\n }\n\n /** @internal */\n public collectStatistics(stats: RenderMemory.Statistics): void {\n for (const entry of this.entries)\n entry.collectStatistics(stats);\n }\n}\n\n/** Options passed to [[RenderSystem.createGraphicBranch]].\n * @public\n * @extensions\n */\nexport interface GraphicBranchOptions {\n /** Clip applied to the graphics in the branch. */\n clipVolume?: RenderClipVolume;\n /** @internal */\n classifierOrDrape?: RenderPlanarClassifier | RenderTextureDrape;\n /** Optionally replaces the view's hidden line settings when drawing the branch. */\n hline?: HiddenLine.Settings;\n /** The iModel from which the graphics originate, if different than that associated with the view. */\n iModel?: IModelConnection;\n /** @internal */\n frustum?: GraphicBranchFrustum;\n /** Supplements the view's [[FeatureSymbology.Overrides]] for graphics in the branch. */\n appearanceProvider?: FeatureAppearanceProvider;\n /** @internal Secondary planar classifiers (map layers) */\n secondaryClassifiers?: Map<number, RenderPlanarClassifier>;\n /** The Id of the [ViewAttachment]($backend) from which this branch's graphics originated.\n * @internal\n */\n viewAttachmentId?: Id64String;\n /** If true, the view's [DisplayStyleSettings.clipStyle]($common) will be disabled for this branch.\n * No [ClipStyle.insideColor]($common), [ClipStyle.outsideColor]($common), or [ClipStyle.intersectionStyle]($common) will be applied.\n */\n disableClipStyle?: true;\n}\n\n/** Clip/Transform for a branch that are varied over time.\n * @internal\n */\nexport interface AnimationBranchState {\n readonly clip?: RenderClipVolume;\n readonly omit?: boolean;\n}\n\n/** @internal */\nexport function formatAnimationBranchId(modelId: Id64String, branchId: number): string {\n if (branchId < 0)\n return modelId;\n\n return `${modelId}_Node_${branchId.toString()}`;\n}\n\nfunction addAnimationBranch(modelId: Id64String, timeline: RenderSchedule.Timeline, branchId: number, branches: Map<string, AnimationBranchState>, time: number): void {\n const clipVector = timeline.getClipVector(time);\n const clip = clipVector ? IModelApp.renderSystem.createClipVolume(clipVector) : undefined;\n if (clip)\n branches.set(formatAnimationBranchId(modelId, branchId), { clip });\n}\n\n/** Mapping from node/branch IDs to animation branch state\n * @internal\n */\nexport interface AnimationBranchStates {\n /** Maps node Id to branch state. */\n readonly branchStates: Map<string, AnimationBranchState>;\n /** Ids of nodes that apply a transform. */\n readonly transformNodeIds: ReadonlySet<number>;\n}\n\n/** @internal */\nexport namespace AnimationBranchStates {\n export function fromScript(script: RenderSchedule.Script, time: number): AnimationBranchStates | undefined {\n if (!script.containsModelClipping && !script.requiresBatching)\n return undefined;\n\n const branches = new Map<string, AnimationBranchState>();\n for (const model of script.modelTimelines) {\n addAnimationBranch(model.modelId, model, -1, branches, time);\n for (const elem of model.elementTimelines) {\n if (elem.getVisibility(time) <= 0)\n branches.set(formatAnimationBranchId(model.modelId, elem.batchId), { omit: true });\n else\n addAnimationBranch(model.modelId, elem, elem.batchId, branches, time);\n }\n }\n\n return {\n branchStates: branches,\n transformNodeIds: script.transformBatchIds,\n };\n }\n}\n"]}
|
|
@@ -15,5 +15,6 @@ export interface RealityMeshGraphicParams {
|
|
|
15
15
|
readonly baseTransparent: boolean;
|
|
16
16
|
readonly textures?: TerrainTexture[];
|
|
17
17
|
readonly layerClassifiers?: MapLayerClassifiers;
|
|
18
|
+
readonly disableClipStyle?: true;
|
|
18
19
|
}
|
|
19
20
|
//# sourceMappingURL=RealityMeshGraphicParams.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RealityMeshGraphicParams.d.ts","sourceRoot":"","sources":["../../../src/render/RealityMeshGraphicParams.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAG,qBAAqB,EAAG,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAE9F,gBAAgB;AAChB,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;IAC5C,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;IACvC,QAAQ,CAAC,aAAa,EAAE,iBAAiB,CAAC;IAC1C,QAAQ,CAAC,YAAY,EAAE,kBAAkB,CAAC;IAC1C,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,SAAS,EAAE,QAAQ,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IACrC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"RealityMeshGraphicParams.d.ts","sourceRoot":"","sources":["../../../src/render/RealityMeshGraphicParams.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAG,qBAAqB,EAAG,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAE9F,gBAAgB;AAChB,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;IAC5C,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;IACvC,QAAQ,CAAC,aAAa,EAAE,iBAAiB,CAAC;IAC1C,QAAQ,CAAC,YAAY,EAAE,kBAAkB,CAAC;IAC1C,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,SAAS,EAAE,QAAQ,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IACrC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;IAChD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,IAAI,CAAC;CAClC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RealityMeshGraphicParams.js","sourceRoot":"","sources":["../../../src/render/RealityMeshGraphicParams.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Rendering\n */\n\nimport { ColorDef, PackedFeatureTable } from \"@itwin/core-common\";\nimport { MapCartoRectangle, MapTileProjection } from \"../tile/internal\";\nimport { MapLayerClassifiers, RenderTerrainGeometry, TerrainTexture } from \"./RenderSystem\";\n\n/** @internal */\nexport interface RealityMeshGraphicParams {\n readonly realityMesh: RenderTerrainGeometry;\n readonly projection: MapTileProjection;\n readonly tileRectangle: MapCartoRectangle;\n readonly featureTable: PackedFeatureTable;\n readonly tileId: string | undefined;\n readonly baseColor: ColorDef | undefined;\n readonly baseTransparent: boolean;\n readonly textures?: TerrainTexture[];\n readonly layerClassifiers?: MapLayerClassifiers;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"RealityMeshGraphicParams.js","sourceRoot":"","sources":["../../../src/render/RealityMeshGraphicParams.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Rendering\n */\n\nimport { ColorDef, PackedFeatureTable } from \"@itwin/core-common\";\nimport { MapCartoRectangle, MapTileProjection } from \"../tile/internal\";\nimport { MapLayerClassifiers, RenderTerrainGeometry, TerrainTexture } from \"./RenderSystem\";\n\n/** @internal */\nexport interface RealityMeshGraphicParams {\n readonly realityMesh: RenderTerrainGeometry;\n readonly projection: MapTileProjection;\n readonly tileRectangle: MapCartoRectangle;\n readonly featureTable: PackedFeatureTable;\n readonly tileId: string | undefined;\n readonly baseColor: ColorDef | undefined;\n readonly baseTransparent: boolean;\n readonly textures?: TerrainTexture[];\n readonly layerClassifiers?: MapLayerClassifiers;\n readonly disableClipStyle?: true;\n}\n"]}
|
|
@@ -353,7 +353,7 @@ export declare abstract class RenderSystem implements IDisposable {
|
|
|
353
353
|
/** Create a RenderGraphic consisting of a list of Graphics to be drawn together. */
|
|
354
354
|
abstract createGraphicList(primitives: RenderGraphic[]): RenderGraphic;
|
|
355
355
|
/** Create a RenderGraphic consisting of a list of Graphics, with optional transform and symbology overrides applied to the list */
|
|
356
|
-
createBranch(branch: GraphicBranch, transform: Transform): RenderGraphic;
|
|
356
|
+
createBranch(branch: GraphicBranch, transform: Transform, options?: GraphicBranchOptions): RenderGraphic;
|
|
357
357
|
/** Create a graphic from a [[GraphicBranch]]. */
|
|
358
358
|
abstract createGraphicBranch(branch: GraphicBranch, transform: Transform, options?: GraphicBranchOptions): RenderGraphic;
|
|
359
359
|
/** Create a node in the scene graph corresponding to a transform node in the scene's schedule script.
|
|
@@ -1 +1 @@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AC;QAEtB;;;;WAIG;QACH,SAAS,CAAC,EAAE,OAAO,CAAC;QAEpB;;;WAGG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;QAE1B;;;;;;;;;WASG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;QAErB;;;WAGG;QACH,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;QAE3C;;;WAGG;QACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAEhC;;;;WAIG;QACH,YAAY,CAAC,EAAE,OAAO,CAAC;QAEvB;;;;WAIG;QACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B;CACF"}
|
|
@@ -285,8 +285,8 @@ class RenderSystem {
|
|
|
285
285
|
*/
|
|
286
286
|
createSkyBox(_params) { return undefined; }
|
|
287
287
|
/** Create a RenderGraphic consisting of a list of Graphics, with optional transform and symbology overrides applied to the list */
|
|
288
|
-
createBranch(branch, transform) {
|
|
289
|
-
return this.createGraphicBranch(branch, transform);
|
|
288
|
+
createBranch(branch, transform, options) {
|
|
289
|
+
return this.createGraphicBranch(branch, transform, options);
|
|
290
290
|
}
|
|
291
291
|
/** Create a node in the scene graph corresponding to a transform node in the scene's schedule script.
|
|
292
292
|
* Nodes under this branch will only be drawn if they belong to the specified transform node.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderSystem.js","sourceRoot":"","sources":["../../../src/render/RenderSystem.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAwF;AACxF,oDAG4B;AAC5B,wDAA4H;AAE5H,4CAAyC;AAEzC,+CAAyG;AACzG,kDAA+C;AAG/C,mDAA0F;AAE1F,mFAAyG;AACzG,6EAAgG;AAGhG,mDAAsE;AAQtE,mDAAoE;AAOpE,qFAAgF;AAKhF,wDAAkF;AAKlF,yCAAyC;AACzC,0EAA0E;AAE1E;;GAEG;AACH,MAAsB,kBAAkB;CAMvC;AAND,gDAMC;AAmBD,gBAAgB;AAChB,IAAY,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C,KAAK,CAAC;wBACvF,YAAY,EAAE,GAAG,CAAC,YAAY;qBAC/B;iBACF,CAAC,CAAC;YACL,CAAC;iBAAM,IAAI,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;gBAC1B,MAAM,KAAK,GAAG,MAAM,IAAA,kCAAsB,EAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;gBAC3D,IAAI,KAAK,EAAE,CAAC;oBACV,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC;wBAC3B,IAAI,EAAE,GAAG,CAAC,IAAI;wBACd,KAAK,EAAE;4BACL,MAAM,EAAE,KAAK;4BACb,YAAY,EAAE,GAAG,CAAC,YAAY;yBAC/B;qBACF,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;YAED,IAAI,OAAO,EAAE,CAAC;gBACZ,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;YACxC,CAAC;QACH,CAAC,CAAC,CAAC,CAAC;QAEJ,MAAM,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC3D,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,OAAO;YACL,CAAC,mCAAyB,CAAC,EAAE,SAAS;YACtC,qBAAqB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;YAChD,CAAC,mBAAS,CAAC,EAAE,QAAQ;SACtB,CAAC;IACJ,CAAC;CACF;AAxlBD,oCAwlBC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Rendering\n */\n\nimport { base64StringToUint8Array, Id64String, IDisposable } from \"@itwin/core-bentley\";\nimport {\n ColorDef, ColorIndex, ElementAlignedBox3d, FeatureIndex, FeatureIndexType, FillFlags, Frustum, Gradient, ImageBuffer, ImageBufferFormat, ImageSource, ImageSourceFormat,\n isValidImageSourceFormat, QParams3d, QPoint3dList, RenderFeatureTable, RenderMaterial, RenderTexture, SkyGradient, TextureProps, TextureTransparency,\n} from \"@itwin/core-common\";\nimport { ClipVector, Matrix3d, Point2d, Point3d, Range2d, Range3d, Transform, Vector2d, XAndY } from \"@itwin/core-geometry\";\nimport { WebGLExtensionName } from \"@itwin/webgl-compatibility\";\nimport { IModelApp } from \"../IModelApp\";\nimport { IModelConnection } from \"../IModelConnection\";\nimport { createGraphicFromDescription, MapTileTreeReference, TileTreeReference } from \"../tile/internal\";\nimport { ToolAdmin } from \"../tools/ToolAdmin\";\nimport { SceneContext } from \"../ViewContext\";\nimport { Viewport } from \"../Viewport\";\nimport { imageElementFromImageSource, tryImageElementFromUrl } from \"../common/ImageUtil\";\nimport { MeshParams } from \"../common/internal/render/MeshParams\";\nimport { createPointStringParams, PointStringParams } from \"../common/internal/render/PointStringParams\";\nimport { createPolylineParams, PolylineParams } from \"../common/internal/render/PolylineParams\";\nimport { TextureCacheKey } from \"../common/render/TextureParams\";\nimport { ViewRect } from \"../common/ViewRect\";\nimport { GraphicBranch, GraphicBranchOptions } from \"./GraphicBranch\";\nimport { CustomGraphicBuilderOptions, GraphicBuilder, ViewportGraphicBuilderOptions } from \"./GraphicBuilder\";\nimport { InstancedGraphicParams, PatternGraphicParams } from \"../common/render/InstancedGraphicParams\";\nimport { Mesh } from \"../common/internal/render/MeshPrimitives\";\nimport { RealityMeshGraphicParams } from \"./RealityMeshGraphicParams\";\nimport { RealityMeshParams } from \"./RealityMeshParams\";\nimport { PointCloudArgs } from \"../common/internal/render/PointCloudPrimitive\";\nimport { RenderClipVolume } from \"./RenderClipVolume\";\nimport { RenderGraphic, RenderGraphicOwner } from \"./RenderGraphic\";\nimport { CreateRenderMaterialArgs } from \"./CreateRenderMaterialArgs\";\nimport { RenderMemory } from \"./RenderMemory\";\nimport { RenderPlanarClassifier } from \"./RenderPlanarClassifier\";\nimport { RenderTarget } from \"./RenderTarget\";\nimport { CreateTextureArgs, CreateTextureFromSourceArgs } from \"./CreateTextureArgs\";\nimport { ScreenSpaceEffectBuilder, ScreenSpaceEffectBuilderParams } from \"./ScreenSpaceEffectBuilder\";\nimport { createMeshParams } from \"../common/internal/render/VertexTableBuilder\";\nimport { GraphicType } from \"../common/render/GraphicType\";\nimport { BatchOptions } from \"../common/render/BatchOptions\";\nimport { GraphicDescription } from \"../common/render/GraphicDescriptionBuilder\";\nimport { GraphicDescriptionContextPropsImpl, WorkerGraphicDescriptionContextPropsImpl } from \"../common/internal/render/GraphicDescriptionContextImpl\";\nimport { _implementationProhibited, _textures } from \"../common/internal/Symbols\";\nimport { GraphicDescriptionContext, GraphicDescriptionContextProps, WorkerGraphicDescriptionContextProps } from \"../common/render/GraphicDescriptionContext\";\nimport { MeshArgs } from \"./MeshArgs\";\nimport { PolylineArgs } from \"./PolylineArgs\";\n\n/* eslint-disable no-restricted-syntax */\n// cSpell:ignore deserializing subcat uninstanced wiremesh qorigin trimesh\n\n/** An opaque representation of a texture draped on geometry within a [[Viewport]].\n * @internal\n */\nexport abstract class RenderTextureDrape implements IDisposable {\n public abstract dispose(): void;\n\n /** @internal */\n public abstract collectStatistics(stats: RenderMemory.Statistics): void;\n public abstract collectGraphics(context: SceneContext): void;\n}\n\n/** @internal */\nexport type TextureDrapeMap = Map<Id64String, RenderTextureDrape>;\n\n/** @internal */\nexport type MapLayerClassifiers = Map<number, RenderPlanarClassifier>;\n\n/** Describes a texture loaded from an HTMLImageElement\n * ###TODO Replace with TextureImage from RenderTexture.ts after we start returning transparency info from the backend.\n * @internal\n */\nexport interface OldTextureImage {\n /** The HTMLImageElement containing the texture's image data */\n image: HTMLImageElement;\n /** The format of the texture's image data */\n format: ImageSourceFormat;\n}\n\n/** @internal */\nexport enum RenderDiagnostics {\n /** No diagnostics enabled. */\n None = 0,\n /** Debugging output to browser console enabled. */\n DebugOutput = 1 << 1,\n /** Potentially expensive checks of WebGL state enabled. */\n WebGL = 1 << 2,\n /** All diagnostics enabled. */\n All = DebugOutput | WebGL,\n}\n\n/** @internal */\nexport interface GLTimerResult {\n /** Label from GLTimer.beginOperation */\n label: string;\n /** Time elapsed in nanoseconds, inclusive of child result times.\n * @note no-op queries seem to have 32ns of noise.\n */\n nanoseconds: number;\n /** Child results if GLTimer.beginOperation calls were nested */\n children?: GLTimerResult[];\n}\n\n/** @internal */\nexport type GLTimerResultCallback = (result: GLTimerResult) => void;\n\n/** Default implementation of RenderGraphicOwner. */\nclass GraphicOwner extends RenderGraphicOwner {\n public constructor(private readonly _graphic: RenderGraphic) { super(); }\n public get graphic(): RenderGraphic { return this._graphic; }\n}\n\n/** An interface optionally exposed by a RenderSystem that allows control of various debugging features.\n * @beta\n */\nexport interface RenderSystemDebugControl {\n /** Destroy this system's webgl context. Returns false if this behavior is not supported. */\n loseContext(): boolean;\n\n /** Overrides [[RenderSystem.dpiAwareLOD]].\n * @internal\n */\n dpiAwareLOD: boolean;\n\n /** Record GPU profiling information for each frame drawn. Check isGLTimerSupported before using.\n * @internal\n */\n resultsCallback?: GLTimerResultCallback;\n\n /** Returns true if the browser supports GPU profiling queries.\n * @internal\n */\n readonly isGLTimerSupported: boolean;\n\n /** Attempts to compile all shader programs and returns true if all were successful. May throw exceptions on errors.\n * This is useful for debugging shader compilation on specific platforms - especially those which use neither ANGLE nor SwiftShader (e.g., linux, mac, iOS)\n * because our unit tests which also compile all shaders run in software mode and therefore may not catch some \"errors\" (especially uniforms that have no effect on\n * program output).\n * @internal\n */\n compileAllShaders(): boolean;\n\n /** Obtain accumulated debug info collected during shader compilation. See `RenderSystem.Options.debugShaders`.\n * @internal\n */\n debugShaderFiles?: DebugShaderFile[];\n}\n\n/** @internal */\nexport abstract class RenderTerrainGeometry implements IDisposable, RenderMemory.Consumer {\n public abstract dispose(): void;\n public abstract get transform(): Transform | undefined;\n public abstract collectStatistics(stats: RenderMemory.Statistics): void;\n}\n\n/** @internal */\nexport class TerrainTexture {\n public constructor(\n public readonly texture: RenderTexture,\n public featureId: number,\n public readonly scale: Vector2d,\n public readonly translate: Vector2d,\n public readonly targetRectangle: Range2d,\n public readonly layerIndex: number,\n public transparency: number,\n public readonly clipRectangle?: Range2d,\n ) { }\n\n public cloneWithClip(clipRectangle: Range2d) {\n return new TerrainTexture (this.texture, this.featureId, this.scale, this.translate, this.targetRectangle, this.layerIndex, this.transparency, clipRectangle);\n }\n}\n/** @internal */\nexport class DebugShaderFile {\n public constructor(\n public readonly filename: string,\n public readonly src: string,\n public isVS: boolean,\n public isGL: boolean,\n public isUsed: boolean,\n ) { }\n}\n/** Transparency settings for planar grid display.\n * @alpha\n */\nexport class PlanarGridTransparency {\n /** Transparency for the grid plane. This should generally be fairly high to avoid obscuring other geometry */\n public readonly planeTransparency = .9;\n /** Transparency of the grid lines. This should be higher than the plane, but less than reference line transparency */\n public readonly lineTransparency = .75;\n /** Transparency of the reference lines. This should be less than plane or line transparency so that reference lines are more prominent */\n public readonly refTransparency = .5;\n}\n\n/** Settings for planar grid display.\n * @alpha\n */\nexport interface PlanarGridProps {\n /** The grid origin */\n origin: Point3d;\n /** The grid orientation. The grid X and Y direction are the first and second matrix rows */\n rMatrix: Matrix3d;\n /** The spacing between grid liens in the X and Y direction */\n spacing: XAndY;\n /** Grid lines per reference. If zero no reference lines are displayed. */\n gridsPerRef: number;\n /** Grid color. [[Use Viewport.getContrastToBackgroundColor]] to get best constrast color based on current background. */\n color: ColorDef;\n /** Transparency settings. If omitted then the [[PlanarGridTransparency]] defaults are used. */\n transparency?: PlanarGridTransparency;\n}\n\n/** An opaque representation of geometry allocated by a [[RenderSystem]] to be supplied to [[RenderSystem.createRenderGraphic]].\n * @internal\n */\nexport type RenderGeometry = IDisposable & RenderMemory.Consumer;\n\n/** An opaque representation of instructions for repeatedly drawing a [[RenderGeometry]] to pattern a planar region, to be supplied to [[RenderSystem.createRenderGraphic]].\n * @internal\n */\nexport type RenderAreaPattern = IDisposable & RenderMemory.Consumer;\n\n/** @internal */\nexport interface RenderSkyGradientParams {\n type: \"gradient\";\n gradient: SkyGradient;\n zOffset: number;\n}\n\n/** @internal */\nexport interface RenderSkySphereParams {\n type: \"sphere\";\n texture: RenderTexture;\n rotation: number;\n zOffset: number;\n}\n\n/** @internal */\nexport interface RenderSkyCubeParams {\n type: \"cube\";\n texture: RenderTexture;\n}\n\n/** @internal */\nexport type RenderSkyBoxParams = RenderSkyGradientParams | RenderSkySphereParams | RenderSkyCubeParams;\n\n/** Arguments supplied to [[RenderSystem.createGraphicFromDescription]].\n * @beta\n */\nexport interface CreateGraphicFromDescriptionArgs {\n /** A description of the [[RenderGraphic]] to create, obtained from a [[GraphicDescriptionBuilder]]. */\n description: GraphicDescription;\n /** The context that was used to create the graphic description, obtained from [[RenderSystem.resolveGraphicDescriptionContext]]. */\n context: GraphicDescriptionContext;\n}\n\n/** A RenderSystem provides access to resources used by the internal WebGL-based rendering system.\n * An application rarely interacts directly with the RenderSystem; instead it interacts with types like [[Viewport]] which\n * coordinate with the RenderSystem on the application's behalf.\n * @see [Display system overview]($docs/learning/display/index.md)\n * @see [[IModelApp.renderSystem]].\n * @public\n * @extensions\n */\nexport abstract class RenderSystem implements IDisposable {\n /** Options used to initialize the RenderSystem. These are primarily used for feature-gating.\n * This object is frozen and cannot be modified after the RenderSystem is created.\n * @internal\n */\n public readonly options: RenderSystem.Options;\n\n /** Antialias samples to use on all subsequently created render targets.\n * Default value: undefined (no antialiasing)\n * @beta\n */\n public antialiasSamples?: number;\n\n /** Initialize the RenderSystem with the specified options.\n * @note The RenderSystem takes ownership of the supplied Options and freezes it.\n * @internal\n */\n protected constructor(options?: RenderSystem.Options) {\n this.options = undefined !== options ? options : {};\n Object.freeze(this.options);\n if (undefined !== this.options.disabledExtensions)\n Object.freeze(this.options.disabledExtensions);\n }\n\n /** @internal */\n public abstract get isValid(): boolean;\n\n /** @internal */\n public abstract dispose(): void;\n\n /** The maximum permitted width or height of a texture supported by this render system. */\n public get maxTextureSize(): number { return 0; }\n\n /** @internal */\n public get supportsCreateImageBitmap(): boolean { return false; }\n\n /** @internal */\n public get dpiAwareLOD(): boolean { return true === this.options.dpiAwareLOD; }\n\n /** @internal */\n public get isMobile(): boolean { return false; }\n\n /** @internal */\n public abstract createTarget(canvas: HTMLCanvasElement): RenderTarget;\n /** @internal */\n public abstract createOffscreenTarget(rect: ViewRect): RenderTarget;\n\n /** Perform a small unit of idle work and return true if more idle work remains to be done. This function is invoked on each tick of the javascript event loop as long as no viewports are registered with the ViewManager, until it returns false to indicate all idle work has been completed.\n * @internal\n */\n public abstract doIdleWork(): boolean;\n\n /** Find a previously-created [RenderMaterial]($common) by its ID.\n * @param _key The unique ID of the material within the context of the IModelConnection. Typically an element ID.\n * @param _imodel The IModelConnection with which the material is associated.\n * @returns A previously-created material matching the specified ID, or undefined if no such material exists.\n */\n public findMaterial(_key: string, _imodel: IModelConnection): RenderMaterial | undefined { return undefined; }\n\n /** Create a [RenderMaterial]($common) from parameters\n * If the parameters include a non-empty key, and no previously-created material already exists with that key, the newly-created material will be cached on the IModelConnection such\n * that it can later be retrieved by the same key using [[RenderSystem.findMaterial]].\n * @param _params A description of the material's properties.\n * @param _imodel The IModelConnection associated with the material.\n * @returns the newly-created material, or undefined if the material could not be created or if a material with the same key as that specified in the params already exists.\n * @deprecated in 3.x. Use [[createRenderMaterial]].\n */\n // eslint-disable-next-line deprecation/deprecation\n public createMaterial(_params: RenderMaterial.Params, _imodel: IModelConnection): RenderMaterial | undefined { return undefined; }\n\n /** Create a [RenderMaterial]($common).\n * @see [[CreateRenderMaterialArgs]] for a description of the material parameters.\n */\n public createRenderMaterial(_args: CreateRenderMaterialArgs): RenderMaterial | undefined {\n return undefined;\n }\n\n /** Creates a [[GraphicBuilder]] for creating a [[RenderGraphic]].\n * @param placement The local-to-world transform in which the builder's geometry is to be defined.\n * @param type The type of builder to create.\n * @param viewport The viewport in which the resultant [[RenderGraphic]] will be rendered.\n * @param pickableId If the decoration is to be pickable, a unique identifier to associate with the resultant [[RenderGraphic]].\n * @returns A builder for creating a [[RenderGraphic]] of the specified type appropriate for rendering within the specified viewport.\n * @see [[IModelConnection.transientIds]] for obtaining an ID for a pickable decoration.\n * @see [[RenderContext.createGraphicBuilder]].\n * @see [[Decorator]]\n */\n public createGraphicBuilder(placement: Transform, type: GraphicType, viewport: Viewport, pickableId?: Id64String): GraphicBuilder {\n const pickable = undefined !== pickableId ? { id: pickableId } : undefined;\n return this.createGraphic({ type, viewport, placement, pickable });\n }\n\n /** Obtain a [[GraphicBuilder]] from which to produce a [[RenderGraphic]].\n * @param options Options describing how to create the builder.\n * @returns A builder that produces a [[RenderGraphic]].\n */\n public abstract createGraphic(options: CustomGraphicBuilderOptions | ViewportGraphicBuilderOptions): GraphicBuilder;\n\n /** Obtain an object capable of producing a custom screen-space effect to be applied to the image rendered by a [[Viewport]].\n * @returns undefined if screen-space effects are not supported by this RenderSystem.\n */\n public createScreenSpaceEffectBuilder(_params: ScreenSpaceEffectBuilderParams): ScreenSpaceEffectBuilder | undefined {\n return undefined;\n }\n\n /** Create a graphic from a low-level representation of a triangle mesh.\n * @param args A description of the mesh.\n * @param instances Repetitions of the mesh to be drawn.\n * @see [[createGraphic]] to obtain a [[GraphicBuilder]] that can assemble a mesh from higher-level primitives.\n */\n public createTriMesh(args: MeshArgs, instances?: InstancedGraphicParams): RenderGraphic | undefined;\n /** @internal */\n public createTriMesh(args: MeshArgs, instances?: InstancedGraphicParams | RenderAreaPattern | Point3d): RenderGraphic | undefined; // eslint-disable-line @typescript-eslint/unified-signatures\n /** @internal */\n public createTriMesh(args: MeshArgs, instances?: InstancedGraphicParams | RenderAreaPattern | Point3d): RenderGraphic | undefined {\n const params = createMeshParams(args, this.maxTextureSize, IModelApp.tileAdmin.edgeOptions.type !== \"non-indexed\");\n return this.createMesh(params, instances);\n }\n\n /** @internal */\n public createMeshGraphics(mesh: Mesh, instances?: InstancedGraphicParams | Point3d): RenderGraphic | undefined {\n const meshArgs = mesh.toMeshArgs();\n if (meshArgs) {\n return this.createTriMesh(meshArgs, instances);\n }\n\n const polylineArgs = mesh.toPolylineArgs();\n return polylineArgs ? this.createIndexedPolylines(polylineArgs, instances) : undefined;\n }\n\n /** Create a graphic from a low-level representation of a set of line strings.\n * @param args A description of the line strings.\n * @param instances Repetitions of the line strings to be drawn.\n */\n public createIndexedPolylines(args: PolylineArgs, instances?: InstancedGraphicParams): RenderGraphic | undefined;\n /** @internal */\n public createIndexedPolylines(args: PolylineArgs, instances?: InstancedGraphicParams | RenderAreaPattern | Point3d): RenderGraphic | undefined; // eslint-disable-line @typescript-eslint/unified-signatures\n /** @internal */\n public createIndexedPolylines(args: PolylineArgs, instances?: InstancedGraphicParams | RenderAreaPattern | Point3d): RenderGraphic | undefined {\n if (args.flags.isDisjoint) {\n const pointStringParams = createPointStringParams(args, IModelApp.renderSystem.maxTextureSize);\n return undefined !== pointStringParams ? this.createPointString(pointStringParams, instances) : undefined;\n } else {\n const polylineParams = createPolylineParams(args, this.maxTextureSize);\n return undefined !== polylineParams ? this.createPolyline(polylineParams, instances) : undefined;\n }\n }\n\n /** @internal */\n public createMeshGeometry(_params: MeshParams, _viewIndependentOrigin?: Point3d): RenderGeometry | undefined { return undefined; }\n /** @internal */\n public createPolylineGeometry(_params: PolylineParams, _viewIndependentOrigin?: Point3d): RenderGeometry | undefined { return undefined; }\n /** @internal */\n public createPointStringGeometry(_params: PointStringParams, _viewIndependentOrigin?: Point3d): RenderGeometry | undefined { return undefined; }\n\n /** @internal */\n public createAreaPattern(_params: PatternGraphicParams): RenderAreaPattern | undefined { return undefined; }\n\n /** Create a RenderGraphic from a RenderGeometry produced by this RenderSystem.\n * @internal\n */\n public abstract createRenderGraphic(_geometry: RenderGeometry, instances?: InstancedGraphicParams | RenderAreaPattern): RenderGraphic | undefined;\n\n private createGraphicFromGeometry(\n createGeometry: (viewIndependentOrigin?: Point3d) => RenderGeometry | undefined,\n instancesOrOrigin?: InstancedGraphicParams | RenderAreaPattern | Point3d): RenderGraphic | undefined {\n let viOrigin;\n let instances;\n if (instancesOrOrigin instanceof Point3d)\n viOrigin = instancesOrOrigin;\n else\n instances = instancesOrOrigin;\n\n const geom = createGeometry(viOrigin);\n return geom ? this.createRenderGraphic(geom, instances) : undefined;\n }\n\n /** @internal */\n public createMesh(params: MeshParams, instances?: InstancedGraphicParams | RenderAreaPattern | Point3d): RenderGraphic | undefined {\n return this.createGraphicFromGeometry((viOrigin) => this.createMeshGeometry(params, viOrigin), instances);\n }\n\n /** @internal */\n public createPolyline(params: PolylineParams, instances?: InstancedGraphicParams | RenderAreaPattern | Point3d): RenderGraphic | undefined {\n return this.createGraphicFromGeometry((origin) => this.createPolylineGeometry(params, origin), instances);\n }\n\n /** @internal */\n public createPointString(params: PointStringParams, instances?: InstancedGraphicParams | RenderAreaPattern | Point3d): RenderGraphic | undefined {\n return this.createGraphicFromGeometry((origin) => this.createPointStringGeometry(params, origin), instances);\n }\n\n /** @internal */\n public createTerrainMesh(_params: RealityMeshParams, _transform?: Transform, _disableTextureDisposal = false): RenderTerrainGeometry | undefined {\n return undefined;\n }\n\n /** @internal */\n public createRealityMeshGraphic(_params: RealityMeshGraphicParams, _disableTextureDisposal = false): RenderGraphic | undefined { return undefined; }\n /** @internal */\n public createRealityMesh(_realityMesh: RealityMeshParams, _disableTextureDisposal = false): RenderGraphic | undefined { return undefined; }\n /** @internal */\n public get maxRealityImageryLayers() { return 0; }\n /** @internal */\n public createPointCloud(_args: PointCloudArgs, _imodel: IModelConnection): RenderGraphic | undefined { return undefined; }\n\n /** Create a clip volume to clip geometry.\n * @note The clip volume takes ownership of the ClipVector, which must not be subsequently mutated.\n * @param _clipVector Defines how the volume clips geometry.\n * @returns A clip volume, or undefined if, e.g., the clip vector does not clip anything.\n */\n public createClipVolume(_clipVector: ClipVector): RenderClipVolume | undefined { return undefined; }\n\n /** @internal */\n public createPlanarGrid(_frustum: Frustum, _grid: PlanarGridProps): RenderGraphic | undefined { return undefined; }\n /** @internal */\n public createBackgroundMapDrape(_drapedTree: TileTreeReference, _mapTree: MapTileTreeReference): RenderTextureDrape | undefined { return undefined; }\n /** @internal */\n public createTile(tileTexture: RenderTexture, corners: Point3d[], featureIndex?: number): RenderGraphic | undefined {\n // corners\n // [0] [1]\n // [2] [3]\n // Quantize the points according to their range\n const points = new QPoint3dList(QParams3d.fromRange(Range3d.create(...corners)));\n for (let i = 0; i < 4; i++)\n points.add(corners[i]);\n\n // Now remove the translation from the quantized points and put it into a transform instead.\n // This prevents graphical artifacts when quantization origin is large relative to quantization scale.\n // ###TODO: Would be better not to create a branch for every tile.\n const qorigin = points.params.origin;\n const transform = Transform.createTranslationXYZ(qorigin.x, qorigin.y, qorigin.z);\n qorigin.setZero();\n\n const features = new FeatureIndex();\n if (undefined !== featureIndex) {\n features.featureID = featureIndex;\n features.type = FeatureIndexType.Uniform;\n }\n\n const rasterTile: MeshArgs = {\n points,\n vertIndices: [0, 1, 2, 2, 1, 3],\n isPlanar: true,\n features,\n colors: new ColorIndex(),\n fillFlags: FillFlags.None,\n textureMapping: {\n uvParams: [new Point2d(0, 0), new Point2d(1, 0), new Point2d(0, 1), new Point2d(1, 1)],\n texture: tileTexture,\n },\n };\n\n const trimesh = this.createTriMesh(rasterTile);\n if (undefined === trimesh)\n return undefined;\n\n const branch = new GraphicBranch(true);\n branch.add(trimesh);\n return this.createBranch(branch, transform);\n }\n\n /** Create a Graphic for a [[SkyBox]] which encompasses the entire scene, rotating with the camera.\n * @internal\n */\n public createSkyBox(_params: RenderSkyBoxParams): RenderGraphic | undefined { return undefined; }\n\n /** Create a RenderGraphic consisting of a list of Graphics to be drawn together. */\n public abstract createGraphicList(primitives: RenderGraphic[]): RenderGraphic;\n\n /** Create a RenderGraphic consisting of a list of Graphics, with optional transform and symbology overrides applied to the list */\n public createBranch(branch: GraphicBranch, transform: Transform): RenderGraphic {\n return this.createGraphicBranch(branch, transform);\n }\n\n /** Create a graphic from a [[GraphicBranch]]. */\n public abstract createGraphicBranch(branch: GraphicBranch, transform: Transform, options?: GraphicBranchOptions): RenderGraphic;\n\n /** Create a node in the scene graph corresponding to a transform node in the scene's schedule script.\n * Nodes under this branch will only be drawn if they belong to the specified transform node.\n * This allows the graphics in a single Tile to be efficiently drawn with different transforms applied by different nodes.\n * The node Id is either the Id of a single transform node in the script, of 0xffffffff to indicate all nodes that have no transform applied to them.\n * @internal\n */\n public createAnimationTransformNode(graphic: RenderGraphic, _nodeId: number): RenderGraphic {\n return graphic;\n }\n\n /** Create a \"batch\" of graphics containing individual [Feature]($common)s.\n * @param graphic The graphic representing the contents of the batch.\n * @param features The features contained within the batch.\n * @param range A volume fully encompassing the batch's geometry.\n * @param options Options customizing the behavior of the batch.\n */\n public abstract createBatch(graphic: RenderGraphic, features: RenderFeatureTable, range: ElementAlignedBox3d, options?: BatchOptions): RenderGraphic;\n\n /** Return a Promise which when resolved indicates that all pending external textures have finished loading from the backend. */\n public async waitForAllExternalTextures(): Promise<void> { return Promise.resolve(); }\n /** @internal */\n public get hasExternalTextureRequests(): boolean { return false; }\n\n /** Create a graphic that assumes ownership of another graphic.\n * @param ownedGraphic The RenderGraphic to be owned.\n * @returns The owning graphic that exposes a `disposeGraphic` method for explicitly disposing of the owned graphic.\n * @see [[RenderGraphicOwner]] for details regarding ownership semantics.\n * @public\n */\n public createGraphicOwner(ownedGraphic: RenderGraphic): RenderGraphicOwner { return new GraphicOwner(ownedGraphic); }\n\n /** Create a \"layer\" containing the graphics belonging to it. A layer has a unique identifier and all of its geometry lies in an XY plane.\n * Different layers can be drawn coincident with one another; their draw order can be controlled by a per-layer priority value so that one layer draws\n * on top of another. Layers cannot nest inside other layers. Multiple GraphicLayers can exist with the same ID; they are treated as belonging to the same layer.\n * A GraphicLayer must be contained (perhaps indirectly) inside a GraphicLayerContainer.\n * @see [[createGraphicLayerContainer]]\n * @internal\n */\n public createGraphicLayer(graphic: RenderGraphic, _layerId: string): RenderGraphic { return graphic; }\n\n /** Create a graphic that can contain [[GraphicLayer]]s.\n * @internal\n */\n public createGraphicLayerContainer(graphic: RenderGraphic, _drawAsOverlay: boolean, _transparency: number, _elevation: number): RenderGraphic { return graphic; }\n\n /** Find a previously-created [[RenderTexture]] by its key.\n * @param _key The unique key of the texture within the context of the IModelConnection. Typically an element Id.\n * @param _imodel The IModelConnection with which the texture is associated.\n * @returns A previously-created texture matching the specified key, or undefined if no such texture exists.\n */\n public findTexture(_key: TextureCacheKey, _imodel: IModelConnection): RenderTexture | undefined {\n return undefined;\n }\n\n /** Find or create a [[RenderTexture]] from a persistent texture element.\n * @param id The ID of the texture element.\n * @param iModel The IModel containing the texture element.\n * @returns A Promise resolving to the created RenderTexture or to undefined if the texture could not be created.\n * @note If the texture is successfully created, it will be cached on the IModelConnection such that it can later be retrieved by its ID using [[RenderSystem.findTexture]].\n * @see [[RenderSystem.loadTextureImage]].\n */\n public async loadTexture(id: Id64String, iModel: IModelConnection): Promise<RenderTexture | undefined> {\n let texture = this.findTexture(id.toString(), iModel);\n if (undefined === texture) {\n const image = await this.loadTextureImage(id, iModel);\n if (undefined !== image) {\n // This will return a pre-existing RenderTexture if somebody else loaded it while we were awaiting the image.\n texture = this.createTexture({\n type: RenderTexture.Type.Normal,\n ownership: { key: id, iModel },\n image: {\n source: image.image,\n transparency: ImageSourceFormat.Png === image.format ? TextureTransparency.Mixed : TextureTransparency.Opaque,\n },\n });\n }\n }\n\n return texture;\n }\n\n /**\n * Load a texture image given the ID of a texture element.\n * @param id The ID of the texture element.\n * @param iModel The IModel containing the texture element.\n * @returns A Promise resolving to a TextureImage created from the texture element's data, or to undefined if the TextureImage could not be created.\n * @see [[RenderSystem.loadTexture]]\n * @internal\n */\n public async loadTextureImage(id: Id64String, iModel: IModelConnection): Promise<OldTextureImage | undefined> {\n const elemProps = await iModel.elements.getProps(id);\n if (1 !== elemProps.length)\n return undefined;\n\n const textureProps = elemProps[0] as TextureProps;\n if (undefined === textureProps.data || \"string\" !== typeof (textureProps.data) || undefined === textureProps.format || \"number\" !== typeof (textureProps.format))\n return undefined;\n\n const format = textureProps.format;\n if (!isValidImageSourceFormat(format))\n return undefined;\n\n const imageSource = new ImageSource(base64StringToUint8Array(textureProps.data), format);\n const image = await imageElementFromImageSource(imageSource);\n return { image, format };\n }\n\n /** Obtain a texture created from a gradient.\n * @param _symb The description of the gradient.\n * @param _imodel The IModelConnection with which the texture is associated.\n * @returns A texture created from the gradient image, or undefined if the texture could not be created.\n * @note If a texture matching the specified gradient is already cached on the iModel, it will be returned.\n * Otherwise, if an iModel is supplied, the newly-created texture will be cached on the iModel such that subsequent calls with an equivalent gradient and the\n * same iModel will return the cached texture instead of creating a new one.\n */\n public getGradientTexture(_symb: Gradient.Symb, _imodel?: IModelConnection): RenderTexture | undefined {\n return undefined;\n }\n\n /** Create a new texture from an [[ImageBuffer]].\n * @deprecated in 3.x. Use [[createTexture]].\n */\n // eslint-disable-next-line deprecation/deprecation\n public createTextureFromImageBuffer(image: ImageBuffer, iModel: IModelConnection, params: RenderTexture.Params): RenderTexture | undefined {\n const ownership = params.key ? { key: params.key, iModel } : (params.isOwned ? \"external\" : undefined);\n return this.createTexture({\n type: params.type,\n ownership,\n image: {\n source: image,\n transparency: ImageBufferFormat.Rgba === image.format ? TextureTransparency.Mixed : TextureTransparency.Opaque,\n },\n });\n }\n\n /** Create a new texture from an HTML image. Typically the image was extracted from a binary representation of a jpeg or png via [[imageElementFromImageSource]].\n * @deprecated in 3.x. Use [[createTexture]].\n */\n // eslint-disable-next-line deprecation/deprecation\n public createTextureFromImage(image: HTMLImageElement, hasAlpha: boolean, iModel: IModelConnection | undefined, params: RenderTexture.Params): RenderTexture | undefined {\n const ownership = params.key && iModel ? { key: params.key, iModel } : (params.isOwned ? \"external\" : undefined);\n return this.createTexture({\n type: params.type,\n ownership,\n image: {\n source: image,\n transparency: hasAlpha ? TextureTransparency.Mixed : TextureTransparency.Opaque,\n },\n });\n }\n\n /** Create a new texture from an ImageSource.\n * @deprecated in 3.x. Use RenderSystem.createTextureFromSource.\n */\n // eslint-disable-next-line deprecation/deprecation\n public async createTextureFromImageSource(source: ImageSource, iModel: IModelConnection | undefined, params: RenderTexture.Params): Promise<RenderTexture | undefined> {\n const ownership = iModel && params.key ? { iModel, key: params.key } : (params.isOwned ? \"external\" : undefined);\n return this.createTextureFromSource({\n type: params.type,\n source,\n ownership,\n transparency: source.format === ImageSourceFormat.Jpeg ? TextureTransparency.Opaque : TextureTransparency.Mixed,\n });\n }\n\n /** Create a texture from an ImageSource. */\n public async createTextureFromSource(args: CreateTextureFromSourceArgs): Promise<RenderTexture | undefined> {\n try {\n // JPEGs don't support transparency.\n const transparency = ImageSourceFormat.Jpeg === args.source.format ? TextureTransparency.Opaque : (args.transparency ?? TextureTransparency.Mixed);\n const image = await imageElementFromImageSource(args.source);\n if (!IModelApp.hasRenderSystem)\n return undefined;\n\n return this.createTexture({\n type: args.type,\n ownership: args.ownership,\n image: {\n source: image,\n transparency,\n },\n });\n } catch {\n return undefined;\n }\n }\n\n /** Create a new texture by its element ID. This texture will be retrieved asynchronously from the backend. A placeholder image will be associated with the texture until the requested image data loads. */\n // eslint-disable-next-line deprecation/deprecation\n public createTextureFromElement(_id: Id64String, _imodel: IModelConnection, _params: RenderTexture.Params, _format: ImageSourceFormat): RenderTexture | undefined {\n return undefined;\n }\n\n public createTexture(_args: CreateTextureArgs): RenderTexture | undefined {\n return undefined;\n }\n\n /** Create a new texture from a cube of HTML images.\n * @internal\n */\n // eslint-disable-next-line deprecation/deprecation\n public createTextureFromCubeImages(_posX: HTMLImageElement, _negX: HTMLImageElement, _posY: HTMLImageElement, _negY: HTMLImageElement, _posZ: HTMLImageElement, _negZ: HTMLImageElement, _imodel: IModelConnection, _params: RenderTexture.Params): RenderTexture | undefined {\n return undefined;\n }\n\n /** @internal */\n public onInitialized(): void { }\n\n /** @internal */\n public enableDiagnostics(_enable: RenderDiagnostics): void { }\n\n /** @internal */\n public get supportsLogZBuffer(): boolean { return false !== this.options.logarithmicDepthBuffer; }\n\n /** Obtain an object that can be used to control various debugging features. Returns `undefined` if debugging features are unavailable for this `RenderSystem`.\n * @beta\n */\n public get debugControl(): RenderSystemDebugControl | undefined { return undefined; }\n\n /** @internal */\n public collectStatistics(_stats: RenderMemory.Statistics): void { }\n\n /** A function that is invoked after the WebGL context is lost. Context loss is almost always caused by excessive consumption of GPU memory.\n * After context loss occurs, the RenderSystem will be unable to interact with WebGL by rendering viewports, creating graphics and textures, etc.\n * By default, this function invokes [[ToolAdmin.exceptionHandler]] with a brief message describing what occurred.\n * An application can override this behavior as follows:\n * ```ts\n * RenderSystem.contextLossHandler = (): Promise<any> => {\n * // your implementation here.\n * }\n * ```\n * @note Context loss is reported by the browser some short time *after* it has occurred. It is not possible to determine the specific cause.\n * @see [[TileAdmin.gpuMemoryLimit]] to limit the amount of GPU memory consumed thereby reducing the likelihood of context loss.\n * @see [[TileAdmin.totalTileContentBytes]] for the amount of GPU memory allocated for tile graphics.\n */\n public static async contextLossHandler(): Promise<any> {\n const msg = IModelApp.localization.getLocalizedString(\"iModelJs:Errors.WebGLContextLost\");\n return ToolAdmin.exceptionHandler(msg);\n }\n\n /** Convert a [[GraphicDescription]] produced by a [[GraphicDescriptionBuilder]] into a [[RenderGraphic]].\n * @beta\n */\n public async createGraphicFromDescription(args: CreateGraphicFromDescriptionArgs): Promise<RenderGraphic | undefined> {\n return createGraphicFromDescription(args.description, args.context, this);\n }\n\n /** Obtain the JSON representation of a [[WorkerGraphicDescriptionContext]] for the specified `iModel` that can be forwarded to a Worker for use with a [[GraphicDescriptionBuilder]].\n * @beta\n */\n public createWorkerGraphicDescriptionContextProps(iModel: IModelConnection): WorkerGraphicDescriptionContextProps {\n const props: WorkerGraphicDescriptionContextPropsImpl = {\n [_implementationProhibited]: undefined,\n transientIds: iModel.transientIds.fork(),\n constraints: {\n [_implementationProhibited]: undefined,\n maxTextureSize: this.maxTextureSize,\n },\n };\n\n return props;\n }\n\n /** Synchronize changes made to a [[WorkerGraphicDescriptionContext]] on a Worker with the state of the `iModel` from which it was created.\n * @beta\n */\n public async resolveGraphicDescriptionContext(props: GraphicDescriptionContextProps, iModel: IModelConnection): Promise<GraphicDescriptionContext> {\n const impl = props as GraphicDescriptionContextPropsImpl;\n if (typeof impl.transientIds !== \"object\" || !Array.isArray(impl.textures)) {\n throw new Error(\"Invalid GraphicDescriptionContextProps\");\n }\n\n if (impl.resolved) {\n throw new Error(\"resolveGraphicDescriptionContext can only be called once for a given GraphicDescriptionContextProps\");\n }\n\n const textures = new Map<string, RenderTexture>();\n\n await Promise.allSettled(impl.textures.map(async (tex, i) => {\n let texture: RenderTexture | undefined;\n if (tex.source.gradient) {\n texture = this.getGradientTexture(Gradient.Symb.fromJSON(tex.source.gradient));\n } else if (tex.source.imageSource) {\n texture = await this.createTextureFromSource({\n source: new ImageSource(tex.source.imageSource, tex.source.format),\n type: tex.type,\n transparency: tex.transparency,\n });\n } else if (tex.source.imageBuffer) {\n texture = this.createTexture({\n type: tex.type,\n image: {\n source: ImageBuffer.create(tex.source.imageBuffer, tex.source.format, tex.source.width),\n transparency: tex.transparency,\n },\n });\n } else if (tex.source.url) {\n const image = await tryImageElementFromUrl(tex.source.url);\n if (image) {\n texture = this.createTexture({\n type: tex.type,\n image: {\n source: image,\n transparency: tex.transparency,\n },\n });\n }\n }\n\n if (texture) {\n textures.set(i.toString(10), texture);\n }\n }));\n\n const remap = iModel.transientIds.merge(impl.transientIds);\n impl.resolved = true;\n return {\n [_implementationProhibited]: undefined,\n remapTransientLocalId: (source) => remap(source),\n [_textures]: textures,\n };\n }\n}\n\n/** A RenderSystem provides access to resources used by the internal WebGL-based rendering system.\n * An application rarely interacts directly with the RenderSystem; instead it interacts with types like [[Viewport]] which\n * coordinate with the RenderSystem on the application's behalf.\n * @see [[IModelApp.renderSystem]].\n * @public\n */\nexport namespace RenderSystem { // eslint-disable-line no-redeclare\n /** Options passed to [[IModelApp.supplyRenderSystem]] to configure the [[RenderSystem]] on startup. Many of these options serve as \"feature flags\" used to enable newer, experimental features. As such they typically begin life tagged as \"alpha\" or \"beta\" and are subsequently deprecated when the feature is declared stable.\n *\n * @public\n */\n export interface Options {\n /** WebGL extensions to be explicitly disabled, regardless of whether or not the WebGL implementation supports them.\n * This is chiefly useful for testing code that only executes in the absence of particular extensions, while running on a system that supports those extensions.\n *\n * Default value: undefined\n *\n * @public\n */\n disabledExtensions?: WebGLExtensionName[];\n\n /** If true, preserve the shader source code as internal strings, useful for debugging purposes.\n *\n * Default value: false\n *\n * @public\n */\n preserveShaderSourceCode?: boolean;\n\n /** If true, display solar shadows when enabled by [ViewFlags.shadows]($common).\n *\n * Default value: true\n *\n * @beta\n */\n displaySolarShadows?: boolean;\n\n /** If the view frustum is sufficiently large, and the EXT_frag_depth WebGL extension is available, use a logarithmic depth buffer to improve depth buffer resolution. Framerate may degrade to an extent while the logarithmic depth buffer is in use. If this option is disabled, or the extension is not supported, the near and far planes of very large view frustums will instead be moved to reduce the draw distance.\n *\n * Default value: true\n *\n * @public\n */\n logarithmicDepthBuffer?: boolean;\n\n /** If true, [[ScreenViewport]]s will respect the DPI of the display. See [[Viewport.devicePixelRatio]] and [[Viewport.cssPixelsToDevicePixels]].\n * @see [[dpiAwareLOD]] to control whether device pixel ratio affects the level of detail for tile graphics and decorations.\n * @see [[Viewport.cssPixelsToDevicePixels]] to convert CSS pixels to device pixels.\n * @see [[Viewport.devicePixelRatio]].\n *\n * Default value: true\n *\n * @public\n */\n dpiAwareViewports?: boolean;\n\n /** If defined, this will be used as the device pixel ratio instead of the system's actual device pixel ratio.\n * This can be helpful for situations like running in the iOS Simulator where forcing a lower resolution by setting a sub-1 device pixel ratio would increase performance.\n * @note If this setting is used to decrease the effective device pixel ratio, the view will appear pixelated.\n * @note This setting should only be used to increase performance in situations like the iOS Simulator for testing purposes only. It should not be used in a production situation.\n * @note This setting has no effect if [[dpiAwareViewports]] is `false`.\n *\n * Default value: undefined\n *\n * @public\n */\n devicePixelRatioOverride?: number;\n\n /** If true, [[ScreenViewport]]s will take into account the DPI of the display when computing the level of detail for tile graphics and decorations.\n * This can result in sharper-looking images on high-DPI devices like mobile phones, but may reduce performance on such devices.\n * @note This setting has no effect if [[dpiAwareViewports]] is `false`.\n * @see [[Viewport.devicePixelRatio]].\n *\n * Default value: false\n *\n * @public\n */\n dpiAwareLOD?: boolean;\n\n /** Previously, this property dictated whether to attempt to use a WebGL 2 rendering context before falling back to WebGL 1.\n * WebGL 1 is no longer supported, so this property is now ignored.\n * @public\n * @deprecated in 4.x. WebGL 1 is no longer supported.\n */\n useWebGL2?: boolean;\n\n /** If true, plan projection models will be rendered using [PlanProjectionSettings]($common) defined by the [[DisplayStyle3dState]].\n * Default value: true\n * @public\n */\n planProjections?: boolean;\n\n /** To help prevent delays when a user interacts with a [[Viewport]], the WebGL render system can precompile shader programs before any Viewport is opened.\n * This particularly helps applications when they do not open a Viewport immediately upon startup - for example, if the user is first expected to select an iModel and a view through the user interface.\n * Shader precompilation will cease once all shader programs have been compiled, or when a Viewport is opened (registered with the [[ViewManager]]).\n * @note Enabling this feature can slow UI interactions before a [[Viewport]] is opened.\n * To enable this feature, set this to `true`.\n *\n * Default value: false\n *\n * @beta\n */\n doIdleWork?: boolean;\n\n /** WebGL context attributes to explicitly set when initializing [[IModelApp.renderSystem]].\n * Exposed chiefly for OpenCities Planner.\n * @internal\n */\n contextAttributes?: WebGLContextAttributes;\n\n /** If true, will cause exception when a shader uniform is missing (usually optimized out), otherwise will only log these.\n * Default value: false\n * @public\n */\n errorOnMissingUniform?: boolean;\n\n /** If true, and the `WEBGL_debug_shaders` extension is available, accumulate debug information during shader compilation.\n * This information can be accessed via `RenderSystemDebugControl.debugShaderFiles`.\n * Default value: false\n * @internal\n */\n debugShaders?: boolean;\n\n /** Initial antialias setting.\n * If antialiasing is supported, a value greater than 1 enables it using that many samples, and a value less than or equal to 1 disables antialiasing.\n * Default value: 1\n * @public\n */\n antialiasSamples?: number;\n }\n}\n"]}
|
|
1
|
+
{"version":3,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,CAAC,mCAAyB,CAAC,EAAE,SAAS;YACtC,qBAAqB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;YAChD,CAAC,mBAAS,CAAC,EAAE,QAAQ;SACtB,CAAC;IACJ,CAAC;CACF;AAxlBD,oCAwlBC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Rendering\n */\n\nimport { base64StringToUint8Array, Id64String, IDisposable } from \"@itwin/core-bentley\";\nimport {\n ColorDef, ColorIndex, ElementAlignedBox3d, FeatureIndex, FeatureIndexType, FillFlags, Frustum, Gradient, ImageBuffer, ImageBufferFormat, ImageSource, ImageSourceFormat,\n isValidImageSourceFormat, QParams3d, QPoint3dList, RenderFeatureTable, RenderMaterial, RenderTexture, SkyGradient, TextureProps, TextureTransparency,\n} from \"@itwin/core-common\";\nimport { ClipVector, Matrix3d, Point2d, Point3d, Range2d, Range3d, Transform, Vector2d, XAndY } from \"@itwin/core-geometry\";\nimport { WebGLExtensionName } from \"@itwin/webgl-compatibility\";\nimport { IModelApp } from \"../IModelApp\";\nimport { IModelConnection } from \"../IModelConnection\";\nimport { createGraphicFromDescription, MapTileTreeReference, TileTreeReference } from \"../tile/internal\";\nimport { ToolAdmin } from \"../tools/ToolAdmin\";\nimport { SceneContext } from \"../ViewContext\";\nimport { Viewport } from \"../Viewport\";\nimport { imageElementFromImageSource, tryImageElementFromUrl } from \"../common/ImageUtil\";\nimport { MeshParams } from \"../common/internal/render/MeshParams\";\nimport { createPointStringParams, PointStringParams } from \"../common/internal/render/PointStringParams\";\nimport { createPolylineParams, PolylineParams } from \"../common/internal/render/PolylineParams\";\nimport { TextureCacheKey } from \"../common/render/TextureParams\";\nimport { ViewRect } from \"../common/ViewRect\";\nimport { GraphicBranch, GraphicBranchOptions } from \"./GraphicBranch\";\nimport { CustomGraphicBuilderOptions, GraphicBuilder, ViewportGraphicBuilderOptions } from \"./GraphicBuilder\";\nimport { InstancedGraphicParams, PatternGraphicParams } from \"../common/render/InstancedGraphicParams\";\nimport { Mesh } from \"../common/internal/render/MeshPrimitives\";\nimport { RealityMeshGraphicParams } from \"./RealityMeshGraphicParams\";\nimport { RealityMeshParams } from \"./RealityMeshParams\";\nimport { PointCloudArgs } from \"../common/internal/render/PointCloudPrimitive\";\nimport { RenderClipVolume } from \"./RenderClipVolume\";\nimport { RenderGraphic, RenderGraphicOwner } from \"./RenderGraphic\";\nimport { CreateRenderMaterialArgs } from \"./CreateRenderMaterialArgs\";\nimport { RenderMemory } from \"./RenderMemory\";\nimport { RenderPlanarClassifier } from \"./RenderPlanarClassifier\";\nimport { RenderTarget } from \"./RenderTarget\";\nimport { CreateTextureArgs, CreateTextureFromSourceArgs } from \"./CreateTextureArgs\";\nimport { ScreenSpaceEffectBuilder, ScreenSpaceEffectBuilderParams } from \"./ScreenSpaceEffectBuilder\";\nimport { createMeshParams } from \"../common/internal/render/VertexTableBuilder\";\nimport { GraphicType } from \"../common/render/GraphicType\";\nimport { BatchOptions } from \"../common/render/BatchOptions\";\nimport { GraphicDescription } from \"../common/render/GraphicDescriptionBuilder\";\nimport { GraphicDescriptionContextPropsImpl, WorkerGraphicDescriptionContextPropsImpl } from \"../common/internal/render/GraphicDescriptionContextImpl\";\nimport { _implementationProhibited, _textures } from \"../common/internal/Symbols\";\nimport { GraphicDescriptionContext, GraphicDescriptionContextProps, WorkerGraphicDescriptionContextProps } from \"../common/render/GraphicDescriptionContext\";\nimport { MeshArgs } from \"./MeshArgs\";\nimport { PolylineArgs } from \"./PolylineArgs\";\n\n/* eslint-disable no-restricted-syntax */\n// cSpell:ignore deserializing subcat uninstanced wiremesh qorigin trimesh\n\n/** An opaque representation of a texture draped on geometry within a [[Viewport]].\n * @internal\n */\nexport abstract class RenderTextureDrape implements IDisposable {\n public abstract dispose(): void;\n\n /** @internal */\n public abstract collectStatistics(stats: RenderMemory.Statistics): void;\n public abstract collectGraphics(context: SceneContext): void;\n}\n\n/** @internal */\nexport type TextureDrapeMap = Map<Id64String, RenderTextureDrape>;\n\n/** @internal */\nexport type MapLayerClassifiers = Map<number, RenderPlanarClassifier>;\n\n/** Describes a texture loaded from an HTMLImageElement\n * ###TODO Replace with TextureImage from RenderTexture.ts after we start returning transparency info from the backend.\n * @internal\n */\nexport interface OldTextureImage {\n /** The HTMLImageElement containing the texture's image data */\n image: HTMLImageElement;\n /** The format of the texture's image data */\n format: ImageSourceFormat;\n}\n\n/** @internal */\nexport enum RenderDiagnostics {\n /** No diagnostics enabled. */\n None = 0,\n /** Debugging output to browser console enabled. */\n DebugOutput = 1 << 1,\n /** Potentially expensive checks of WebGL state enabled. */\n WebGL = 1 << 2,\n /** All diagnostics enabled. */\n All = DebugOutput | WebGL,\n}\n\n/** @internal */\nexport interface GLTimerResult {\n /** Label from GLTimer.beginOperation */\n label: string;\n /** Time elapsed in nanoseconds, inclusive of child result times.\n * @note no-op queries seem to have 32ns of noise.\n */\n nanoseconds: number;\n /** Child results if GLTimer.beginOperation calls were nested */\n children?: GLTimerResult[];\n}\n\n/** @internal */\nexport type GLTimerResultCallback = (result: GLTimerResult) => void;\n\n/** Default implementation of RenderGraphicOwner. */\nclass GraphicOwner extends RenderGraphicOwner {\n public constructor(private readonly _graphic: RenderGraphic) { super(); }\n public get graphic(): RenderGraphic { return this._graphic; }\n}\n\n/** An interface optionally exposed by a RenderSystem that allows control of various debugging features.\n * @beta\n */\nexport interface RenderSystemDebugControl {\n /** Destroy this system's webgl context. Returns false if this behavior is not supported. */\n loseContext(): boolean;\n\n /** Overrides [[RenderSystem.dpiAwareLOD]].\n * @internal\n */\n dpiAwareLOD: boolean;\n\n /** Record GPU profiling information for each frame drawn. Check isGLTimerSupported before using.\n * @internal\n */\n resultsCallback?: GLTimerResultCallback;\n\n /** Returns true if the browser supports GPU profiling queries.\n * @internal\n */\n readonly isGLTimerSupported: boolean;\n\n /** Attempts to compile all shader programs and returns true if all were successful. May throw exceptions on errors.\n * This is useful for debugging shader compilation on specific platforms - especially those which use neither ANGLE nor SwiftShader (e.g., linux, mac, iOS)\n * because our unit tests which also compile all shaders run in software mode and therefore may not catch some \"errors\" (especially uniforms that have no effect on\n * program output).\n * @internal\n */\n compileAllShaders(): boolean;\n\n /** Obtain accumulated debug info collected during shader compilation. See `RenderSystem.Options.debugShaders`.\n * @internal\n */\n debugShaderFiles?: DebugShaderFile[];\n}\n\n/** @internal */\nexport abstract class RenderTerrainGeometry implements IDisposable, RenderMemory.Consumer {\n public abstract dispose(): void;\n public abstract get transform(): Transform | undefined;\n public abstract collectStatistics(stats: RenderMemory.Statistics): void;\n}\n\n/** @internal */\nexport class TerrainTexture {\n public constructor(\n public readonly texture: RenderTexture,\n public featureId: number,\n public readonly scale: Vector2d,\n public readonly translate: Vector2d,\n public readonly targetRectangle: Range2d,\n public readonly layerIndex: number,\n public transparency: number,\n public readonly clipRectangle?: Range2d,\n ) { }\n\n public cloneWithClip(clipRectangle: Range2d) {\n return new TerrainTexture (this.texture, this.featureId, this.scale, this.translate, this.targetRectangle, this.layerIndex, this.transparency, clipRectangle);\n }\n}\n/** @internal */\nexport class DebugShaderFile {\n public constructor(\n public readonly filename: string,\n public readonly src: string,\n public isVS: boolean,\n public isGL: boolean,\n public isUsed: boolean,\n ) { }\n}\n/** Transparency settings for planar grid display.\n * @alpha\n */\nexport class PlanarGridTransparency {\n /** Transparency for the grid plane. This should generally be fairly high to avoid obscuring other geometry */\n public readonly planeTransparency = .9;\n /** Transparency of the grid lines. This should be higher than the plane, but less than reference line transparency */\n public readonly lineTransparency = .75;\n /** Transparency of the reference lines. This should be less than plane or line transparency so that reference lines are more prominent */\n public readonly refTransparency = .5;\n}\n\n/** Settings for planar grid display.\n * @alpha\n */\nexport interface PlanarGridProps {\n /** The grid origin */\n origin: Point3d;\n /** The grid orientation. The grid X and Y direction are the first and second matrix rows */\n rMatrix: Matrix3d;\n /** The spacing between grid liens in the X and Y direction */\n spacing: XAndY;\n /** Grid lines per reference. If zero no reference lines are displayed. */\n gridsPerRef: number;\n /** Grid color. [[Use Viewport.getContrastToBackgroundColor]] to get best constrast color based on current background. */\n color: ColorDef;\n /** Transparency settings. If omitted then the [[PlanarGridTransparency]] defaults are used. */\n transparency?: PlanarGridTransparency;\n}\n\n/** An opaque representation of geometry allocated by a [[RenderSystem]] to be supplied to [[RenderSystem.createRenderGraphic]].\n * @internal\n */\nexport type RenderGeometry = IDisposable & RenderMemory.Consumer;\n\n/** An opaque representation of instructions for repeatedly drawing a [[RenderGeometry]] to pattern a planar region, to be supplied to [[RenderSystem.createRenderGraphic]].\n * @internal\n */\nexport type RenderAreaPattern = IDisposable & RenderMemory.Consumer;\n\n/** @internal */\nexport interface RenderSkyGradientParams {\n type: \"gradient\";\n gradient: SkyGradient;\n zOffset: number;\n}\n\n/** @internal */\nexport interface RenderSkySphereParams {\n type: \"sphere\";\n texture: RenderTexture;\n rotation: number;\n zOffset: number;\n}\n\n/** @internal */\nexport interface RenderSkyCubeParams {\n type: \"cube\";\n texture: RenderTexture;\n}\n\n/** @internal */\nexport type RenderSkyBoxParams = RenderSkyGradientParams | RenderSkySphereParams | RenderSkyCubeParams;\n\n/** Arguments supplied to [[RenderSystem.createGraphicFromDescription]].\n * @beta\n */\nexport interface CreateGraphicFromDescriptionArgs {\n /** A description of the [[RenderGraphic]] to create, obtained from a [[GraphicDescriptionBuilder]]. */\n description: GraphicDescription;\n /** The context that was used to create the graphic description, obtained from [[RenderSystem.resolveGraphicDescriptionContext]]. */\n context: GraphicDescriptionContext;\n}\n\n/** A RenderSystem provides access to resources used by the internal WebGL-based rendering system.\n * An application rarely interacts directly with the RenderSystem; instead it interacts with types like [[Viewport]] which\n * coordinate with the RenderSystem on the application's behalf.\n * @see [Display system overview]($docs/learning/display/index.md)\n * @see [[IModelApp.renderSystem]].\n * @public\n * @extensions\n */\nexport abstract class RenderSystem implements IDisposable {\n /** Options used to initialize the RenderSystem. These are primarily used for feature-gating.\n * This object is frozen and cannot be modified after the RenderSystem is created.\n * @internal\n */\n public readonly options: RenderSystem.Options;\n\n /** Antialias samples to use on all subsequently created render targets.\n * Default value: undefined (no antialiasing)\n * @beta\n */\n public antialiasSamples?: number;\n\n /** Initialize the RenderSystem with the specified options.\n * @note The RenderSystem takes ownership of the supplied Options and freezes it.\n * @internal\n */\n protected constructor(options?: RenderSystem.Options) {\n this.options = undefined !== options ? options : {};\n Object.freeze(this.options);\n if (undefined !== this.options.disabledExtensions)\n Object.freeze(this.options.disabledExtensions);\n }\n\n /** @internal */\n public abstract get isValid(): boolean;\n\n /** @internal */\n public abstract dispose(): void;\n\n /** The maximum permitted width or height of a texture supported by this render system. */\n public get maxTextureSize(): number { return 0; }\n\n /** @internal */\n public get supportsCreateImageBitmap(): boolean { return false; }\n\n /** @internal */\n public get dpiAwareLOD(): boolean { return true === this.options.dpiAwareLOD; }\n\n /** @internal */\n public get isMobile(): boolean { return false; }\n\n /** @internal */\n public abstract createTarget(canvas: HTMLCanvasElement): RenderTarget;\n /** @internal */\n public abstract createOffscreenTarget(rect: ViewRect): RenderTarget;\n\n /** Perform a small unit of idle work and return true if more idle work remains to be done. This function is invoked on each tick of the javascript event loop as long as no viewports are registered with the ViewManager, until it returns false to indicate all idle work has been completed.\n * @internal\n */\n public abstract doIdleWork(): boolean;\n\n /** Find a previously-created [RenderMaterial]($common) by its ID.\n * @param _key The unique ID of the material within the context of the IModelConnection. Typically an element ID.\n * @param _imodel The IModelConnection with which the material is associated.\n * @returns A previously-created material matching the specified ID, or undefined if no such material exists.\n */\n public findMaterial(_key: string, _imodel: IModelConnection): RenderMaterial | undefined { return undefined; }\n\n /** Create a [RenderMaterial]($common) from parameters\n * If the parameters include a non-empty key, and no previously-created material already exists with that key, the newly-created material will be cached on the IModelConnection such\n * that it can later be retrieved by the same key using [[RenderSystem.findMaterial]].\n * @param _params A description of the material's properties.\n * @param _imodel The IModelConnection associated with the material.\n * @returns the newly-created material, or undefined if the material could not be created or if a material with the same key as that specified in the params already exists.\n * @deprecated in 3.x. Use [[createRenderMaterial]].\n */\n // eslint-disable-next-line deprecation/deprecation\n public createMaterial(_params: RenderMaterial.Params, _imodel: IModelConnection): RenderMaterial | undefined { return undefined; }\n\n /** Create a [RenderMaterial]($common).\n * @see [[CreateRenderMaterialArgs]] for a description of the material parameters.\n */\n public createRenderMaterial(_args: CreateRenderMaterialArgs): RenderMaterial | undefined {\n return undefined;\n }\n\n /** Creates a [[GraphicBuilder]] for creating a [[RenderGraphic]].\n * @param placement The local-to-world transform in which the builder's geometry is to be defined.\n * @param type The type of builder to create.\n * @param viewport The viewport in which the resultant [[RenderGraphic]] will be rendered.\n * @param pickableId If the decoration is to be pickable, a unique identifier to associate with the resultant [[RenderGraphic]].\n * @returns A builder for creating a [[RenderGraphic]] of the specified type appropriate for rendering within the specified viewport.\n * @see [[IModelConnection.transientIds]] for obtaining an ID for a pickable decoration.\n * @see [[RenderContext.createGraphicBuilder]].\n * @see [[Decorator]]\n */\n public createGraphicBuilder(placement: Transform, type: GraphicType, viewport: Viewport, pickableId?: Id64String): GraphicBuilder {\n const pickable = undefined !== pickableId ? { id: pickableId } : undefined;\n return this.createGraphic({ type, viewport, placement, pickable });\n }\n\n /** Obtain a [[GraphicBuilder]] from which to produce a [[RenderGraphic]].\n * @param options Options describing how to create the builder.\n * @returns A builder that produces a [[RenderGraphic]].\n */\n public abstract createGraphic(options: CustomGraphicBuilderOptions | ViewportGraphicBuilderOptions): GraphicBuilder;\n\n /** Obtain an object capable of producing a custom screen-space effect to be applied to the image rendered by a [[Viewport]].\n * @returns undefined if screen-space effects are not supported by this RenderSystem.\n */\n public createScreenSpaceEffectBuilder(_params: ScreenSpaceEffectBuilderParams): ScreenSpaceEffectBuilder | undefined {\n return undefined;\n }\n\n /** Create a graphic from a low-level representation of a triangle mesh.\n * @param args A description of the mesh.\n * @param instances Repetitions of the mesh to be drawn.\n * @see [[createGraphic]] to obtain a [[GraphicBuilder]] that can assemble a mesh from higher-level primitives.\n */\n public createTriMesh(args: MeshArgs, instances?: InstancedGraphicParams): RenderGraphic | undefined;\n /** @internal */\n public createTriMesh(args: MeshArgs, instances?: InstancedGraphicParams | RenderAreaPattern | Point3d): RenderGraphic | undefined; // eslint-disable-line @typescript-eslint/unified-signatures\n /** @internal */\n public createTriMesh(args: MeshArgs, instances?: InstancedGraphicParams | RenderAreaPattern | Point3d): RenderGraphic | undefined {\n const params = createMeshParams(args, this.maxTextureSize, IModelApp.tileAdmin.edgeOptions.type !== \"non-indexed\");\n return this.createMesh(params, instances);\n }\n\n /** @internal */\n public createMeshGraphics(mesh: Mesh, instances?: InstancedGraphicParams | Point3d): RenderGraphic | undefined {\n const meshArgs = mesh.toMeshArgs();\n if (meshArgs) {\n return this.createTriMesh(meshArgs, instances);\n }\n\n const polylineArgs = mesh.toPolylineArgs();\n return polylineArgs ? this.createIndexedPolylines(polylineArgs, instances) : undefined;\n }\n\n /** Create a graphic from a low-level representation of a set of line strings.\n * @param args A description of the line strings.\n * @param instances Repetitions of the line strings to be drawn.\n */\n public createIndexedPolylines(args: PolylineArgs, instances?: InstancedGraphicParams): RenderGraphic | undefined;\n /** @internal */\n public createIndexedPolylines(args: PolylineArgs, instances?: InstancedGraphicParams | RenderAreaPattern | Point3d): RenderGraphic | undefined; // eslint-disable-line @typescript-eslint/unified-signatures\n /** @internal */\n public createIndexedPolylines(args: PolylineArgs, instances?: InstancedGraphicParams | RenderAreaPattern | Point3d): RenderGraphic | undefined {\n if (args.flags.isDisjoint) {\n const pointStringParams = createPointStringParams(args, IModelApp.renderSystem.maxTextureSize);\n return undefined !== pointStringParams ? this.createPointString(pointStringParams, instances) : undefined;\n } else {\n const polylineParams = createPolylineParams(args, this.maxTextureSize);\n return undefined !== polylineParams ? this.createPolyline(polylineParams, instances) : undefined;\n }\n }\n\n /** @internal */\n public createMeshGeometry(_params: MeshParams, _viewIndependentOrigin?: Point3d): RenderGeometry | undefined { return undefined; }\n /** @internal */\n public createPolylineGeometry(_params: PolylineParams, _viewIndependentOrigin?: Point3d): RenderGeometry | undefined { return undefined; }\n /** @internal */\n public createPointStringGeometry(_params: PointStringParams, _viewIndependentOrigin?: Point3d): RenderGeometry | undefined { return undefined; }\n\n /** @internal */\n public createAreaPattern(_params: PatternGraphicParams): RenderAreaPattern | undefined { return undefined; }\n\n /** Create a RenderGraphic from a RenderGeometry produced by this RenderSystem.\n * @internal\n */\n public abstract createRenderGraphic(_geometry: RenderGeometry, instances?: InstancedGraphicParams | RenderAreaPattern): RenderGraphic | undefined;\n\n private createGraphicFromGeometry(\n createGeometry: (viewIndependentOrigin?: Point3d) => RenderGeometry | undefined,\n instancesOrOrigin?: InstancedGraphicParams | RenderAreaPattern | Point3d): RenderGraphic | undefined {\n let viOrigin;\n let instances;\n if (instancesOrOrigin instanceof Point3d)\n viOrigin = instancesOrOrigin;\n else\n instances = instancesOrOrigin;\n\n const geom = createGeometry(viOrigin);\n return geom ? this.createRenderGraphic(geom, instances) : undefined;\n }\n\n /** @internal */\n public createMesh(params: MeshParams, instances?: InstancedGraphicParams | RenderAreaPattern | Point3d): RenderGraphic | undefined {\n return this.createGraphicFromGeometry((viOrigin) => this.createMeshGeometry(params, viOrigin), instances);\n }\n\n /** @internal */\n public createPolyline(params: PolylineParams, instances?: InstancedGraphicParams | RenderAreaPattern | Point3d): RenderGraphic | undefined {\n return this.createGraphicFromGeometry((origin) => this.createPolylineGeometry(params, origin), instances);\n }\n\n /** @internal */\n public createPointString(params: PointStringParams, instances?: InstancedGraphicParams | RenderAreaPattern | Point3d): RenderGraphic | undefined {\n return this.createGraphicFromGeometry((origin) => this.createPointStringGeometry(params, origin), instances);\n }\n\n /** @internal */\n public createTerrainMesh(_params: RealityMeshParams, _transform?: Transform, _disableTextureDisposal = false): RenderTerrainGeometry | undefined {\n return undefined;\n }\n\n /** @internal */\n public createRealityMeshGraphic(_params: RealityMeshGraphicParams, _disableTextureDisposal = false): RenderGraphic | undefined { return undefined; }\n /** @internal */\n public createRealityMesh(_realityMesh: RealityMeshParams, _disableTextureDisposal = false): RenderGraphic | undefined { return undefined; }\n /** @internal */\n public get maxRealityImageryLayers() { return 0; }\n /** @internal */\n public createPointCloud(_args: PointCloudArgs, _imodel: IModelConnection): RenderGraphic | undefined { return undefined; }\n\n /** Create a clip volume to clip geometry.\n * @note The clip volume takes ownership of the ClipVector, which must not be subsequently mutated.\n * @param _clipVector Defines how the volume clips geometry.\n * @returns A clip volume, or undefined if, e.g., the clip vector does not clip anything.\n */\n public createClipVolume(_clipVector: ClipVector): RenderClipVolume | undefined { return undefined; }\n\n /** @internal */\n public createPlanarGrid(_frustum: Frustum, _grid: PlanarGridProps): RenderGraphic | undefined { return undefined; }\n /** @internal */\n public createBackgroundMapDrape(_drapedTree: TileTreeReference, _mapTree: MapTileTreeReference): RenderTextureDrape | undefined { return undefined; }\n /** @internal */\n public createTile(tileTexture: RenderTexture, corners: Point3d[], featureIndex?: number): RenderGraphic | undefined {\n // corners\n // [0] [1]\n // [2] [3]\n // Quantize the points according to their range\n const points = new QPoint3dList(QParams3d.fromRange(Range3d.create(...corners)));\n for (let i = 0; i < 4; i++)\n points.add(corners[i]);\n\n // Now remove the translation from the quantized points and put it into a transform instead.\n // This prevents graphical artifacts when quantization origin is large relative to quantization scale.\n // ###TODO: Would be better not to create a branch for every tile.\n const qorigin = points.params.origin;\n const transform = Transform.createTranslationXYZ(qorigin.x, qorigin.y, qorigin.z);\n qorigin.setZero();\n\n const features = new FeatureIndex();\n if (undefined !== featureIndex) {\n features.featureID = featureIndex;\n features.type = FeatureIndexType.Uniform;\n }\n\n const rasterTile: MeshArgs = {\n points,\n vertIndices: [0, 1, 2, 2, 1, 3],\n isPlanar: true,\n features,\n colors: new ColorIndex(),\n fillFlags: FillFlags.None,\n textureMapping: {\n uvParams: [new Point2d(0, 0), new Point2d(1, 0), new Point2d(0, 1), new Point2d(1, 1)],\n texture: tileTexture,\n },\n };\n\n const trimesh = this.createTriMesh(rasterTile);\n if (undefined === trimesh)\n return undefined;\n\n const branch = new GraphicBranch(true);\n branch.add(trimesh);\n return this.createBranch(branch, transform);\n }\n\n /** Create a Graphic for a [[SkyBox]] which encompasses the entire scene, rotating with the camera.\n * @internal\n */\n public createSkyBox(_params: RenderSkyBoxParams): RenderGraphic | undefined { return undefined; }\n\n /** Create a RenderGraphic consisting of a list of Graphics to be drawn together. */\n public abstract createGraphicList(primitives: RenderGraphic[]): RenderGraphic;\n\n /** Create a RenderGraphic consisting of a list of Graphics, with optional transform and symbology overrides applied to the list */\n public createBranch(branch: GraphicBranch, transform: Transform, options?: GraphicBranchOptions): RenderGraphic {\n return this.createGraphicBranch(branch, transform, options);\n }\n\n /** Create a graphic from a [[GraphicBranch]]. */\n public abstract createGraphicBranch(branch: GraphicBranch, transform: Transform, options?: GraphicBranchOptions): RenderGraphic;\n\n /** Create a node in the scene graph corresponding to a transform node in the scene's schedule script.\n * Nodes under this branch will only be drawn if they belong to the specified transform node.\n * This allows the graphics in a single Tile to be efficiently drawn with different transforms applied by different nodes.\n * The node Id is either the Id of a single transform node in the script, of 0xffffffff to indicate all nodes that have no transform applied to them.\n * @internal\n */\n public createAnimationTransformNode(graphic: RenderGraphic, _nodeId: number): RenderGraphic {\n return graphic;\n }\n\n /** Create a \"batch\" of graphics containing individual [Feature]($common)s.\n * @param graphic The graphic representing the contents of the batch.\n * @param features The features contained within the batch.\n * @param range A volume fully encompassing the batch's geometry.\n * @param options Options customizing the behavior of the batch.\n */\n public abstract createBatch(graphic: RenderGraphic, features: RenderFeatureTable, range: ElementAlignedBox3d, options?: BatchOptions): RenderGraphic;\n\n /** Return a Promise which when resolved indicates that all pending external textures have finished loading from the backend. */\n public async waitForAllExternalTextures(): Promise<void> { return Promise.resolve(); }\n /** @internal */\n public get hasExternalTextureRequests(): boolean { return false; }\n\n /** Create a graphic that assumes ownership of another graphic.\n * @param ownedGraphic The RenderGraphic to be owned.\n * @returns The owning graphic that exposes a `disposeGraphic` method for explicitly disposing of the owned graphic.\n * @see [[RenderGraphicOwner]] for details regarding ownership semantics.\n * @public\n */\n public createGraphicOwner(ownedGraphic: RenderGraphic): RenderGraphicOwner { return new GraphicOwner(ownedGraphic); }\n\n /** Create a \"layer\" containing the graphics belonging to it. A layer has a unique identifier and all of its geometry lies in an XY plane.\n * Different layers can be drawn coincident with one another; their draw order can be controlled by a per-layer priority value so that one layer draws\n * on top of another. Layers cannot nest inside other layers. Multiple GraphicLayers can exist with the same ID; they are treated as belonging to the same layer.\n * A GraphicLayer must be contained (perhaps indirectly) inside a GraphicLayerContainer.\n * @see [[createGraphicLayerContainer]]\n * @internal\n */\n public createGraphicLayer(graphic: RenderGraphic, _layerId: string): RenderGraphic { return graphic; }\n\n /** Create a graphic that can contain [[GraphicLayer]]s.\n * @internal\n */\n public createGraphicLayerContainer(graphic: RenderGraphic, _drawAsOverlay: boolean, _transparency: number, _elevation: number): RenderGraphic { return graphic; }\n\n /** Find a previously-created [[RenderTexture]] by its key.\n * @param _key The unique key of the texture within the context of the IModelConnection. Typically an element Id.\n * @param _imodel The IModelConnection with which the texture is associated.\n * @returns A previously-created texture matching the specified key, or undefined if no such texture exists.\n */\n public findTexture(_key: TextureCacheKey, _imodel: IModelConnection): RenderTexture | undefined {\n return undefined;\n }\n\n /** Find or create a [[RenderTexture]] from a persistent texture element.\n * @param id The ID of the texture element.\n * @param iModel The IModel containing the texture element.\n * @returns A Promise resolving to the created RenderTexture or to undefined if the texture could not be created.\n * @note If the texture is successfully created, it will be cached on the IModelConnection such that it can later be retrieved by its ID using [[RenderSystem.findTexture]].\n * @see [[RenderSystem.loadTextureImage]].\n */\n public async loadTexture(id: Id64String, iModel: IModelConnection): Promise<RenderTexture | undefined> {\n let texture = this.findTexture(id.toString(), iModel);\n if (undefined === texture) {\n const image = await this.loadTextureImage(id, iModel);\n if (undefined !== image) {\n // This will return a pre-existing RenderTexture if somebody else loaded it while we were awaiting the image.\n texture = this.createTexture({\n type: RenderTexture.Type.Normal,\n ownership: { key: id, iModel },\n image: {\n source: image.image,\n transparency: ImageSourceFormat.Png === image.format ? TextureTransparency.Mixed : TextureTransparency.Opaque,\n },\n });\n }\n }\n\n return texture;\n }\n\n /**\n * Load a texture image given the ID of a texture element.\n * @param id The ID of the texture element.\n * @param iModel The IModel containing the texture element.\n * @returns A Promise resolving to a TextureImage created from the texture element's data, or to undefined if the TextureImage could not be created.\n * @see [[RenderSystem.loadTexture]]\n * @internal\n */\n public async loadTextureImage(id: Id64String, iModel: IModelConnection): Promise<OldTextureImage | undefined> {\n const elemProps = await iModel.elements.getProps(id);\n if (1 !== elemProps.length)\n return undefined;\n\n const textureProps = elemProps[0] as TextureProps;\n if (undefined === textureProps.data || \"string\" !== typeof (textureProps.data) || undefined === textureProps.format || \"number\" !== typeof (textureProps.format))\n return undefined;\n\n const format = textureProps.format;\n if (!isValidImageSourceFormat(format))\n return undefined;\n\n const imageSource = new ImageSource(base64StringToUint8Array(textureProps.data), format);\n const image = await imageElementFromImageSource(imageSource);\n return { image, format };\n }\n\n /** Obtain a texture created from a gradient.\n * @param _symb The description of the gradient.\n * @param _imodel The IModelConnection with which the texture is associated.\n * @returns A texture created from the gradient image, or undefined if the texture could not be created.\n * @note If a texture matching the specified gradient is already cached on the iModel, it will be returned.\n * Otherwise, if an iModel is supplied, the newly-created texture will be cached on the iModel such that subsequent calls with an equivalent gradient and the\n * same iModel will return the cached texture instead of creating a new one.\n */\n public getGradientTexture(_symb: Gradient.Symb, _imodel?: IModelConnection): RenderTexture | undefined {\n return undefined;\n }\n\n /** Create a new texture from an [[ImageBuffer]].\n * @deprecated in 3.x. Use [[createTexture]].\n */\n // eslint-disable-next-line deprecation/deprecation\n public createTextureFromImageBuffer(image: ImageBuffer, iModel: IModelConnection, params: RenderTexture.Params): RenderTexture | undefined {\n const ownership = params.key ? { key: params.key, iModel } : (params.isOwned ? \"external\" : undefined);\n return this.createTexture({\n type: params.type,\n ownership,\n image: {\n source: image,\n transparency: ImageBufferFormat.Rgba === image.format ? TextureTransparency.Mixed : TextureTransparency.Opaque,\n },\n });\n }\n\n /** Create a new texture from an HTML image. Typically the image was extracted from a binary representation of a jpeg or png via [[imageElementFromImageSource]].\n * @deprecated in 3.x. Use [[createTexture]].\n */\n // eslint-disable-next-line deprecation/deprecation\n public createTextureFromImage(image: HTMLImageElement, hasAlpha: boolean, iModel: IModelConnection | undefined, params: RenderTexture.Params): RenderTexture | undefined {\n const ownership = params.key && iModel ? { key: params.key, iModel } : (params.isOwned ? \"external\" : undefined);\n return this.createTexture({\n type: params.type,\n ownership,\n image: {\n source: image,\n transparency: hasAlpha ? TextureTransparency.Mixed : TextureTransparency.Opaque,\n },\n });\n }\n\n /** Create a new texture from an ImageSource.\n * @deprecated in 3.x. Use RenderSystem.createTextureFromSource.\n */\n // eslint-disable-next-line deprecation/deprecation\n public async createTextureFromImageSource(source: ImageSource, iModel: IModelConnection | undefined, params: RenderTexture.Params): Promise<RenderTexture | undefined> {\n const ownership = iModel && params.key ? { iModel, key: params.key } : (params.isOwned ? \"external\" : undefined);\n return this.createTextureFromSource({\n type: params.type,\n source,\n ownership,\n transparency: source.format === ImageSourceFormat.Jpeg ? TextureTransparency.Opaque : TextureTransparency.Mixed,\n });\n }\n\n /** Create a texture from an ImageSource. */\n public async createTextureFromSource(args: CreateTextureFromSourceArgs): Promise<RenderTexture | undefined> {\n try {\n // JPEGs don't support transparency.\n const transparency = ImageSourceFormat.Jpeg === args.source.format ? TextureTransparency.Opaque : (args.transparency ?? TextureTransparency.Mixed);\n const image = await imageElementFromImageSource(args.source);\n if (!IModelApp.hasRenderSystem)\n return undefined;\n\n return this.createTexture({\n type: args.type,\n ownership: args.ownership,\n image: {\n source: image,\n transparency,\n },\n });\n } catch {\n return undefined;\n }\n }\n\n /** Create a new texture by its element ID. This texture will be retrieved asynchronously from the backend. A placeholder image will be associated with the texture until the requested image data loads. */\n // eslint-disable-next-line deprecation/deprecation\n public createTextureFromElement(_id: Id64String, _imodel: IModelConnection, _params: RenderTexture.Params, _format: ImageSourceFormat): RenderTexture | undefined {\n return undefined;\n }\n\n public createTexture(_args: CreateTextureArgs): RenderTexture | undefined {\n return undefined;\n }\n\n /** Create a new texture from a cube of HTML images.\n * @internal\n */\n // eslint-disable-next-line deprecation/deprecation\n public createTextureFromCubeImages(_posX: HTMLImageElement, _negX: HTMLImageElement, _posY: HTMLImageElement, _negY: HTMLImageElement, _posZ: HTMLImageElement, _negZ: HTMLImageElement, _imodel: IModelConnection, _params: RenderTexture.Params): RenderTexture | undefined {\n return undefined;\n }\n\n /** @internal */\n public onInitialized(): void { }\n\n /** @internal */\n public enableDiagnostics(_enable: RenderDiagnostics): void { }\n\n /** @internal */\n public get supportsLogZBuffer(): boolean { return false !== this.options.logarithmicDepthBuffer; }\n\n /** Obtain an object that can be used to control various debugging features. Returns `undefined` if debugging features are unavailable for this `RenderSystem`.\n * @beta\n */\n public get debugControl(): RenderSystemDebugControl | undefined { return undefined; }\n\n /** @internal */\n public collectStatistics(_stats: RenderMemory.Statistics): void { }\n\n /** A function that is invoked after the WebGL context is lost. Context loss is almost always caused by excessive consumption of GPU memory.\n * After context loss occurs, the RenderSystem will be unable to interact with WebGL by rendering viewports, creating graphics and textures, etc.\n * By default, this function invokes [[ToolAdmin.exceptionHandler]] with a brief message describing what occurred.\n * An application can override this behavior as follows:\n * ```ts\n * RenderSystem.contextLossHandler = (): Promise<any> => {\n * // your implementation here.\n * }\n * ```\n * @note Context loss is reported by the browser some short time *after* it has occurred. It is not possible to determine the specific cause.\n * @see [[TileAdmin.gpuMemoryLimit]] to limit the amount of GPU memory consumed thereby reducing the likelihood of context loss.\n * @see [[TileAdmin.totalTileContentBytes]] for the amount of GPU memory allocated for tile graphics.\n */\n public static async contextLossHandler(): Promise<any> {\n const msg = IModelApp.localization.getLocalizedString(\"iModelJs:Errors.WebGLContextLost\");\n return ToolAdmin.exceptionHandler(msg);\n }\n\n /** Convert a [[GraphicDescription]] produced by a [[GraphicDescriptionBuilder]] into a [[RenderGraphic]].\n * @beta\n */\n public async createGraphicFromDescription(args: CreateGraphicFromDescriptionArgs): Promise<RenderGraphic | undefined> {\n return createGraphicFromDescription(args.description, args.context, this);\n }\n\n /** Obtain the JSON representation of a [[WorkerGraphicDescriptionContext]] for the specified `iModel` that can be forwarded to a Worker for use with a [[GraphicDescriptionBuilder]].\n * @beta\n */\n public createWorkerGraphicDescriptionContextProps(iModel: IModelConnection): WorkerGraphicDescriptionContextProps {\n const props: WorkerGraphicDescriptionContextPropsImpl = {\n [_implementationProhibited]: undefined,\n transientIds: iModel.transientIds.fork(),\n constraints: {\n [_implementationProhibited]: undefined,\n maxTextureSize: this.maxTextureSize,\n },\n };\n\n return props;\n }\n\n /** Synchronize changes made to a [[WorkerGraphicDescriptionContext]] on a Worker with the state of the `iModel` from which it was created.\n * @beta\n */\n public async resolveGraphicDescriptionContext(props: GraphicDescriptionContextProps, iModel: IModelConnection): Promise<GraphicDescriptionContext> {\n const impl = props as GraphicDescriptionContextPropsImpl;\n if (typeof impl.transientIds !== \"object\" || !Array.isArray(impl.textures)) {\n throw new Error(\"Invalid GraphicDescriptionContextProps\");\n }\n\n if (impl.resolved) {\n throw new Error(\"resolveGraphicDescriptionContext can only be called once for a given GraphicDescriptionContextProps\");\n }\n\n const textures = new Map<string, RenderTexture>();\n\n await Promise.allSettled(impl.textures.map(async (tex, i) => {\n let texture: RenderTexture | undefined;\n if (tex.source.gradient) {\n texture = this.getGradientTexture(Gradient.Symb.fromJSON(tex.source.gradient));\n } else if (tex.source.imageSource) {\n texture = await this.createTextureFromSource({\n source: new ImageSource(tex.source.imageSource, tex.source.format),\n type: tex.type,\n transparency: tex.transparency,\n });\n } else if (tex.source.imageBuffer) {\n texture = this.createTexture({\n type: tex.type,\n image: {\n source: ImageBuffer.create(tex.source.imageBuffer, tex.source.format, tex.source.width),\n transparency: tex.transparency,\n },\n });\n } else if (tex.source.url) {\n const image = await tryImageElementFromUrl(tex.source.url);\n if (image) {\n texture = this.createTexture({\n type: tex.type,\n image: {\n source: image,\n transparency: tex.transparency,\n },\n });\n }\n }\n\n if (texture) {\n textures.set(i.toString(10), texture);\n }\n }));\n\n const remap = iModel.transientIds.merge(impl.transientIds);\n impl.resolved = true;\n return {\n [_implementationProhibited]: undefined,\n remapTransientLocalId: (source) => remap(source),\n [_textures]: textures,\n };\n }\n}\n\n/** A RenderSystem provides access to resources used by the internal WebGL-based rendering system.\n * An application rarely interacts directly with the RenderSystem; instead it interacts with types like [[Viewport]] which\n * coordinate with the RenderSystem on the application's behalf.\n * @see [[IModelApp.renderSystem]].\n * @public\n */\nexport namespace RenderSystem { // eslint-disable-line no-redeclare\n /** Options passed to [[IModelApp.supplyRenderSystem]] to configure the [[RenderSystem]] on startup. Many of these options serve as \"feature flags\" used to enable newer, experimental features. As such they typically begin life tagged as \"alpha\" or \"beta\" and are subsequently deprecated when the feature is declared stable.\n *\n * @public\n */\n export interface Options {\n /** WebGL extensions to be explicitly disabled, regardless of whether or not the WebGL implementation supports them.\n * This is chiefly useful for testing code that only executes in the absence of particular extensions, while running on a system that supports those extensions.\n *\n * Default value: undefined\n *\n * @public\n */\n disabledExtensions?: WebGLExtensionName[];\n\n /** If true, preserve the shader source code as internal strings, useful for debugging purposes.\n *\n * Default value: false\n *\n * @public\n */\n preserveShaderSourceCode?: boolean;\n\n /** If true, display solar shadows when enabled by [ViewFlags.shadows]($common).\n *\n * Default value: true\n *\n * @beta\n */\n displaySolarShadows?: boolean;\n\n /** If the view frustum is sufficiently large, and the EXT_frag_depth WebGL extension is available, use a logarithmic depth buffer to improve depth buffer resolution. Framerate may degrade to an extent while the logarithmic depth buffer is in use. If this option is disabled, or the extension is not supported, the near and far planes of very large view frustums will instead be moved to reduce the draw distance.\n *\n * Default value: true\n *\n * @public\n */\n logarithmicDepthBuffer?: boolean;\n\n /** If true, [[ScreenViewport]]s will respect the DPI of the display. See [[Viewport.devicePixelRatio]] and [[Viewport.cssPixelsToDevicePixels]].\n * @see [[dpiAwareLOD]] to control whether device pixel ratio affects the level of detail for tile graphics and decorations.\n * @see [[Viewport.cssPixelsToDevicePixels]] to convert CSS pixels to device pixels.\n * @see [[Viewport.devicePixelRatio]].\n *\n * Default value: true\n *\n * @public\n */\n dpiAwareViewports?: boolean;\n\n /** If defined, this will be used as the device pixel ratio instead of the system's actual device pixel ratio.\n * This can be helpful for situations like running in the iOS Simulator where forcing a lower resolution by setting a sub-1 device pixel ratio would increase performance.\n * @note If this setting is used to decrease the effective device pixel ratio, the view will appear pixelated.\n * @note This setting should only be used to increase performance in situations like the iOS Simulator for testing purposes only. It should not be used in a production situation.\n * @note This setting has no effect if [[dpiAwareViewports]] is `false`.\n *\n * Default value: undefined\n *\n * @public\n */\n devicePixelRatioOverride?: number;\n\n /** If true, [[ScreenViewport]]s will take into account the DPI of the display when computing the level of detail for tile graphics and decorations.\n * This can result in sharper-looking images on high-DPI devices like mobile phones, but may reduce performance on such devices.\n * @note This setting has no effect if [[dpiAwareViewports]] is `false`.\n * @see [[Viewport.devicePixelRatio]].\n *\n * Default value: false\n *\n * @public\n */\n dpiAwareLOD?: boolean;\n\n /** Previously, this property dictated whether to attempt to use a WebGL 2 rendering context before falling back to WebGL 1.\n * WebGL 1 is no longer supported, so this property is now ignored.\n * @public\n * @deprecated in 4.x. WebGL 1 is no longer supported.\n */\n useWebGL2?: boolean;\n\n /** If true, plan projection models will be rendered using [PlanProjectionSettings]($common) defined by the [[DisplayStyle3dState]].\n * Default value: true\n * @public\n */\n planProjections?: boolean;\n\n /** To help prevent delays when a user interacts with a [[Viewport]], the WebGL render system can precompile shader programs before any Viewport is opened.\n * This particularly helps applications when they do not open a Viewport immediately upon startup - for example, if the user is first expected to select an iModel and a view through the user interface.\n * Shader precompilation will cease once all shader programs have been compiled, or when a Viewport is opened (registered with the [[ViewManager]]).\n * @note Enabling this feature can slow UI interactions before a [[Viewport]] is opened.\n * To enable this feature, set this to `true`.\n *\n * Default value: false\n *\n * @beta\n */\n doIdleWork?: boolean;\n\n /** WebGL context attributes to explicitly set when initializing [[IModelApp.renderSystem]].\n * Exposed chiefly for OpenCities Planner.\n * @internal\n */\n contextAttributes?: WebGLContextAttributes;\n\n /** If true, will cause exception when a shader uniform is missing (usually optimized out), otherwise will only log these.\n * Default value: false\n * @public\n */\n errorOnMissingUniform?: boolean;\n\n /** If true, and the `WEBGL_debug_shaders` extension is available, accumulate debug information during shader compilation.\n * This information can be accessed via `RenderSystemDebugControl.debugShaderFiles`.\n * Default value: false\n * @internal\n */\n debugShaders?: boolean;\n\n /** Initial antialias setting.\n * If antialiasing is supported, a value greater than 1 enables it using that many samples, and a value less than or equal to 1 disables antialiasing.\n * Default value: 1\n * @public\n */\n antialiasSamples?: number;\n }\n}\n"]}
|
|
@@ -40,6 +40,10 @@ export interface BranchStateOptions {
|
|
|
40
40
|
forceViewCoords?: boolean;
|
|
41
41
|
readonly viewAttachmentId?: Id64String;
|
|
42
42
|
groupNodeId?: number;
|
|
43
|
+
/** If true, the view's [DisplayStyleSettings.clipStyle]($common) will be disabled for this branch.
|
|
44
|
+
* No [ClipStyle.insideColor]($common), [ClipStyle.outsideColor]($common), or [ClipStyle.intersectionStyle]($common) will be applied.
|
|
45
|
+
*/
|
|
46
|
+
disableClipStyle?: true;
|
|
43
47
|
}
|
|
44
48
|
/**
|
|
45
49
|
* Represents a branch node in the scene graph, with associated view flags and transform to be applied to
|
|
@@ -67,6 +71,7 @@ export declare class BranchState {
|
|
|
67
71
|
get realityModelDisplaySettings(): RealityModelDisplaySettings | undefined;
|
|
68
72
|
get viewAttachmentId(): string | undefined;
|
|
69
73
|
get groupNodeId(): number | undefined;
|
|
74
|
+
get disableClipStyle(): true | undefined;
|
|
70
75
|
get symbologyOverrides(): FeatureSymbology.Overrides;
|
|
71
76
|
set symbologyOverrides(ovrs: FeatureSymbology.Overrides);
|
|
72
77
|
changeRenderPlan(viewFlags: ViewFlags, is3d: boolean, hline: HiddenLine.Settings | undefined): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"B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,qBAAyC;IAEpE,IAAW,kBAAkB,IAGO,gBAAgB,CAAC,SAAS,CAD7D;IACD,IAAW,kBAAkB,CAAC,IAAI,EAAE,gBAAgB,CAAC,SAAS,EAE7D;IAEM,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC,QAAQ,GAAG,SAAS,GAAG,IAAI;IAM1G,iJAAiJ;WACnI,UAAU,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,WAAW;IAuBjE,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS;WAO7P,oBAAoB,IAAI,WAAW;IAa1C,cAAc,IAAI,WAAW;gBAIjB,IAAI,EAAE,kBAAkB;CAO5C"}
|
|
@@ -34,6 +34,7 @@ class BranchState {
|
|
|
34
34
|
get realityModelDisplaySettings() { return this._opts.realityModelDisplaySettings; }
|
|
35
35
|
get viewAttachmentId() { return this._opts.viewAttachmentId; }
|
|
36
36
|
get groupNodeId() { return this._opts.groupNodeId; }
|
|
37
|
+
get disableClipStyle() { return this._opts.disableClipStyle; }
|
|
37
38
|
get symbologyOverrides() {
|
|
38
39
|
return this._opts.symbologyOverrides;
|
|
39
40
|
}
|
|
@@ -65,6 +66,7 @@ class BranchState {
|
|
|
65
66
|
realityModelDisplaySettings: branch.branch.realityModelDisplaySettings ?? prev.realityModelDisplaySettings,
|
|
66
67
|
viewAttachmentId: branch.viewAttachmentId ?? prev.viewAttachmentId,
|
|
67
68
|
groupNodeId: branch.branch.groupNodeId ?? prev.groupNodeId,
|
|
69
|
+
disableClipStyle: branch.disableClipStyle ?? prev.disableClipStyle,
|
|
68
70
|
});
|
|
69
71
|
}
|
|
70
72
|
getFeatureAppearance(overrides, elemLo, elemHi, subcatLo, subcatHi, geomClass, modelLo, modelHi, type, animationNodeId) {
|