DisplayStyle3dState Class

A DisplayStyleState that can be applied to spatial views.

Extends

Methods

Name Description
constructor(props: DisplayStyleProps, iModel: IModelConnection, source?: DisplayStyle3dState): DisplayStyle3dState    
setSunTime(time: number): void Set the solar light direction based on time value  

Inherited methods

Name Inherited from Description
attachMapLayer(options: { mapLayerIndex: MapLayerIndex, settings: MapLayerSettings }): void Inherited DisplayStyleState Attach a map layer to display style.
attachRealityModel(props: ContextRealityModelProps): ContextRealityModelState Inherited DisplayStyleState Attach a ContextRealityModel to this display style.
changeBackgroundMapProps(props: BackgroundMapProps): void Inherited DisplayStyleState Modify a subset of the background map display settings.
changeBackgroundMapProvider(props: BackgroundMapProviderProps): void Inherited DisplayStyleState Change aspects of the BackgroundMapProvider from which background map imagery is obtained.
changeBaseMapTransparency(transparency: number): void Inherited DisplayStyleState Change the map base transparency as a number between 0 and 1.
changeMapLayerCredentials(mapLayerIndex: MapLayerIndex, userName?: string, password?: string): void Inherited DisplayStyleState Change the credentials for a map layer.
changeMapLayerProps(props: Partial<MapLayerProps>, mapLayerIndex: MapLayerIndex): void Inherited DisplayStyleState Modify a subset of a map layer settings.
changeMapSubLayerProps(props: Partial<MapSubLayerProps>, subLayerId: SubLayerId, mapLayerIndex: MapLayerIndex): void Inherited DisplayStyleState Modify a subset of a sub-layer settings.
changeRenderTimeline(timelineId: string): Promise<void> Inherited DisplayStyleState Change the Id of the RenderTimeline element that hosts the RenderSchedule.Script to be applied by this display style for
clone(iModel?: IModelConnection): this Inherited DisplayStyleState Make an independent copy of this EntityState
detachMapLayerByIndex(mapLayerIndex: MapLayerIndex): void Inherited DisplayStyleState Detach map layer at index (-1 to remove all layers)
detachRealityModelByNameAndUrl(name: string, url: string): boolean Inherited DisplayStyleState Detach the first ContextRealityModel that matches the specified name and url.
dropSubCategoryOverride(id: string): void Inherited DisplayStyleState Remove any SubCategoryOverride applied to a SubCategoryAppearance by this style.
equals(other: this): boolean Inherited DisplayStyleState Return true if this EntityState is equal to another one.
equalState(other: DisplayStyleState): boolean Inherited DisplayStyleState Performs logical comparison against another display style.
findMapLayerIndexByNameAndSource(name: string, source: string, isOverlay: boolean): number Inherited DisplayStyleState Lookup a maplayer index by name and source.
forEachRealityModel(func: (model: ContextRealityModelState) => void): void Inherited DisplayStyleState Call a function for each reality model attached to this display style.
getOSMBuildingRealityModel(): undefined | ContextRealityModelState Inherited DisplayStyleState Get the ContextRealityModelState that displays the OpenStreetMap worldwide building layer, if enabled.
getSubCategoryOverride(id: string): undefined | SubCategoryOverride Inherited DisplayStyleState Obtain the overrides applied to a SubCategoryAppearance by this style.
hasAttachedRealityModel(name: string, url: string): boolean Inherited DisplayStyleState Return if a context reality model is attached.
is3d(): this is DisplayStyle3dState Inherited DisplayStyleState Returns true if this is a 3d display style.
load(): Promise<void> Inherited DisplayStyleState Ensures all of the data required by the display style is loaded.
mapLayerAtIndex(mapLayerIndex: MapLayerIndex): undefined | MapLayerSettings Inherited DisplayStyleState Return the map layer settings for a map layer at the provided index.
moveMapLayerToBottom(mapLayerIndex: MapLayerIndex): void Inherited DisplayStyleState Move map layer to bottom.
moveMapLayerToIndex(fromIndex: number, toIndex: number, isOverlay: boolean): void Inherited DisplayStyleState Reorder map layers
moveMapLayerToTop(mapLayerIndex: MapLayerIndex): void Inherited DisplayStyleState Move map layer to top.
overrideSubCategory(id: string, ovr: SubCategoryOverride): void Inherited DisplayStyleState Customize the way geometry belonging to a SubCategory is drawn by this display style.
setOSMBuildingDisplay(options: OsmBuildingDisplayOptions): boolean Inherited DisplayStyleState Set the display of the OpenStreetMap worldwide building layer in this display style by attaching or detaching the reality model displaying the buildings.
toJSON(): ElementProps Inherited DisplayStyleState Obtain this element's JSON representation.

