IModelDisplayReference Interface @beta
A reference to an IModelConnection for display and interaction within a Viewport. The reference describes what subset of the contents of the iModel to display and how to style them.
@see IModelDisplayReferences to inspect and modify the iModels associated with a view.
Methods
| Name | Description | |
|---|---|---|
| changeCategoryDisplay(args: ChangeCategoryDisplayArgs): void | Modify the visibility of categories displayed by this reference. | |
| changeSubCategoryDisplay(id: string, visible: boolean): boolean | Changes the visibility of geometry belonging to the specified SubCategory, preserving any other aspects | |
| getSubCategoryAppearance(id: string): SubCategoryAppearance | Returns a description of how geometry belonging to the specified SubCategory appears when displayed through this reference. | |
| invalidateSymbologyOverrides(): void | Marks this reference's symbology overrides as out of date so that they can be recalculated from its | |
| isSubCategoryVisible(id: string): boolean | Returns true if geometry belonging to the specified SubCategory is visible when displaying this reference, |
Properties
| Name | Type | Description | |
|---|---|---|---|
| activeClipStyle Readonly | ClipStyle | Returns the clip style that applies to this reference, which may differ from that applied to the | |
| activeViewFlags Readonly | ViewFlags | Returns the view flags that apply to this reference, which may differ from those applied to the | |
| alwaysDrawnElements Readonly | ObservableSet<string> | Elements which should always be rendered by this reference, regardless of category and subcategory visibility. | |
| featureOverrideProviders Readonly | ObservableSet<IModelDisplayReferenceFeatureOverrideProvider> | App-supplied providers that apply symbology overrides when displaying this reference. | |
| guid Readonly | string | A unique identifier automatically assigned upon construction. | |
| iModel Readonly | IModelConnection | The iModel displayed by this reference. | |
| is2d Readonly | () => this is IModelDisplayReference2d | Permits applications to distinguish between spatial and 2d references. | |
| isAlwaysDrawnExclusive | boolean | If true, the elements in alwaysDrawnElements are the only elements displayed by this reference. |
|
| isLoadingComplete Readonly | boolean | Returns true if all of the data (e.g., TileTrees) needed to display this reference has been loaded. | |
| isSpatial Readonly | () => this is SpatialIModelDisplayReference | Permits applications to distinguish between spatial and 2d references. | |
| linearTransformToParent Readonly | Transform | A transform from the coordinate system of this iModel to that of the view's primary iModel. | |
| modelAppearanceOverrides Readonly | ObservableMap<string, FeatureAppearance> | Overrides the appearance of specific models. | |
| modelDisplayTransformProvider | ModelDisplayTransformProvider | undefined | Applies a ModelDisplayTransform to model(s) displayed by this reference. | |
| neverDrawnElements Readonly | ObservableSet<string> | ||
| onActiveClipStyleChanged Readonly | BeEvent<() => void> | Event dispatched just after activeClipStyle changes. | |
| onActiveViewFlagsChanged Readonly | BeEvent<() => void> | Event dispatched just after activeViewFlags changes. | |
| onIsAlwaysDrawnExclusiveChanged Readonly | BeEvent<() => void> | Event dispatched when the value of isAlwaysDrawnExclusive changes. | |
| onModelDisplayTransformProviderChanged Readonly | BeEvent<() => void> | Event dispatched immediately after assignment to modelDisplayTransformProvider. | |
| onSymbologyOverridesInvalidated Readonly | BeEvent<() => void> | Event dispatched by invalidateSymbologyOverrides. | |
| onViewedCategoriesLoaded Readonly | BeEvent<() => void> | Event dispatched when any asynchronous loading of categories initiated by a change to viewedCategories completes. | |
| overrides Readonly | IModelDisplayOverrides | Overrides aspects of the view's display style when displaying this reference. | |
| parent Readonly | IModelDisplayReferences | The collection of iModel references to which this reference belongs. | |
| perModelCategoryVisibility Readonly | PerModelCategoryVisibility.Overrides | Allows visibility of categories within this viewport to be overridden on a per-model basis. | |
| subCategoryOverrides Readonly | ObservableMap<string, SubCategoryOverride> | Overrides the appearance of specific subcategories. | |
| tileTreeRefs Readonly | Iterable<TileTreeReference> | The set of tile trees displayed through this reference. | |
| viewedCategories Readonly | ObservableSet<string> | The set of categories that are visible when displaying this reference. |
Defined in
Last Updated: 26 November, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.