![]() |
Open CASCADE Technology Reference Manual 8.0.1
|
Non-const view for programmatic graph construction and structural editing. More...
#include <BRepGraph_EditorView.hxx>
Data Structures | |
| struct | BoundaryIssue |
| A single boundary invariant issue detected by ValidateMutationBoundary(). More... | |
| class | CoEdgeOps |
| CoEdge and PCurve operations. More... | |
| class | CompoundOps |
| Compound creation and editing operations. More... | |
| class | CompSolidOps |
| CompSolid creation and editing operations. More... | |
| class | EdgeOps |
| Edge creation and editing operations. More... | |
| class | FaceOps |
| Face creation and editing operations. More... | |
| class | GenOps |
| Generic node, reference, and representation removal operations. More... | |
| class | OccurrenceOps |
| Occurrence mutation operations. More... | |
| class | ProductOps |
| Product and assembly low-level reconstruction primitives. Wire two existing entities together; for shape ingestion use BRepGraph::ShapesView::Add(). More... | |
| class | ShellOps |
| Shell creation and editing operations. More... | |
| class | SolidOps |
| Solid creation and editing operations. More... | |
| class | VertexOps |
| Vertex creation operations. More... | |
| class | WireOps |
| Wire creation and editing operations. More... | |
Public Member Functions | |
| VertexOps & | Vertices () |
| Return vertex creation operations. | |
| EdgeOps & | Edges () |
| Return edge creation and editing operations. | |
| CoEdgeOps & | CoEdges () |
| Return coedge and PCurve operations. | |
| WireOps & | Wires () |
| Return wire creation and editing operations. | |
| FaceOps & | Faces () |
| Return face creation and editing operations. | |
| ShellOps & | Shells () |
| Return shell creation and editing operations. | |
| SolidOps & | Solids () |
| Return solid creation and editing operations. | |
| CompoundOps & | Compounds () |
| Return compound creation and editing operations. | |
| CompSolidOps & | CompSolids () |
| Return compsolid creation and editing operations. | |
| ProductOps & | Products () |
| Return product and assembly creation and editing operations. | |
| OccurrenceOps & | Occurrences () |
| Return occurrence mutation operations. | |
| GenOps & | Gen () |
| Return generic node, reference, and representation removal operations. | |
| BRepGraph_SupplementEditor | Supplement () |
| Return runtime supplement attachment operations. | |
| void | BeginDeferredInvalidation () |
| Begin deferred invalidation mode. While active, markModified() only increments OwnGen + SubtreeGen and appends to the deferred list - without acquiring the shape-cache mutex or propagating upward. Call EndDeferredInvalidation() to batch-flush all accumulated changes. Intended for batch mutation loops (SameParameter, Sewing) where many entities are modified sequentially and upward propagation should be deferred until all mutations are complete. Prefer BRepGraph_DeferredScope RAII guard. | |
| void | EndDeferredInvalidation () noexcept |
| End deferred invalidation mode and batch-flush: propagates SubtreeGen upward for all modified entities from the deferred list. Shape cache entries are validated lazily via SubtreeGen comparison. | |
| bool | IsDeferredMode () const |
| Check if deferred invalidation mode is currently active. | |
| void | CommitMutation () noexcept |
| Finalize a batch of mutations. Validates relation consistency and asserts active entity counts match actual entity state. Call this after manual batch mutation loops, or rely on BRepGraph_DeferredScope to call it automatically at scope exit. | |
| bool | ValidateMutationBoundary (NCollection_LinearVector< BoundaryIssue > *const theIssues=nullptr) const |
| Validate lightweight mutation-boundary invariants. | |
Non-const view for programmatic graph construction and structural editing.
The single mutation entry point for a BRepGraph instance. Provides:
Each Ops class is accessed via a non-const reference accessor: theGraph.Editor().Vertices().Add(...) theGraph.Editor().Edges().Add(...) theGraph.Editor().CoEdges().Add(edge, face, curve2d, first, last, ori) theGraph.Editor().Products().Add(shapeRoot, placement) theGraph.Editor().Gen().RemoveNode(...)
Contract notes:
| void BRepGraph::EditorView::BeginDeferredInvalidation | ( | ) |
Begin deferred invalidation mode. While active, markModified() only increments OwnGen + SubtreeGen and appends to the deferred list - without acquiring the shape-cache mutex or propagating upward. Call EndDeferredInvalidation() to batch-flush all accumulated changes. Intended for batch mutation loops (SameParameter, Sewing) where many entities are modified sequentially and upward propagation should be deferred until all mutations are complete. Prefer BRepGraph_DeferredScope RAII guard.
|
inline |
Return coedge and PCurve operations.
|
noexcept |
Finalize a batch of mutations. Validates relation consistency and asserts active entity counts match actual entity state. Call this after manual batch mutation loops, or rely on BRepGraph_DeferredScope to call it automatically at scope exit.
|
inline |
Return compound creation and editing operations.
|
inline |
Return compsolid creation and editing operations.
|
inline |
Return edge creation and editing operations.
|
noexcept |
End deferred invalidation mode and batch-flush: propagates SubtreeGen upward for all modified entities from the deferred list. Shape cache entries are validated lazily via SubtreeGen comparison.
|
inline |
Return face creation and editing operations.
|
inline |
Return generic node, reference, and representation removal operations.
| bool BRepGraph::EditorView::IsDeferredMode | ( | ) | const |
Check if deferred invalidation mode is currently active.
|
inline |
Return occurrence mutation operations.
|
inline |
Return product and assembly creation and editing operations.
|
inline |
Return shell creation and editing operations.
|
inline |
Return solid creation and editing operations.
|
inline |
Return runtime supplement attachment operations.
| bool BRepGraph::EditorView::ValidateMutationBoundary | ( | NCollection_LinearVector< BoundaryIssue > *const | theIssues = nullptr | ) | const |
Validate lightweight mutation-boundary invariants.
| [out] | theIssues | optional destination for detailed issues |
|
inline |
Return vertex creation operations.
|
inline |
Return wire creation and editing operations.