ModelSelectorState Class
The state of a ModelSelector. It holds a set of ids of GeometricModels for a SpatialViewState. It defines the set of ModelStates drawn within the view as a set of IDs.
Extends
Methods
Name | Description | |
---|---|---|
constructor(props: ModelSelectorProps, iModel: IModelConnection): ModelSelectorState | ||
addModels(arg: Id64Arg): void | Add one or more models to this ModelSelectorState | |
containsModel(modelId: string): boolean | Determine whether this ModelSelectorState includes the specified modelId | |
dropModels(arg: Id64Arg): void | Drop one or more models from this ModelSelectorState | |
equalState(other: ModelSelectorState): boolean | Determine if this model selector is logically equivalent to the specified model selector. | |
has(id: string): boolean | Determine whether this ModelSelectorState includes the specified modelId value | |
load(): Promise<void> | Make sure all models referenced by this ModelSelectorState are loaded. | |
toJSON(): ModelSelectorProps | Obtain this element's JSON representation. |
Inherited methods
Name | Inherited from | Description |
---|---|---|
clone(iModel?: IModelConnection): this Inherited | ElementState | Make an independent copy of this EntityState |
equals(other: this): boolean Inherited | ElementState | Return true if this EntityState is equal to another one. |
Properties
Name | Type | Description | |
---|---|---|---|
className Accessor Static ReadOnly | string | The name of the BIS class associated with this class. | |
models Accessor | Set<string> | The set of ModelIds of this ModelSelectorState | |
name Accessor ReadOnly | string | The name of this ModelSelector |
Inherited properties
Name | Type | Inherited from | Description |
---|---|---|---|
classFullName Accessor Static Inherited ReadOnly | string | ElementState | Get full BIS class name of this Entity in the form "SchemaName:ClassName". |
classFullName Readonly Inherited | string | ElementState | The full class name in the form "schema:class". |
className Accessor Inherited ReadOnly | string | ElementState | The name of the BIS class associated with this class. |
code Readonly Inherited | Code | ElementState | The Code for this element |
federationGuid Readonly Inherited | string | undefined | ElementState | A FederationGuid assigned to this element by some other federated database |
id Readonly Inherited | string | ElementState | The Id of this Entity. |
iModel Readonly Inherited | IModelConnection | ElementState | The iModel from which this Entity was loaded |
jsonProperties Readonly Inherited | { T } | ElementState | Optional json properties of this Entity. |
model Readonly Inherited | string | ElementState | The ModelId of the Model containing this element |
parent Readonly Inherited | RelatedElement | undefined | ElementState | The parent Element of this, or undefined if no parent. |
schemaName Accessor Static Inherited ReadOnly | string | ElementState | The name of the BIS schema for this class. |
userLabel Readonly Inherited | string | undefined | ElementState | A user-assigned label for this element. |
Defined in
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.