Class: CdfNodeCollectionBase
@cognite/reveal.CdfNodeCollectionBase
Abstract class for implementing a set of nodes to be styled.
Hierarchy
↳
CdfNodeCollectionBase
Constructors
constructor
• new CdfNodeCollectionBase(classToken
, model
)
Parameters
Name | Type |
---|---|
classToken | string |
model | CdfModelNodeCollectionDataProvider |
Overrides
NodeCollection.constructor
Defined in
packages/cad-styling/src/CdfNodeCollectionBase.ts:20
Accessors
classToken
• get
classToken(): string
Returns
string
Inherited from
NodeCollection.classToken
Defined in
packages/cad-styling/src/NodeCollection.ts:23
isLoading
• get
isLoading(): boolean
Returns
boolean
Overrides
NodeCollection.isLoading
Defined in
packages/cad-styling/src/CdfNodeCollectionBase.ts:25
Methods
clear
▸ clear(): void
Clears the node collection and interrupts any ongoing operations.
Returns
void
Overrides
Defined in
packages/cad-styling/src/CdfNodeCollectionBase.ts:69
getAreas
▸ getAreas(): AreaCollection
Returns areas surrounding the nodes in the collection. The areas are boxes in "ThreeJS coordinates". Note that not all implementations supports this.
Returns
Overrides
Defined in
packages/cad-styling/src/CdfNodeCollectionBase.ts:81
getIndexSet
▸ getIndexSet(): IndexSet
Returns
Overrides
Defined in
packages/cad-styling/src/CdfNodeCollectionBase.ts:77
off
▸ off(event
, listener
): void
Parameters
Name | Type |
---|---|
event | "changed" |
listener | () => void |
Returns
void
Inherited from
Defined in
packages/cad-styling/src/NodeCollection.ts:32
on
▸ on(event
, listener
): void
Parameters
Name | Type |
---|---|
event | "changed" |
listener | () => void |
Returns
void
Inherited from
Defined in
packages/cad-styling/src/NodeCollection.ts:27
serialize
▸ Abstract
serialize(): SerializedNodeCollection