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

Consolidated configuration for the explorer. More...

#include <BRepGraph_ChildExplorer.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 descend into this kind.
bool EmitAvoidKind
 Emit matching avoid-kind nodes once before skipping their subtree.
bool AccumulateLocation = true
 Compose Location down the walk.
bool AccumulateOrientation = true
 Compose Orientation down the walk.
TopLoc_Location StartLoc
 Initial accumulated location.
TopAbs_Orientation StartOri = TopAbs_FORWARD
 Initial accumulated orientation.

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.

aConfig.StartLoc = aParentLocation;
for (auto [id, loc, ori] : BRepGraph_ChildExplorer(aGraph, aRoot, aConfig)) { ... }
@ TopAbs_REVERSED
Definition TopAbs_Orientation.hxx:43
BRepGraph_ChildExplorer(const BRepGraph &theGraph, const BRepGraph_NodeId theRoot, const Config &theConfig)
Preferred long-term constructor: all tuning knobs in Config.
@ DirectChildren
Yields only the immediate children of the root.
Definition BRepGraph_ChildExplorer.hxx:74
Consolidated configuration for the explorer.
Definition BRepGraph_ChildExplorer.hxx:91
TraversalMode Mode
Definition BRepGraph_ChildExplorer.hxx:92
TopLoc_Location StartLoc
Initial accumulated location.
Definition BRepGraph_ChildExplorer.hxx:100
std::optional< BRepGraph_NodeId::Kind > TargetKind
Emit only this kind (no value = emit all).
Definition BRepGraph_ChildExplorer.hxx:94
TopAbs_Orientation StartOri
Initial accumulated orientation.
Definition BRepGraph_ChildExplorer.hxx:101
@ Face
Definition BRepGraph_NodeId.hxx:47

Field Documentation

◆ AccumulateLocation

bool BRepGraph_ChildExplorer::Config::AccumulateLocation = true

Compose Location down the walk.

◆ AccumulateOrientation

bool BRepGraph_ChildExplorer::Config::AccumulateOrientation = true

Compose Orientation down the walk.

◆ AvoidKind

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

Do not descend into this kind.

◆ EmitAvoidKind

bool BRepGraph_ChildExplorer::Config::EmitAvoidKind
Initial value:
=
false

Emit matching avoid-kind nodes once before skipping their subtree.

◆ Mode

TraversalMode BRepGraph_ChildExplorer::Config::Mode = TraversalMode::Recursive

◆ StartLoc

TopLoc_Location BRepGraph_ChildExplorer::Config::StartLoc

Initial accumulated location.

◆ StartOri

TopAbs_Orientation BRepGraph_ChildExplorer::Config::StartOri = TopAbs_FORWARD

Initial accumulated orientation.

◆ TargetKind

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

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


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