API Reference > imodeljs-common > DisplayStyles > ViewFlagOverrides ViewFlagOverrides Class Overrides a subset of ViewFlags. Methods Name Description constructor(flags?: ViewFlags): ViewFlagOverrides Construct a ViewFlagOverrides which overrides all flags to match the specified ViewFlags, or overrides nothing if no ViewFlags are supplied. anyOverridden(): boolean Returns true if any view flags are overridden. apply(base: ViewFlags): ViewFlags Apply these overrides to the supplied ViewFlags. clear(): void Marks all view flags as not overridden. clearClipVolume(): void clearPresent(flag: ViewFlagPresence): void Mark the specified flag as not overridden. clone(out?: ViewFlagOverrides): ViewFlagOverrides Create a copy of these overrides. copyFrom(other: ViewFlagOverrides): void Modify these overrides to match the input overrides. edgesRequired(viewFlags: ViewFlags): boolean Return whether these overrides applied to the specified ViewFlags require edges to be drawn. isPresent(flag: ViewFlagPresence): boolean Returns true if the specified flag is overridden. overrideAll(flags?: ViewFlags): void Marks all view flags as overridden. setApplyLighting(val: boolean): void setEdgeMask(val: number): void setForceSurfaceDiscard(val: boolean): void setIgnoreGeometryMap(val: boolean): void setMonochrome(val: boolean): void setPresent(flag: ViewFlagPresence): void Mark the specified flag as overridden. setRenderMode(val: RenderMode): void setShowBackgroundMap(val: boolean): void setShowClipVolume(val: boolean): void setShowConstructions(val: boolean): void setShowDimensions(val: boolean): void setShowFill(val: boolean): void setShowHiddenEdges(val: boolean): void setShowMaterials(val: boolean): void setShowPatterns(val: boolean): void setShowShadows(val: boolean): void setShowStyles(val: boolean): void setShowTextures(val: boolean): void setShowTransparency(val: boolean): void setShowVisibleEdges(val: boolean): void setShowWeights(val: boolean): void setThematicDisplay(val: boolean): void setUseHlineMaterialColors(val: boolean): void setWhiteOnWhiteReversal(val: boolean): void toJSON(): ViewFlagOverridesProps fromJSON(props?: ViewFlagOverridesProps): ViewFlagOverrides Static Defined in core/common/src/ViewFlags.ts Line 465 Last Updated: 12 June, 2024