Properties

Name Type Description
className Accessor Static ReadOnly string The name of the BIS class associated with this class.  
environment Accessor Environment    
lights Accessor LightSettings    
settings Accessor ReadOnly DisplayStyle3dSettings The container for this display style's settings.  
solarShadows Accessor SolarShadowSettings Settings controlling shadow display.  
sunDirection Accessor ReadOnly Readonly<Vector3d> The direction of the solar light.  

Inherited properties

Name Type Inherited from Description
backgroundColor Accessor Inherited ColorDef DisplayStyleState The background color for this DisplayStyle
backgroundMapBase Accessor Inherited BaseLayerSettings DisplayStyleState Settings controlling how the base map is displayed within a view.
The base map can be provided by any map imagery source or set to be a single color.
backgroundMapSettings Accessor Inherited BackgroundMapSettings DisplayStyleState The settings controlling how a background map is displayed within a view.
baseMapTransparency Accessor Inherited ReadOnly number DisplayStyleState Return map base transparency as a number between 0 and 1.
classFullName Accessor Static Inherited ReadOnly string DisplayStyleState Get full BIS class name of this Entity in the form "SchemaName:ClassName".
classFullName Readonly Inherited string DisplayStyleState The full class name in the form "schema:class".
className Accessor Inherited ReadOnly string DisplayStyleState The name of the BIS class associated with this class.
code Readonly Inherited Code DisplayStyleState The Code for this element
contextRealityModelStates Accessor Inherited ReadOnly ReadonlyArray<ContextRealityModelState> DisplayStyleState ContextRealityModelStates attached to this display style.
federationGuid Readonly Inherited string | undefined DisplayStyleState A FederationGuid assigned to this element by some other federated database
hasSubCategoryOverride Accessor Inherited ReadOnly boolean DisplayStyleState Returns true if an SubCategoryOverrides are defined by this style.
id Readonly Inherited string DisplayStyleState The Id of this Entity.
iModel Readonly Inherited IModelConnection DisplayStyleState The iModel from which this Entity was loaded
jsonProperties Readonly Inherited { T } DisplayStyleState Optional json properties of this Entity.
model Readonly Inherited string DisplayStyleState The ModelId of the Model containing this element
monochromeColor Accessor Inherited ColorDef DisplayStyleState The color used to draw geometry in monochrome mode.
name Accessor Inherited ReadOnly string DisplayStyleState The name of this DisplayStyle
onOSMBuildingDisplayChanged Readonly Inherited BeEvent<(osmBuildingDisplayEnabled: boolean) => void> DisplayStyleState Event raised just after setOSMBuildingDisplay changes the enabled state of the OSM buildings.
onScheduleScriptChanged Readonly Inherited BeEvent<(newScript: RenderSchedule.Script) => void> DisplayStyleState Event raised just before the scheduleScript property is changed.
onScheduleScriptReferenceChanged Readonly Inherited BeEvent<(newScriptReference: RenderSchedule.ScriptReference) => void> DisplayStyleState Event raised just before the scheduleScriptReference property is changed.
parent Readonly Inherited RelatedElement | undefined DisplayStyleState The parent Element of this, or undefined if no parent.
realityModels Accessor Inherited ReadOnly Iterable<ContextRealityModelState, any, any> DisplayStyleState Iterate over the reality models attached to this display style.
scheduleScript Accessor Inherited undefined | RenderSchedule.Script DisplayStyleState The RenderSchedule.Script that animates the contents of the view, if any.
scheduleScriptReference Accessor Inherited ReadOnly undefined | RenderSchedule.ScriptReference DisplayStyleState The RenderSchedule.Script that animates the contents of the view, if any, along with the Id of the element that hosts the script.
schemaName Accessor Static Inherited ReadOnly string DisplayStyleState The name of the BIS schema for this class.
userLabel Readonly Inherited string | undefined DisplayStyleState A user-assigned label for this element.
viewFlags Accessor Inherited ViewFlags DisplayStyleState Flags controlling various aspects of the display style.
wantShadows Accessor Inherited ReadOnly boolean DisplayStyleState Returns true if solar shadow display is enabled by this display style.

Defined in

Last Updated: 14 November, 2024