ClipStyle Class
Describes symbology and behavior applied to a ClipVector when applied to a ViewState or ModelClipGroup.
see DisplayStyleSettings.clipStyle.
Methods
Name | Description | |
---|---|---|
toJSON(): undefined | ClipStyleProps | The JSON representation of this style. | |
create(produceCutGeometry: boolean, cutStyle: CutStyle, insideColor?: RgbColor, outsideColor?: RgbColor): ClipStyle Static | Create a style from its components. | |
fromJSON(props?: ClipStyleProps): ClipStyle Static |
Properties
Name | Type | Description | |
---|---|---|---|
cutStyle Readonly | CutStyle | Controls aspects of how the cut geometry is displayed, if ClipStyle.produceCutGeometry is true . |
|
defaults StaticReadonly | ClipStyle | The default style, which overrides none of the view's settings. | |
insideColor Readonly | undefined | RgbColor | If defined, geometry inside the clip planes will be drawn in this color. | |
matchesDefaults Accessor ReadOnly | boolean | Returns true if this style matches the ClipStyle.defaults - that is, it overrides no settings from the view. | |
outsideColor Readonly | undefined | RgbColor | If defined, geometry outside of the clip planes will be drawn in this color instead of being clipped. | |
produceCutGeometry Readonly | boolean | If true , geometry will be produced at the clip planes. |
Defined in
- core/common/src/ClipStyle.ts Line 124
Last Updated: 30 November, 2023