SpatialIModelDisplayReference Interface @beta

A reference to any number of spatial models within an iModel.

Extends

Methods

Name Description
addAndLoadViewedModels(modelIds: Iterable<string>): Promise<void> Adds the specified models to viewedModels and returns a promise that resolves  

Inherited methods

Name Inherited from Description
changeCategoryDisplay(args: ChangeCategoryDisplayArgs): void Inherited IModelDisplayReference Modify the visibility of categories displayed by this reference.
changeSubCategoryDisplay(id: string, visible: boolean): boolean Inherited IModelDisplayReference Changes the visibility of geometry belonging to the specified SubCategory, preserving any other aspects
getSubCategoryAppearance(id: string): SubCategoryAppearance Inherited IModelDisplayReference Returns a description of how geometry belonging to the specified SubCategory appears when displayed through this reference.
invalidateSymbologyOverrides(): void Inherited IModelDisplayReference Marks this reference's symbology overrides as out of date so that they can be recalculated from its
isSubCategoryVisible(id: string): boolean Inherited IModelDisplayReference Returns true if geometry belonging to the specified SubCategory is visible when displaying this reference,

Properties

Name Type Description
activeContours Readonly ContourDisplay The contour settings that apply to this reference, falling back to the display style when not overridden.  
activeHiddenLineSettings Readonly HiddenLine.Settings Returns the hidden line settings that apply to this reference, which may differ from that applied to the  
modelClipGroups ModelClipGroups Clip volumes to be applied to groups of models when displayed through the linked SpatialIModelDisplayReference.  
onActiveContoursChanged Readonly BeEvent<() => void> Event dispatched just after activeContours changes.  
onActiveHiddenLineSettingsChanged Readonly BeEvent<() => void> Event dispatched just after activeHiddenLineSettings changes.  
onModelClipGroupsChanged Readonly BeEvent<() => void> Event dispatched just after assignment to modelClipGroups.  
onViewedModelsLoaded Readonly BeEvent<() => void> Event dispatched after any asynchronous loading of models initiated by a change to viewedModels completes.  
overrides Readonly SpatialIModelDisplayOverrides Overrides aspects of the view's display style when displaying this reference.  
parent Readonly SpatialIModelDisplayReferences The collection of iModel references to which this reference belongs.  
planarClipMasks Readonly ObservableMap<string, PlanarClipMaskSettings> Planar clip masks applied to persistent reality models (See: isRealityModel) when  
planProjectionSettings Readonly ObservableMap<string, PlanProjectionSettings> Maps the Ids of plan projection models within this reference to a description of how they should be displayed.  
realityModelDisplaySettings Readonly ObservableMap<string, RealityModelDisplaySettings> Specifies how persistent reality models (See: isRealityModel) are styled when  
viewedModels Readonly ObservableSet<string> The set of models that are visible when displayed through this reference.  

Inherited properties

Name Type Inherited from Description
activeClipStyle Readonly Inherited ClipStyle IModelDisplayReference Returns the clip style that applies to this reference, which may differ from that applied to the
activeViewFlags Readonly Inherited ViewFlags IModelDisplayReference Returns the view flags that apply to this reference, which may differ from those applied to the
alwaysDrawnElements Readonly Inherited ObservableSet<string> IModelDisplayReference Elements which should always be rendered by this reference, regardless of category and subcategory visibility.
featureOverrideProviders Readonly Inherited ObservableSet<IModelDisplayReferenceFeatureOverrideProvider> IModelDisplayReference App-supplied providers that apply symbology overrides when displaying this reference.
guid Readonly Inherited string IModelDisplayReference A unique identifier automatically assigned upon construction.
iModel Readonly Inherited IModelConnection IModelDisplayReference The iModel displayed by this reference.
is2d Readonly Inherited () => this is IModelDisplayReference2d IModelDisplayReference Permits applications to distinguish between spatial and 2d references.
isAlwaysDrawnExclusive Inherited boolean IModelDisplayReference If true, the elements in alwaysDrawnElements are the only elements displayed by this reference.
isLoadingComplete Readonly Inherited boolean IModelDisplayReference Returns true if all of the data (e.g., TileTrees) needed to display this reference has been loaded.
isSpatial Readonly Inherited () => this is SpatialIModelDisplayReference IModelDisplayReference Permits applications to distinguish between spatial and 2d references.
linearTransformToParent Readonly Inherited Transform IModelDisplayReference A transform from the coordinate system of this iModel to that of the view's primary iModel.
modelAppearanceOverrides Readonly Inherited ObservableMap<string, FeatureAppearance> IModelDisplayReference Overrides the appearance of specific models.
modelDisplayTransformProvider Inherited ModelDisplayTransformProvider | undefined IModelDisplayReference Applies a ModelDisplayTransform to model(s) displayed by this reference.
neverDrawnElements Readonly Inherited ObservableSet<string> IModelDisplayReference  
onActiveClipStyleChanged Readonly Inherited BeEvent<() => void> IModelDisplayReference Event dispatched just after activeClipStyle changes.
onActiveViewFlagsChanged Readonly Inherited BeEvent<() => void> IModelDisplayReference Event dispatched just after activeViewFlags changes.
onIsAlwaysDrawnExclusiveChanged Readonly Inherited BeEvent<() => void> IModelDisplayReference Event dispatched when the value of isAlwaysDrawnExclusive changes.
onModelDisplayTransformProviderChanged Readonly Inherited BeEvent<() => void> IModelDisplayReference Event dispatched immediately after assignment to modelDisplayTransformProvider.
onSymbologyOverridesInvalidated Readonly Inherited BeEvent<() => void> IModelDisplayReference Event dispatched by invalidateSymbologyOverrides.
onViewedCategoriesLoaded Readonly Inherited BeEvent<() => void> IModelDisplayReference Event dispatched when any asynchronous loading of categories initiated by a change to viewedCategories completes.
perModelCategoryVisibility Readonly Inherited PerModelCategoryVisibility.Overrides IModelDisplayReference Allows visibility of categories within this viewport to be overridden on a per-model basis.
subCategoryOverrides Readonly Inherited ObservableMap<string, SubCategoryOverride> IModelDisplayReference Overrides the appearance of specific subcategories.
tileTreeRefs Readonly Inherited Iterable<TileTreeReference> IModelDisplayReference The set of tile trees displayed through this reference.
viewedCategories Readonly Inherited ObservableSet<string> IModelDisplayReference The set of categories that are visible when displaying this reference.

Defined in

Last Updated: 26 November, 2026