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 : NwcSetItemInheritance
Inherited Members
Constructors
NwcSearchSet()
public NwcSearchSet()NwcSearchSet(string, IEnumerable<NwcSearchCondition>?, bool)
public NwcSearchSet(string name, IEnumerable<NwcSearchCondition>? conditions = null, bool matchAll = true)Parameters
namestringconditionsIEnumerable<NwcSearchCondition>?matchAllbool
Properties
Conditions
public List<NwcSearchCondition> Conditions { get; }Property Value
MatchAllConditions
public bool MatchAllConditions { get; set; }Property Value
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
documentNwcDocument
Returns
Matches(NwcNode)
Checks whether an individual node matches all or any of the search set conditions.
public bool Matches(NwcNode node)Parameters
nodeNwcNode