Skip to main content
Version: 4.x

Class: PropertyFilterNodeCollection

@cognite/reveal.PropertyFilterNodeCollection

Represents a set of nodes that has matching node properties to a provided filter. Note that a node is considered to match if it or a NodeCollection ancestors match the filter.

Hierarchy

Constructors

constructor

new PropertyFilterNodeCollection(client, model, options?)

Parameters

NameType
clientdefault
modelCdfModelNodeCollectionDataProvider
optionsPropertyFilterNodeCollectionOptions

Overrides

CdfNodeCollectionBase.constructor

Defined in

packages/cad-styling/src/PropertyFilterNodeCollection.ts:44

Properties

classToken

Static Readonly classToken: "PropertyFilterNodeCollection"

Defined in

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

Accessors

classToken

get classToken(): string

Returns

string

Inherited from

CdfNodeCollectionBase.classToken

Defined in

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


isLoading

get isLoading(): boolean

Returns

boolean

Inherited from

CdfNodeCollectionBase.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

Inherited from

CdfNodeCollectionBase.clear

Defined in

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


executeFilter

executeFilter(filter): Promise<void>

Populates the node collection with nodes matching the provided filter. This will replace the current nodes held by the filter.

Example

set.executeFilter({ 'PDMS': { 'Module': 'AQ550' }});

Parameters

NameTypeDescription
filterObjectA filter for matching node properties.

Returns

Promise<void>

Defined in

packages/cad-styling/src/PropertyFilterNodeCollection.ts:64


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

Inherited from

CdfNodeCollectionBase.getAreas

Defined in

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


getIndexSet

getIndexSet(): IndexSet

Returns

IndexSet

Inherited from

CdfNodeCollectionBase.getIndexSet

Defined in

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


off

off(event, listener): void

Parameters

NameType
event"changed"
listener() => void

Returns

void

Inherited from

CdfNodeCollectionBase.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

CdfNodeCollectionBase.on

Defined in

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


serialize

serialize(): SerializedNodeCollection

Returns

SerializedNodeCollection

Overrides

CdfNodeCollectionBase.serialize

Defined in

packages/cad-styling/src/PropertyFilterNodeCollection.ts:83