Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
BRepGraph_ParentExplorer::Config Struct Reference

Consolidated configuration for the explorer. More...

#include <BRepGraph_ParentExplorer.hxx>

Data Fields

TraversalMode Mode = TraversalMode::Recursive
std::optional< BRepGraph_NodeId::Kind > TargetKind
 Emit only this kind (no value = emit all).
std::optional< BRepGraph_NodeId::Kind > AvoidKind
 Do not ascend through this kind.
bool EmitAvoidKind = false
 Emit matching avoid-kind ancestors once.

Detailed Description

Consolidated configuration for the explorer.

The Config-based constructor is the preferred idiom: new options can be added as fields without additional constructor overloads.

for (auto [id, loc, ori] : BRepGraph_ParentExplorer(aGraph, aNode, aConfig)) { ... }
@ DirectParents
Yields only the immediate parents of the starting node.
Definition BRepGraph_ParentExplorer.hxx:69
BRepGraph_ParentExplorer(const BRepGraph &theGraph, const BRepGraph_NodeId theNode, const Config &theConfig)
Preferred long-term constructor: all tuning knobs in Config.
@ Shell
Definition BRepGraph_NodeId.hxx:46
Consolidated configuration for the explorer.
Definition BRepGraph_ParentExplorer.hxx:84
std::optional< BRepGraph_NodeId::Kind > TargetKind
Emit only this kind (no value = emit all).
Definition BRepGraph_ParentExplorer.hxx:87
TraversalMode Mode
Definition BRepGraph_ParentExplorer.hxx:85

Field Documentation

◆ AvoidKind

std::optional<BRepGraph_NodeId::Kind> BRepGraph_ParentExplorer::Config::AvoidKind

Do not ascend through this kind.

◆ EmitAvoidKind

bool BRepGraph_ParentExplorer::Config::EmitAvoidKind = false

Emit matching avoid-kind ancestors once.

◆ Mode

TraversalMode BRepGraph_ParentExplorer::Config::Mode = TraversalMode::Recursive

◆ TargetKind

std::optional<BRepGraph_NodeId::Kind> BRepGraph_ParentExplorer::Config::TargetKind

Emit only this kind (no value = emit all).


The documentation for this struct was generated from the following file: