Skip to main content
Version: 4.x

Class: TreeIndexNodeCollection

@cognite/reveal.TreeIndexNodeCollection

Node collection that holds a set of nodes defined by a set of tree indices.

Hierarchy

Constructors

constructor

new TreeIndexNodeCollection(treeIndexSet?)

Parameters

NameType
treeIndexSet?IndexSet

Overrides

NodeCollection.constructor

Defined in

packages/cad-styling/src/TreeIndexNodeCollection.ts:23

new TreeIndexNodeCollection(treeIndices?)

Parameters

NameType
treeIndices?Iterable<number>

Overrides

NodeCollection.constructor

Defined in

packages/cad-styling/src/TreeIndexNodeCollection.ts:24

new TreeIndexNodeCollection(treeIndexRange?)

Parameters

NameType
treeIndexRange?NumericRange

Overrides

NodeCollection.constructor

Defined in

packages/cad-styling/src/TreeIndexNodeCollection.ts:25

Properties

classToken

Static Readonly classToken: "TreeIndexNodeCollection"

Defined in

packages/cad-styling/src/TreeIndexNodeCollection.ts:18

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/TreeIndexNodeCollection.ts:110

Methods

addAreaPoints

addAreaPoints(points): void

Add points to this node collection's area set. This effectively adds boxes of size 1x1x1 meter with the points as their centers.

Parameters

NameType
pointsVector3[]

Returns

void

Defined in

packages/cad-styling/src/TreeIndexNodeCollection.ts:96


addAreas

addAreas(areas): void

Add areas to this node collection's area set. Nearby areas may be clustered and merged together to keep the number of areas in the set small.

Parameters

NameType
areasBox3[]

Returns

void

Defined in

packages/cad-styling/src/TreeIndexNodeCollection.ts:84


clear

clear(): void

Sets this set to hold an empty set.

Returns

void

Overrides

NodeCollection.clear

Defined in

packages/cad-styling/src/TreeIndexNodeCollection.ts:56


clearAreas

clearAreas(): void

Returns

void

Defined in

packages/cad-styling/src/TreeIndexNodeCollection.ts:106


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

AreaCollection

Overrides

NodeCollection.getAreas

Defined in

packages/cad-styling/src/TreeIndexNodeCollection.ts:65


getIndexSet

getIndexSet(): IndexSet

Returns

IndexSet

Overrides

NodeCollection.getIndexSet

Defined in

packages/cad-styling/src/TreeIndexNodeCollection.ts:61


off

off(event, listener): void

Parameters

NameType
event"changed"
listener() => void

Returns

void

Inherited from

NodeCollection.off

Defined in

packages/cad-styling/src/NodeCollection.ts:32


on

on(event, listener): void

Parameters

NameType
event"changed"
listener() => void

Returns

void

Inherited from

NodeCollection.on

Defined in

packages/cad-styling/src/NodeCollection.ts:27


serialize

serialize(): SerializedNodeCollection

Returns

SerializedNodeCollection

Overrides

NodeCollection.serialize

Defined in

packages/cad-styling/src/TreeIndexNodeCollection.ts:114


updateSet

updateSet(treeIndices): void

Parameters

NameType
treeIndicesIndexSet

Returns

void

Defined in

packages/cad-styling/src/TreeIndexNodeCollection.ts:37

updateSet(treeIndices): void

Parameters

NameType
treeIndicesNumericRange

Returns

void

Defined in

packages/cad-styling/src/TreeIndexNodeCollection.ts:38

updateSet(treeIndices): void

Parameters

NameType
treeIndicesIterable<number>

Returns

void

Defined in

packages/cad-styling/src/TreeIndexNodeCollection.ts:39