Table of Contents

Class NwcSearchSet

Namespace
NwcIO.Model.Sets
Assembly
NwcIO.dll

A dynamic search set that evaluates search conditions against scene graph nodes.

public sealed class NwcSearchSet : NwcSetItem

Inheritance

Inherited Members

Constructors

NwcSearchSet()

public NwcSearchSet()

NwcSearchSet(string, IEnumerable<NwcSearchCondition>?, bool)

public NwcSearchSet(string name, IEnumerable<NwcSearchCondition>? conditions = null, bool matchAll = true)

Parameters

name string
conditions IEnumerable<NwcSearchCondition>?
matchAll bool

Properties

Conditions

public List<NwcSearchCondition> Conditions { get; }

Property Value

List<NwcSearchCondition>

MatchAllConditions

public bool MatchAllConditions { get; set; }

Property Value

bool

Methods

Evaluate(NwcDocument)

Evaluates this search set across all nodes in the document scene tree and returns matching nodes.

public IReadOnlyList<NwcNode> Evaluate(NwcDocument document)

Parameters

document NwcDocument

Returns

IReadOnlyList<NwcNode>

Matches(NwcNode)

Checks whether an individual node matches all or any of the search set conditions.

public bool Matches(NwcNode node)

Parameters

node NwcNode

Returns

bool