Skip to main content
Version: Next

Abstract Class: CdfNodeCollectionBase

Defined in: packages/cad-styling/src/CdfNodeCollectionBase.ts:13

Abstract class for implementing a set of nodes to be styled.

Extends​

Extended by​

Constructors​

Constructor​

new CdfNodeCollectionBase(classToken, model): CdfNodeCollectionBase

Defined in: packages/cad-styling/src/CdfNodeCollectionBase.ts:20

Parameters​

classToken​

string

model​

CdfModelNodeCollectionDataProvider

Returns​

CdfNodeCollectionBase

Overrides​

NodeCollection.constructor

Accessors​

classToken​

Get Signature​

get classToken(): string

Defined in: packages/cad-styling/src/NodeCollection.ts:24

Returns​

string

Inherited from​

NodeCollection.classToken


isLoading​

Get Signature​

get isLoading(): boolean

Defined in: packages/cad-styling/src/CdfNodeCollectionBase.ts:25

Returns​

boolean

Overrides​

NodeCollection.isLoading

Methods​

clear()​

clear(): void

Defined in: packages/cad-styling/src/CdfNodeCollectionBase.ts:69

Clears the node collection and interrupts any ongoing operations.

Returns​

void

Overrides​

NodeCollection.clear


getAreas()​

getAreas(): AreaCollection

Defined in: packages/cad-styling/src/CdfNodeCollectionBase.ts:81

Returns areas surrounding the nodes in the collection. The areas are boxes in "ThreeJS coordinates". Note that not all implementations supports this.

Returns​

AreaCollection

Overrides​

NodeCollection.getAreas


getIndexSet()​

getIndexSet(): IndexSet

Defined in: packages/cad-styling/src/CdfNodeCollectionBase.ts:77

Returns​

IndexSet

Overrides​

NodeCollection.getIndexSet


off()​

off(event, listener): void

Defined in: packages/cad-styling/src/NodeCollection.ts:33

Parameters​

event​

"changed"

listener​

() => void

Returns​

void

Inherited from​

NodeCollection.off


on()​

on(event, listener): void

Defined in: packages/cad-styling/src/NodeCollection.ts:28

Parameters​

event​

"changed"

listener​

() => void

Returns​

void

Inherited from​

NodeCollection.on


serialize()​

abstract serialize(): SerializedNodeCollection

Defined in: packages/cad-styling/src/NodeCollection.ts:47

Returns​

SerializedNodeCollection

Inherited from​

NodeCollection.serialize