-
Notifications
You must be signed in to change notification settings - Fork 208
/
RenderClipVolume.ts
24 lines (21 loc) · 1.05 KB
/
RenderClipVolume.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module Rendering
*/
import { ClipVector } from "@itwin/core-geometry";
/** An opaque representation of a clip volume applied to geometry within a [[Viewport]].
* A RenderClipVolume is created from a [[ClipVector]] and takes ownership of that ClipVector, expecting that it will not be modified while the RenderClipVolume still references it.
* @see [[RenderSystem.createClipVolume]] to create a clip volume.
* @public
* @extensions
*/
export abstract class RenderClipVolume {
/** The ClipVector from which this volume was created. It must not be modified. */
public readonly clipVector: ClipVector;
protected constructor(clipVector: ClipVector) {
this.clipVector = clipVector;
}
}