![]() |
Open CASCADE Technology Reference Manual 8.0.2
|
Compound creation and editing operations. More...
#include <BRepGraph_EditorView.hxx>
Public Member Functions | |
| BRepGraph_CompoundId | Add (const NCollection_Array1< BRepGraph_NodeId > &theChildEntities) |
| Add a compound entity with ordered child usages. | |
| BRepGraph_ChildRefId | Append (const BRepGraph_CompoundId theCompoundEntity, const BRepGraph_NodeId theChildEntity, const BRepGraphInc::ParityOrientation theOri=TopAbs_FORWARD) |
| Append a single child to an existing compound definition. | |
| NCollection_Array1< BRepGraph_ChildRefId > | Append (const BRepGraph_CompoundId theCompoundEntity, const NCollection_Array1< BRepGraph_NodeId > &theChildIds, const NCollection_Array1< BRepGraphInc::ParityOrientation > &theOrientations=NCollection_Array1< BRepGraphInc::ParityOrientation >()) |
| Batch-append multiple children to an existing compound definition. Two-pass: validates all inputs first, then links all. | |
| bool | RemoveChild (const BRepGraph_CompoundId theCompoundDefId, const BRepGraph_ChildRefId theChildRefId) |
| Detach one exact child ref from a compound definition. Use BRepGraph_RefsChildOfParent::CurrentId() when removing from a compound iterator. The method removes the exact ChildRef entry, erases it from the compound's ordered ref sequence, updates relation tables, and prunes the child subtree when it has no other active usages. | |
| bool | RemoveChildren (const BRepGraph_CompoundId theCompoundId, const NCollection_Array1< BRepGraph_ChildRefId > &theChildRefs) |
| Batch-remove multiple child refs from a compound definition. All-or-nothing: validates all inputs first, then removes all. | |
| BRepGraph_MutGuard< BRepGraphInc::CompoundDef > | Mut (const BRepGraph_CompoundId theCompound) |
| Return scoped mutable compound definition guard. | |
| void | ReplaceChild (const BRepGraph_ChildRefId theChildRef, const BRepGraph_NodeId theNewChild) |
| Replace the child node of an existing child reference in a compound. Delegates to Gen().SetChildRefChildNodeId(). | |
Compound creation and editing operations.
|
nodiscard |
Add a compound entity with ordered child usages.
| [in] | theChildEntities | child node identifiers |
|
nodiscard |
Append a single child to an existing compound definition.
| [in] | theCompoundEntity | typed compound definition identifier |
| [in] | theChildEntity | typed child topology definition identifier |
| [in] | theOri | orientation of the child in the compound |
|
nodiscard |
Batch-append multiple children to an existing compound definition. Two-pass: validates all inputs first, then links all.
| [in] | theCompoundEntity | typed compound definition identifier |
| [in] | theChildIds | child node identifiers to append |
| [in] | theOrientations | optional parity orientations (empty = all FORWARD) |
|
nodiscard |
Return scoped mutable compound definition guard.
|
nodiscard |
Detach one exact child ref from a compound definition. Use BRepGraph_RefsChildOfParent::CurrentId() when removing from a compound iterator. The method removes the exact ChildRef entry, erases it from the compound's ordered ref sequence, updates relation tables, and prunes the child subtree when it has no other active usages.
| [in] | theCompoundDefId | compound definition identifier |
| [in] | theChildRefId | exact compound-owned child reference identifier |
|
nodiscard |
Batch-remove multiple child refs from a compound definition. All-or-nothing: validates all inputs first, then removes all.
| [in] | theCompoundId | compound definition identifier |
| [in] | theChildRefs | child reference identifiers to remove |
| void BRepGraph::EditorView::CompoundOps::ReplaceChild | ( | const BRepGraph_ChildRefId | theChildRef, |
| const BRepGraph_NodeId | theNewChild ) |
Replace the child node of an existing child reference in a compound. Delegates to Gen().SetChildRefChildNodeId().
| [in] | theChildRef | typed child reference identifier |
| [in] | theNewChild | new child node identifier |