OCCT3D About OCCT
Open CASCADE Technology Reference Manual 8.0.1
Loading...
Searching...
No Matches
Data Structures | Public Types | Public Member Functions
BRepGraphInc_Storage Class Reference

Central backend storage container for the incidence-table topology model. More...

#include <BRepGraphInc_Storage.hxx>

Data Structures

struct  CachedShape
 Gen-validated shape cache entry. More...
 

Public Types

enum class  WireCoEdgeOrderStatus {
  Connected , Reordered , ToleranceOrdered , Partial ,
  InvalidInput
}
 Result of wire coedge order canonicalization. More...
 

Public Member Functions

 BRepGraphInc_Storage ()
 Construct an empty storage with no entities or representations.
 
 ~BRepGraphInc_Storage ()
 Clear allocator-backed containers before member destructors walk them.
 
const occ::handle< NCollection_BaseAllocator > & Allocator () const
 Return the allocator used for backend storage.
 
const NCollection_LinearVector< BRepGraph_ProductId > & RootProductIds () const
 Return products not referenced by any active occurrence.
 
NCollection_LinearVector< BRepGraph_ProductId > & ChangeRootProductIds ()
 Return products not referenced by any active occurrence.
 
const NCollection_LinearVector< BRepGraph_NodeId > & DeferredModified () const
 Return nodes accumulated during deferred invalidation.
 
NCollection_LinearVector< BRepGraph_NodeId > & ChangeDeferredModified ()
 Return nodes accumulated during deferred invalidation.
 
const NCollection_LinearVector< BRepGraph_RefId > & DeferredRefModified () const
 Return refs accumulated during deferred invalidation.
 
NCollection_LinearVector< BRepGraph_RefId > & ChangeDeferredRefModified ()
 Return refs accumulated during deferred invalidation.
 
bool IsEmpty () const
 Return true when the graph contains no topology definitions. Checks whether any node kind (Vertex, Edge, Wire, Face, Shell, Solid, Compound, CompSolid, Product, Occurrence) has been allocated.
 
uint32_t NextNodeUIDCounter (BRepGraph_NodeId::Kind theKind) const
 Return the next UID counter for a given node kind.
 
void SetNextNodeUIDCounter (BRepGraph_NodeId::Kind theKind, uint32_t theCounter)
 Override the next UID counter for a given node kind.
 
uint32_t NextRefUIDCounter (BRepGraph_RefId::Kind theKind) const
 Return the next UID counter for a given reference kind.
 
void SetNextRefUIDCounter (BRepGraph_RefId::Kind theKind, uint32_t theCounter)
 Override the next UID counter for a given reference kind.
 
BRepGraph_UID AllocateNodeUID (BRepGraph_NodeId theNodeId)
 Allocate a node UID: write counter into the entity, bind reverse map, advance counter.
 
BRepGraph_RefUID AllocateRefUID (BRepGraph_RefId theRefId)
 Allocate a reference UID: write counter into the ref, bind reverse map, advance counter.
 
uint32_t Generation () const
 Return the current graph generation used by VersionStamp staleness checks.
 
void SetGeneration (const uint32_t theGeneration)
 Override the current graph generation.
 
void IncrementGeneration ()
 Increment the graph generation after a structural mutation batch.
 
const Standard_GUIDGraphGUID () const
 Return the stable graph instance GUID.
 
void SetGraphGUID (const Standard_GUID &theGuid)
 Override the stable graph instance GUID.
 
bool DeferredMode () const
 Return whether invalidation is currently deferred.
 
void SetDeferredMode (const bool theEnabled)
 Enable or disable deferred invalidation mode.
 
uint32_t PropagationWave () const
 Return the current propagation wave id used to avoid revisiting parents.
 
uint32_t AdvancePropagationWave ()
 Increment the propagation wave and return the new value.
 
void IncrementPropagationWave ()
 Increment the propagation wave without reading it back.
 
uint32_t RemoveSubgraphDepth () const
 Return the recursion depth of the active RemoveSubgraph cascade.
 
void IncrementRemoveSubgraphDepth ()
 Enter one nested RemoveSubgraph scope.
 
void DecrementRemoveSubgraphDepth ()
 Leave one nested RemoveSubgraph scope.
 
uint32_t NbVertices () const
 Returns the total number of vertex entities (including removed).
 
uint32_t NbEdges () const
 Returns the total number of edge entities (including removed).
 
uint32_t NbCoEdges () const
 Returns the total number of coedge entities (including removed).
 
uint32_t NbWires () const
 Returns the total number of wire entities (including removed).
 
uint32_t NbFaces () const
 Returns the total number of face entities (including removed).
 
uint32_t NbShells () const
 Returns the total number of shell entities (including removed).
 
uint32_t NbSolids () const
 Returns the total number of solid entities (including removed).
 
uint32_t NbCompounds () const
 Returns the total number of compound entities (including removed).
 
uint32_t NbCompSolids () const
 Returns the total number of compsolid entities (including removed).
 
uint32_t NbProducts () const
 Returns the total number of product entities (including removed).
 
uint32_t NbOccurrences () const
 Returns the total number of occurrence entities (including removed).
 
uint32_t NbShellRefs () const
 Returns the total number of shell reference entries (including removed).
 
uint32_t NbFaceRefs () const
 Returns the total number of face reference entries (including removed).
 
uint32_t NbWireRefs () const
 Returns the total number of wire reference entries (including removed).
 
uint32_t NbVertexRefs () const
 Returns the total number of vertex reference entries (including removed).
 
uint32_t NbSolidRefs () const
 Returns the total number of solid reference entries (including removed).
 
uint32_t NbChildRefs () const
 Returns the total number of child reference entries (including removed).
 
uint32_t NbOccurrenceRefs () const
 Returns the total number of occurrence reference entries (including removed).
 
uint32_t NbActiveVertices () const
 Returns the number of active vertex entities (excluding removed).
 
uint32_t NbActiveEdges () const
 Returns the number of active edge entities (excluding removed).
 
uint32_t NbActiveCoEdges () const
 Returns the number of active coedge entities (excluding removed).
 
uint32_t NbActiveWires () const
 Returns the number of active wire entities (excluding removed).
 
uint32_t NbActiveFaces () const
 Returns the number of active face entities (excluding removed).
 
uint32_t NbActiveShells () const
 Returns the number of active shell entities (excluding removed).
 
uint32_t NbActiveSolids () const
 Returns the number of active solid entities (excluding removed).
 
uint32_t NbActiveCompounds () const
 Returns the number of active compound entities (excluding removed).
 
uint32_t NbActiveCompSolids () const
 Returns the number of active compsolid entities (excluding removed).
 
uint32_t NbActiveProducts () const
 Returns the number of active product entities (excluding removed).
 
uint32_t NbActiveOccurrences () const
 Returns the number of active occurrence entities (excluding removed).
 
uint32_t NbActiveShellRefs () const
 Returns the number of active shell reference entries (excluding removed).
 
uint32_t NbActiveFaceRefs () const
 Returns the number of active face reference entries (excluding removed).
 
uint32_t NbActiveWireRefs () const
 Returns the number of active wire reference entries (excluding removed).
 
uint32_t NbActiveVertexRefs () const
 Returns the number of active vertex reference entries (excluding removed).
 
uint32_t NbActiveSolidRefs () const
 Returns the number of active solid reference entries (excluding removed).
 
uint32_t NbActiveChildRefs () const
 Returns the number of active child reference entries (excluding removed).
 
uint32_t NbActiveOccurrenceRefs () const
 Returns the number of active occurrence reference entries (excluding removed).
 
bool MarkRemoved (const BRepGraph_NodeId theNodeId)
 Mark an entity node as removed and decrement its active counter once.
 
bool MarkRemovedRef (const BRepGraph_RefId theRefId)
 Mark a reference entry as removed and decrement its active counter once.
 
uint32_t NbEdgeCurves3D () const
 Returns the number of edge 3D curve use records.
 
uint32_t NbEdgePolygons3D () const
 Returns the number of edge 3D polygon use records.
 
uint32_t NbCoEdgeCurves2D () const
 Returns the number of coedge 2D curve use records.
 
uint32_t NbCoEdgePolygons2D () const
 Returns the number of coedge 2D polygon use records.
 
uint32_t NbCoEdgePolygonsOnTri () const
 Returns the number of coedge polygon-on-triangulation use records.
 
uint32_t NbFaceSurfaces () const
 Returns the number of face surface use records.
 
uint32_t NbFaceTriangulations () const
 Returns the number of face triangulation use records.
 
uint32_t NbActiveEdgeCurves3D () const
 Returns the number of active (parent-valid) edge 3D curve use records.
 
uint32_t NbActiveCoEdgeCurves2D () const
 Returns the number of active (parent-valid) coedge 2D curve use records.
 
uint32_t NbActiveFaceSurfaces () const
 Returns the number of active (parent-valid) face surface use records.
 
uint32_t NbActiveFaceTriangulations () const
 Returns the number of active (parent-valid) face triangulation use records.
 
uint32_t NbActiveEdgePolygons3D () const
 Returns the number of active (parent-valid) edge 3D polygon use records.
 
uint32_t NbActiveCoEdgePolygons2D () const
 Returns the number of active (parent-valid) coedge 2D polygon use records.
 
uint32_t NbActiveCoEdgePolygonsOnTri () const
 Returns the number of active (parent-valid) coedge polygon-on-triangulation use records.
 
const BRepGraphInc::EdgeCurve3DRepEdgeCurve3DRep (const BRepGraph_EdgeCurve3DRepId theId) const
 Returns the edge 3D curve use at the given id.
 
BRepGraphInc::EdgeCurve3DRepChangeEdgeCurve3DRep (const BRepGraph_EdgeCurve3DRepId theId)
 Returns a mutable reference to the edge 3D curve use at the given id.
 
const BRepGraphInc::EdgePolygon3DRepEdgePolygon3DRep (const BRepGraph_EdgePolygon3DRepId theId) const
 Returns the edge 3D polygon use at the given id.
 
BRepGraphInc::EdgePolygon3DRepChangeEdgePolygon3DRep (const BRepGraph_EdgePolygon3DRepId theId)
 Returns a mutable reference to the edge 3D polygon use at the given id.
 
const BRepGraphInc::CoEdgeCurve2DRepCoEdgeCurve2DRep (const BRepGraph_CoEdgeCurve2DRepId theId) const
 Returns the coedge 2D curve use at the given id.
 
BRepGraphInc::CoEdgeCurve2DRepChangeCoEdgeCurve2DRep (const BRepGraph_CoEdgeCurve2DRepId theId)
 Returns a mutable reference to the coedge 2D curve use at the given id.
 
const BRepGraphInc::CoEdgePolygon2DRepCoEdgePolygon2DRep (const BRepGraph_CoEdgePolygon2DRepId theId) const
 Returns the coedge 2D polygon use at the given id.
 
BRepGraphInc::CoEdgePolygon2DRepChangeCoEdgePolygon2DRep (const BRepGraph_CoEdgePolygon2DRepId theId)
 Returns a mutable reference to the coedge 2D polygon use at the given id.
 
const BRepGraphInc::CoEdgePolygonOnTriRepCoEdgePolygonOnTriRep (const BRepGraph_CoEdgePolygonOnTriRepId theId) const
 Returns the coedge polygon-on-triangulation use at the given id.
 
BRepGraphInc::CoEdgePolygonOnTriRepChangeCoEdgePolygonOnTriRep (const BRepGraph_CoEdgePolygonOnTriRepId theId)
 Returns a mutable reference to the coedge polygon-on-triangulation use at the given id.
 
const BRepGraphInc::FaceSurfaceRepFaceSurfaceRep (const BRepGraph_FaceSurfaceRepId theId) const
 Returns the face surface use at the given id.
 
BRepGraphInc::FaceSurfaceRepChangeFaceSurfaceRep (const BRepGraph_FaceSurfaceRepId theId)
 Returns a mutable reference to the face surface use at the given id.
 
const BRepGraphInc::FaceTriangulationRepFaceTriangulationRep (const BRepGraph_FaceTriangulationRepId theId) const
 Returns the face triangulation use at the given id.
 
BRepGraphInc::FaceTriangulationRepChangeFaceTriangulationRep (const BRepGraph_FaceTriangulationRepId theId)
 Returns a mutable reference to the face triangulation use at the given id.
 
BRepGraph_EdgeCurve3DRepId AppendEdgeCurve3DRep ()
 Appends a new edge 3D curve use record and returns its id.
 
BRepGraph_EdgePolygon3DRepId AppendEdgePolygon3DRep ()
 Appends a new edge 3D polygon use record and returns its id.
 
BRepGraph_CoEdgeCurve2DRepId AppendCoEdgeCurve2DRep ()
 Appends a new coedge 2D curve use record and returns its id.
 
BRepGraph_CoEdgePolygon2DRepId AppendCoEdgePolygon2DRep ()
 Appends a new coedge 2D polygon use record and returns its id.
 
BRepGraph_CoEdgePolygonOnTriRepId AppendCoEdgePolygonOnTriRep ()
 Appends a new coedge polygon-on-triangulation use record and returns its id.
 
BRepGraph_FaceSurfaceRepId AppendFaceSurfaceRep ()
 Appends a new face surface use record and returns its id.
 
BRepGraph_FaceTriangulationRepId AppendFaceTriangulationRep ()
 Appends a new face triangulation use record and returns its id.
 
bool MarkRemoved (const BRepGraph_RepId theRepId)
 Mark a representation-use record as removed and decrement its active counter once.
 
void SetRemoved (const BRepGraph_RepId theRepId, const bool theVal)
 Set or clear the soft-removal flag for a representation-use record.
 
const BRepGraphInc::VertexDefVertex (const BRepGraph_VertexId theVertex) const
 Returns the vertex entity at the given typed id.
 
const BRepGraphInc::EdgeDefEdge (const BRepGraph_EdgeId theEdge) const
 Returns the edge entity at the given typed id.
 
const BRepGraphInc::CoEdgeDefCoEdge (const BRepGraph_CoEdgeId theCoEdge) const
 Returns the coedge entity at the given typed id.
 
const BRepGraphInc::WireDefWire (const BRepGraph_WireId theWire) const
 Returns the wire entity at the given typed id.
 
const BRepGraphInc::FaceDefFace (const BRepGraph_FaceId theFace) const
 Returns the face entity at the given typed id.
 
const BRepGraphInc::ShellDefShell (const BRepGraph_ShellId theShell) const
 Returns the shell entity at the given typed id.
 
const BRepGraphInc::SolidDefSolid (const BRepGraph_SolidId theSolid) const
 Returns the solid entity at the given typed id.
 
const BRepGraphInc::CompoundDefCompound (const BRepGraph_CompoundId theCompound) const
 Returns the compound entity at the given typed id.
 
const BRepGraphInc::CompSolidDefCompSolid (const BRepGraph_CompSolidId theCompSolid) const
 Returns the compsolid entity at the given typed id.
 
const BRepGraphInc::ProductDefProduct (const BRepGraph_ProductId theProduct) const
 Returns the product entity at the given typed id.
 
const BRepGraphInc::OccurrenceDefOccurrence (const BRepGraph_OccurrenceId theOccurrence) const
 Returns the occurrence entity at the given typed id.
 
const BRepGraphInc::ShellRefShellRef (const BRepGraph_ShellRefId theRefId) const
 Returns the shell reference entry at the given typed id.
 
const BRepGraphInc::FaceRefFaceRef (const BRepGraph_FaceRefId theRefId) const
 Returns the face reference entry at the given typed id.
 
const BRepGraphInc::WireRefWireRef (const BRepGraph_WireRefId theRefId) const
 Returns the wire reference entry at the given typed id.
 
const BRepGraphInc::VertexRefVertexRef (const BRepGraph_VertexRefId theRefId) const
 Returns the vertex reference entry at the given typed id.
 
const BRepGraphInc::SolidRefSolidRef (const BRepGraph_SolidRefId theRefId) const
 Returns the solid reference entry at the given typed id.
 
const BRepGraphInc::ChildRefChildRef (const BRepGraph_ChildRefId theRefId) const
 Returns the child reference entry at the given typed id.
 
const BRepGraphInc::OccurrenceRefOccurrenceRef (const BRepGraph_OccurrenceRefId theRefId) const
 Returns the occurrence reference entry at the given typed id.
 
BRepGraphInc::VertexDefChangeVertex (const BRepGraph_VertexId theVertex)
 Returns a mutable reference to the vertex entity at the given typed id.
 
BRepGraphInc::EdgeDefChangeEdge (const BRepGraph_EdgeId theEdge)
 Returns a mutable reference to the edge entity at the given typed id.
 
BRepGraphInc::CoEdgeDefChangeCoEdge (const BRepGraph_CoEdgeId theCoEdge)
 Returns a mutable reference to the coedge entity at the given typed id.
 
BRepGraphInc::WireDefChangeWire (const BRepGraph_WireId theWire)
 Returns a mutable reference to the wire entity at the given typed id.
 
BRepGraphInc::FaceDefChangeFace (const BRepGraph_FaceId theFace)
 Returns a mutable reference to the face entity at the given typed id.
 
BRepGraphInc::ShellDefChangeShell (const BRepGraph_ShellId theShell)
 Returns a mutable reference to the shell entity at the given typed id.
 
BRepGraphInc::SolidDefChangeSolid (const BRepGraph_SolidId theSolid)
 Returns a mutable reference to the solid entity at the given typed id.
 
BRepGraphInc::CompoundDefChangeCompound (const BRepGraph_CompoundId theCompound)
 Returns a mutable reference to the compound entity at the given typed id.
 
BRepGraphInc::CompSolidDefChangeCompSolid (const BRepGraph_CompSolidId theCompSolid)
 Returns a mutable reference to the compsolid entity at the given typed id.
 
BRepGraphInc::ProductDefChangeProduct (const BRepGraph_ProductId theProduct)
 Returns a mutable reference to the product entity at the given typed id.
 
BRepGraphInc::OccurrenceDefChangeOccurrence (const BRepGraph_OccurrenceId theOccurrence)
 Returns a mutable reference to the occurrence entity at the given typed id.
 
BRepGraphInc::ShellRefChangeShellRef (const BRepGraph_ShellRefId theRefId)
 Returns a mutable reference to the shell reference entry at the given typed id.
 
BRepGraphInc::FaceRefChangeFaceRef (const BRepGraph_FaceRefId theRefId)
 Returns a mutable reference to the face reference entry at the given typed id.
 
BRepGraphInc::WireRefChangeWireRef (const BRepGraph_WireRefId theRefId)
 Returns a mutable reference to the wire reference entry at the given typed id.
 
BRepGraphInc::VertexRefChangeVertexRef (const BRepGraph_VertexRefId theRefId)
 Returns a mutable reference to the vertex reference entry at the given typed id.
 
BRepGraphInc::SolidRefChangeSolidRef (const BRepGraph_SolidRefId theRefId)
 Returns a mutable reference to the solid reference entry at the given typed id.
 
BRepGraphInc::ChildRefChangeChildRef (const BRepGraph_ChildRefId theRefId)
 Returns a mutable reference to the child reference entry at the given typed id.
 
BRepGraphInc::OccurrenceRefChangeOccurrenceRef (const BRepGraph_OccurrenceRefId theRefId)
 Returns a mutable reference to the occurrence reference entry at the given typed id.
 
const BRepGraphInc::FaceRelationsFaceRelations (const BRepGraph_FaceId theId) const
 Return the face relations for a given face identifier.
 
const BRepGraphInc::WireRelationsWireRelations (const BRepGraph_WireId theId) const
 Return the wire relations for a given wire identifier.
 
const BRepGraphInc::EdgeRelationsEdgeRelations (const BRepGraph_EdgeId theId) const
 Return the edge relations for a given edge identifier.
 
const BRepGraphInc::ShellRelationsShellRelations (const BRepGraph_ShellId theId) const
 Return the shell relations for a given shell identifier.
 
const BRepGraphInc::SolidRelationsSolidRelations (const BRepGraph_SolidId theId) const
 Return the solid relations for a given solid identifier.
 
const BRepGraphInc::CompoundRelationsCompoundRelations (const BRepGraph_CompoundId theId) const
 Return the compound relations for a given compound identifier.
 
const BRepGraphInc::CompSolidRelationsCompSolidRelations (const BRepGraph_CompSolidId theId) const
 Return the compsolid relations for a given compsolid identifier.
 
const BRepGraphInc::VertexRelationsVertexRelations (const BRepGraph_VertexId theId) const
 Return the vertex relations for a given vertex identifier.
 
const BRepGraphInc::ProductRelationsProductRelations (const BRepGraph_ProductId theId) const
 Return the product relations for a given product identifier.
 
const BRepGraphInc::OccurrenceRelationsOccurrenceRelations (const BRepGraph_OccurrenceId theId) const
 Return the occurrence relations for a given occurrence identifier.
 
const NCollection_LinearVector< BRepGraph_ChildRefId > & CompoundRefsOfNode (const BRepGraph_NodeId theNode) const
 Return the compound child reference identifiers that point to a given node.
 
const NCollection_LinearVector< BRepGraph_OccurrenceRefId > & OccurrenceRefsOfNode (const BRepGraph_NodeId theNode) const
 Return the occurrence reference identifiers that point to a given node.
 
BRepGraph_VertexId AppendVertex ()
 Appends a new vertex entity and returns its typed id.
 
BRepGraph_EdgeId AppendEdge ()
 Appends a new edge entity and returns its typed id.
 
BRepGraph_CoEdgeId AppendCoEdge ()
 Appends a new coedge entity and returns its typed id.
 
BRepGraph_WireId AppendWire ()
 Appends a new wire entity and returns its typed id.
 
BRepGraph_FaceId AppendFace ()
 Appends a new face entity and returns its typed id.
 
BRepGraph_ShellId AppendShell ()
 Appends a new shell entity and returns its typed id.
 
BRepGraph_SolidId AppendSolid ()
 Appends a new solid entity and returns its typed id.
 
BRepGraph_CompoundId AppendCompound ()
 Appends a new compound entity and returns its typed id.
 
BRepGraph_CompSolidId AppendCompSolid ()
 Appends a new compsolid entity and returns its typed id.
 
BRepGraph_ProductId AppendProduct ()
 Appends a new product entity and returns its typed id.
 
BRepGraph_OccurrenceId AppendOccurrence ()
 Appends a new occurrence entity and returns its typed id.
 
BRepGraph_ShellRefId AppendShellRef ()
 Appends a new shell reference entry and returns its typed id.
 
BRepGraph_FaceRefId AppendFaceRef ()
 Appends a new face reference entry and returns its typed id.
 
BRepGraph_WireRefId AppendWireRef ()
 Appends a new wire reference entry and returns its typed id.
 
BRepGraph_VertexRefId AppendVertexRef ()
 Appends a new vertex reference entry and returns its typed id.
 
BRepGraph_SolidRefId AppendSolidRef ()
 Appends a new solid reference entry and returns its typed id.
 
BRepGraph_ChildRefId AppendChildRef ()
 Appends a new child reference entry and returns its typed id.
 
BRepGraph_OccurrenceRefId AppendOccurrenceRef ()
 Appends a new occurrence reference entry and returns its typed id.
 
BRepGraph_CoEdgeId CreateCoEdgeUse (const BRepGraph_WireId theParentWireId, const BRepGraph_EdgeId theChildEdgeId, const BRepGraph_FaceId theFaceId, const BRepGraphInc::ParityOrientation theOrientation)
 Create a coedge use record binding an edge to a wire within a face context.
 
void AttachEdgeToVertex (const BRepGraph_EdgeId theEdgeId, const BRepGraph_VertexId theVertexId)
 Attach an edge to a vertex by creating a vertex reference.
 
BRepGraph_WireRefId AttachWireToFace (const BRepGraph_FaceId theParentFaceId, const BRepGraph_WireId theChildWireId, const BRepGraphInc::ParityOrientation theOrientation=TopAbs_FORWARD)
 Attach a wire to a face by creating a wire reference.
 
BRepGraph_FaceRefId AttachFaceToShell (const BRepGraph_ShellId theParentShellId, const BRepGraph_FaceId theChildFaceId, const BRepGraphInc::ParityOrientation theOrientation=TopAbs_FORWARD)
 Attach a face to a shell by creating a face reference.
 
BRepGraph_ShellRefId AttachShellToSolid (const BRepGraph_SolidId theParentSolidId, const BRepGraph_ShellId theChildShellId, const BRepGraphInc::ParityOrientation theOrientation=TopAbs_FORWARD)
 Attach a shell to a solid by creating a shell reference.
 
BRepGraph_SolidRefId AttachSolidToCompSolid (const BRepGraph_CompSolidId theParentCompSolidId, const BRepGraph_SolidId theChildSolidId, const BRepGraphInc::ParityOrientation theOrientation=TopAbs_FORWARD)
 Attach a solid to a compsolid by creating a solid reference.
 
BRepGraph_ChildRefId AttachChildToCompound (const BRepGraph_CompoundId theParentCompoundId, const BRepGraph_NodeId theChildNodeId, const TopLoc_Location &theLocation=TopLoc_Location(), const BRepGraphInc::ParityOrientation theOrientation=TopAbs_FORWARD)
 Attach a child node to a compound by creating a child reference.
 
BRepGraph_OccurrenceRefId AttachOccurrenceToProduct (const BRepGraph_ProductId theParentProductId, const BRepGraph_OccurrenceId theChildOccurrenceId, const TopLoc_Location &theLocation=TopLoc_Location())
 Attach an occurrence to a product by creating an occurrence reference.
 
bool DetachCoEdgeUse (const BRepGraph_WireId theParentWireId, const BRepGraph_CoEdgeId theCoEdgeId)
 Detach a coedge use from its parent wire.
 
bool ReplaceCoEdgeUseWithPair (const BRepGraph_WireId theParentWireId, const BRepGraph_CoEdgeId theOldCoEdgeId, const BRepGraph_CoEdgeId theNewFirstCoEdgeId, const BRepGraph_CoEdgeId theNewSecondCoEdgeId)
 Replace a single coedge with a pair of new coedges in a wire.
 
bool DetachWireFromFace (const BRepGraph_FaceId theParentFaceId, const BRepGraph_WireRefId theRefId)
 Detach a wire reference from its parent face.
 
bool DetachFaceFromShell (const BRepGraph_ShellId theParentShellId, const BRepGraph_FaceRefId theRefId)
 Detach a face reference from its parent shell.
 
bool DetachShellFromSolid (const BRepGraph_SolidId theParentSolidId, const BRepGraph_ShellRefId theRefId)
 Detach a shell reference from its parent solid.
 
bool DetachSolidFromCompSolid (const BRepGraph_CompSolidId theParentCompSolidId, const BRepGraph_SolidRefId theRefId)
 Detach a solid reference from its parent compsolid.
 
bool DetachChildFromCompound (const BRepGraph_CompoundId theParentCompoundId, const BRepGraph_ChildRefId theRefId)
 Detach a child reference from its parent compound.
 
bool DetachOccurrenceFromProduct (const BRepGraph_ProductId theParentProductId, const BRepGraph_OccurrenceRefId theRefId)
 Detach an occurrence reference from its parent product.
 
void RebindOccurrenceChild (const BRepGraph_OccurrenceId theOccurrence, const BRepGraph_NodeId theOldChild, const BRepGraph_NodeId theNewChild)
 Rebind the child node of an occurrence to a new node.
 
void RebindVertexEdge (const BRepGraph_VertexId theOldVertex, const BRepGraph_VertexId theNewVertex, const BRepGraph_EdgeId theEdge, const BRepGraph_VertexRefId theExcludingRef)
 Rebind vertex edge references from one vertex to another, excluding a specific ref.
 
void RebindVertexRef (const BRepGraph_VertexRefId theRefId, const BRepGraph_VertexId theOldVertex, const BRepGraph_VertexId theNewVertex)
 Rebind a vertex reference to point to a new vertex.
 
void RebindCoEdgeEdge (const BRepGraph_CoEdgeId theCoEdge, const BRepGraph_EdgeId theOldEdge, const BRepGraph_EdgeId theNewEdge)
 Rebind a coedge to reference a different edge.
 
void RebindWireRef (const BRepGraph_WireRefId theRefId, const BRepGraph_WireId theOldWire, const BRepGraph_WireId theNewWire)
 Rebind a wire reference to point to a new wire.
 
void RebindFaceRef (const BRepGraph_FaceRefId theRefId, const BRepGraph_FaceId theOldFace, const BRepGraph_FaceId theNewFace)
 Rebind a face reference to point to a new face.
 
void RebindShellRef (const BRepGraph_ShellRefId theRefId, const BRepGraph_ShellId theOldShell, const BRepGraph_ShellId theNewShell)
 Rebind a shell reference to point to a new shell.
 
void RebindSolidRef (const BRepGraph_SolidRefId theRefId, const BRepGraph_SolidId theOldSolid, const BRepGraph_SolidId theNewSolid)
 Rebind a solid reference to point to a new solid.
 
void RebindChildRef (const BRepGraph_ChildRefId theRefId, const BRepGraph_NodeId theOldChild, const BRepGraph_NodeId theNewChild)
 Rebind a child reference to point to a new child node.
 
void RebindOccurrenceRef (const BRepGraph_OccurrenceRefId theRefId, const BRepGraph_OccurrenceId theOldOccurrence, const BRepGraph_OccurrenceId theNewOccurrence)
 Rebind an occurrence reference to point to a new occurrence.
 
void ReverseWireCoEdges (const BRepGraph_WireId theWireId)
 Reverse the order of coedges in a wire.
 
void SetWireCoEdges (const BRepGraph_WireId theWireId, const NCollection_Array1< BRepGraph_CoEdgeId > &theCoEdgeIds)
 Replace the coedge list of a wire with a new set.
 
void SetFaceWireRefs (const BRepGraph_FaceId theFaceId, const NCollection_Array1< BRepGraph_WireRefId > &theWireRefIds)
 Replace the wire reference list of a face with a new set.
 
void SetShellFaceRefs (const BRepGraph_ShellId theShellId, const NCollection_Array1< BRepGraph_FaceRefId > &theFaceRefIds)
 Replace the face reference list of a shell with a new set.
 
void SetSolidShellRefs (const BRepGraph_SolidId theSolidId, const NCollection_Array1< BRepGraph_ShellRefId > &theShellRefIds)
 Replace the shell reference list of a solid with a new set.
 
void SetCompSolidSolidRefs (const BRepGraph_CompSolidId theCompSolidId, const NCollection_Array1< BRepGraph_SolidRefId > &theSolidRefIds)
 Replace the solid reference list of a compsolid with a new set.
 
void SetCompoundChildRefs (const BRepGraph_CompoundId theCompoundId, const NCollection_Array1< BRepGraph_ChildRefId > &theChildRefIds)
 Replace the child reference list of a compound with a new set.
 
void SetProductOccurrenceRefs (const BRepGraph_ProductId theProductId, const NCollection_Array1< BRepGraph_OccurrenceRefId > &theOccurrenceRefIds)
 Replace the occurrence reference list of a product with a new set.
 
const BRepGraphInc::BaseRefBaseRef (const BRepGraph_RefId theRefId) const
 Return the BaseRef portion of any ref entry by generic RefId.
 
BRepGraphInc::BaseRefChangeBaseRef (const BRepGraph_RefId theRefId)
 Return the mutable BaseRef portion of any ref entry by generic RefId.
 
BRepGraph_NodeId FindNodeIdByUID (const BRepGraph_UID &theUID) const
 Resolve an active node UID through storage reverse maps.
 
BRepGraph_RefId FindRefIdByUID (const BRepGraph_RefUID &theUID) const
 Resolve an active reference UID through storage reverse maps.
 
BRepGraph_NodeId FindDefinitionByShape (const TopoDS_Shape &theShape) const
 Returns the node id bound to the given shape definition key, or invalid if not bound.
 
bool HasShapeBinding (const TopoDS_Shape &theShape) const
 Returns true if the given shape definition key is bound to a node.
 
void SetDefinitionShapeBinding (const TopoDS_Shape &theShape, const BRepGraph_NodeId theNodeId)
 Set or update the shape-to-node binding. Uses replacement semantics: binds if absent, updates if already bound.
 
bool RemoveDefinitionShapeBinding (const TopoDS_Shape &theShape, const BRepGraph_NodeId theExpectedNodeId)
 Remove the shape-to-node binding only if it points to the expected node. Returns true if the binding was removed.
 
TopoDS_Shape FindOriginal (const BRepGraph_NodeId theNodeId) const
 Back-reference to the construction-time TopoDS_Shape key a node was built from. Only populated during graph construction; absent bindings are a valid state.
 
bool HasOriginal (const BRepGraph_NodeId theNodeId) const
 Returns true if the given node id has an original shape binding.
 
void BindOriginal (const BRepGraph_NodeId theNodeId, const TopoDS_Shape &theShape)
 Binds the given node id to its construction-time shape key.
 
void UnBindOriginal (const BRepGraph_NodeId theNodeId)
 Removes the original shape binding for the given node id.
 
template<typename FuncT >
void ForEachShapeBinding (FuncT &&theFunc) const
 Iterate all shape-to-NodeId bindings, invoking theFunc(shape, NodeId) for each entry. Used by Compact to rebuild the map after the rebuild-and-swap.
 
template<typename FuncT >
void ForEachOriginalBinding (FuncT &&theFunc) const
 Iterate all NodeId-to-OriginalShape bindings, invoking theFunc(NodeId, Shape) for each entry. Used by Compact to rebuild the map after the rebuild-and-swap.
 
void CopyShapeBindingsFrom (const BRepGraphInc_Storage &theSource)
 Copy shape-to-NodeId and Original shape bindings from another storage. Used by identity copy to preserve shape reconstruction bindings.
 
const NCollection_FlatDataMap< BRepGraph_NodeId, CachedShape > & CurrentShapes () const
 Return the generation-validated node-to-shape reconstruction cache.
 
NCollection_FlatDataMap< BRepGraph_NodeId, CachedShape > & ChangeCurrentShapes ()
 Return the mutable generation-validated node-to-shape reconstruction cache.
 
std::shared_mutex & CurrentShapesMutex () const
 Return the mutex protecting the reconstruction cache.
 
void ClearCurrentShapes ()
 Clear the generation-validated shape reconstruction cache.
 
void UnbindCurrentShape (const BRepGraph_NodeId theNode)
 Remove one entry from the generation-validated shape reconstruction cache.
 
void ClearDeferredQueues ()
 Clear deferred invalidation queues and release their batch allocator.
 
void Clear ()
 Clear all storage.
 
void PrepareForLoad (const BRepGraphInc_Load::Counts &theCounts)
 Prepare fixed-size destination ranges for indexed load.
 
void SetActiveCounts (const BRepGraphInc_Load::Counts &theCounts)
 Override active-slot counters after a trusted indexed load path.
 
BRepGraphInc_Load::Counts Counts () const
 Build a Counts struct from current allocated slot counts.
 
BRepGraphInc_Load::Counts ActiveCounts () const
 Build a Counts struct from current active (non-removed) counts.
 
void RecountActiveCounts ()
 Recount active-slot counters from current IsRemoved flags without rebuilding indexes.
 
void RebuildDerivedRelations ()
 Rebuild centralized relation tables from entity and reference endpoints. This is intended for raw load, compact, and explicit repair paths only; editor mutations maintain relation containers incrementally.
 
void RebuildDerivedRelationsPreservingActiveCounts ()
 Rebuild relation maps after a trusted load already restored active counts.
 
void CopyRemovedFlagsFrom (const BRepGraphInc_Storage &theSource)
 Bulk-copy all RemovedFlags bit-planes from theSource. Source must have been loaded with the same entity counts (identity copy path).
 
bool ValidateRelations () const
 Debug: verify relation-table consistency against entity/reference endpoints.
 
bool ValidateWireCoEdgeOrder (const BRepGraph_WireId theWireId) const
 Verify coedge ordering consistency for a specific wire.
 
bool ValidateWireCoEdgeOrders () const
 Verify coedge ordering consistency for all wires.
 
WireCoEdgeOrderStatus CanonicalizeWireCoEdgeOrderStatus (const BRepGraph_WireId theWireId)
 Canonicalize the coedge ordering of a wire and report the achieved order quality.
 
bool CanonicalizeWireCoEdgeOrder (const BRepGraph_WireId theWireId)
 Canonicalize the coedge ordering of a wire to a consistent form.
 
void RebuildUIDReverseIndexes ()
 Rebuild UID reverse indexes (UID->NodeId, RefUID->RefId) from the current UID vectors. Clears indexes and resets allocators before rebuilding. Called after Compact, Load, etc. where UID vectors have been modified externally.
 
void MarkUIDReverseIndexesDirty ()
 Mark UID reverse indexes stale after bulk UID-vector replacement.
 
void EnsureUIDReverseIndex () const
 Lazily rebuild the node UID reverse index if it is stale.
 
void EnsureRefUIDReverseIndex () const
 Lazily rebuild the reference UID reverse index if it is stale.
 
void CopyDerivedRelationsFrom (const BRepGraphInc_Storage &theSource)
 Copy all forward/reverse relation vectors directly from theSource. Used by identity copy to avoid the clear+rebuild cycle.
 
template<typename T >
bool IsRemoved (const T theId) const
 Return true if the entity identified by the given typed ID is soft-removed.
 
template<typename T >
void SetRemoved (const T theId, const bool theVal)
 Set or clear the soft-removal flag for the entity identified by the given typed ID.
 
template<typename T >
bool IsOwned (const T theId) const
 Return true if the entity identified by the given typed ID has a registered owner.
 
template<typename T >
void SetOwned (const T theId, const bool theVal)
 Set or clear the ownership flag for the entity identified by the given typed ID.
 
template<typename T >
bool IsGuarded (const T theId) const
 Return true if the entity identified by the given typed ID has an active MutGuard.
 
template<typename T >
void SetGuarded (const T theId)
 Register an active MutGuard on the entity identified by the given typed ID.
 
template<typename T >
void ClearGuarded (const T theId)
 Deregister an active MutGuard from the entity identified by the given typed ID.
 
bool HasCompoundParent (const BRepGraph_NodeId theNode) const
 Return true if the node identified by the given generic NodeId has a parent compound. Dispatches by node kind to the appropriate per-kind bitset.
 
bool HasOccurrenceParent (const BRepGraph_NodeId theNode) const
 Return true if the node identified by the given generic NodeId has a parent occurrence. Dispatches by node kind to the appropriate per-kind bitset.
 
bool IsGuarded (const BRepGraph_ItemId &theId) const
 Return true if the entity identified by the given generic item id has an active MutGuard.
 
void SetGuarded (const BRepGraph_ItemId &theId)
 Register an active MutGuard on the entity identified by the given generic item id.
 
void ClearGuarded (const BRepGraph_ItemId &theId)
 Deregister an active MutGuard from the entity identified by the given generic item id.
 
bool HasAnyGuard () const
 Return true if any entity in any store has an active MutGuard. Used to assert no guards are active before Clear().
 

Detailed Description

Central backend storage container for the incidence-table topology model.

Holds all entity vectors (Vertex through Occurrence), representation vectors (Surface, Curve3D, Curve2D, Triangulation, Polygon), relation tables for connectivity navigation, TShape deduplication maps, original shape bindings, and per-kind UID vectors. Provides typed accessors enforcing compile-time safety for backend code. External callers should normally use the BRepGraph facade rather than reaching into this storage directly. BRepGraphInc_Populate has friend access for efficient bulk writes during graph population.

Member Enumeration Documentation

◆ WireCoEdgeOrderStatus

Result of wire coedge order canonicalization.

Enumerator
Connected 

Stored order was already connected.

Reordered 

Stored coedges were reordered into an exactly connected chain.

ToleranceOrdered 

Stored coedges were ordered using tolerance-equivalent endpoints.

Partial 

Stored coedges were grouped into best-effort connected runs.

InvalidInput 

Wire or coedge ownership/input data is invalid.

Constructor & Destructor Documentation

◆ BRepGraphInc_Storage()

BRepGraphInc_Storage::BRepGraphInc_Storage ( )

Construct an empty storage with no entities or representations.

◆ ~BRepGraphInc_Storage()

BRepGraphInc_Storage::~BRepGraphInc_Storage ( )

Clear allocator-backed containers before member destructors walk them.

Member Function Documentation

◆ ActiveCounts()

BRepGraphInc_Load::Counts BRepGraphInc_Storage::ActiveCounts ( ) const

Build a Counts struct from current active (non-removed) counts.

◆ AdvancePropagationWave()

uint32_t BRepGraphInc_Storage::AdvancePropagationWave ( )
inline

Increment the propagation wave and return the new value.

◆ AllocateNodeUID()

BRepGraph_UID BRepGraphInc_Storage::AllocateNodeUID ( BRepGraph_NodeId theNodeId)

Allocate a node UID: write counter into the entity, bind reverse map, advance counter.

◆ AllocateRefUID()

BRepGraph_RefUID BRepGraphInc_Storage::AllocateRefUID ( BRepGraph_RefId theRefId)

Allocate a reference UID: write counter into the ref, bind reverse map, advance counter.

◆ Allocator()

const occ::handle< NCollection_BaseAllocator > & BRepGraphInc_Storage::Allocator ( ) const
inline

Return the allocator used for backend storage.

◆ AppendChildRef()

BRepGraph_ChildRefId BRepGraphInc_Storage::AppendChildRef ( )
inline

Appends a new child reference entry and returns its typed id.

◆ AppendCoEdge()

BRepGraph_CoEdgeId BRepGraphInc_Storage::AppendCoEdge ( )
inline

Appends a new coedge entity and returns its typed id.

◆ AppendCoEdgeCurve2DRep()

BRepGraph_CoEdgeCurve2DRepId BRepGraphInc_Storage::AppendCoEdgeCurve2DRep ( )
inline

Appends a new coedge 2D curve use record and returns its id.

◆ AppendCoEdgePolygon2DRep()

BRepGraph_CoEdgePolygon2DRepId BRepGraphInc_Storage::AppendCoEdgePolygon2DRep ( )
inline

Appends a new coedge 2D polygon use record and returns its id.

◆ AppendCoEdgePolygonOnTriRep()

BRepGraph_CoEdgePolygonOnTriRepId BRepGraphInc_Storage::AppendCoEdgePolygonOnTriRep ( )
inline

Appends a new coedge polygon-on-triangulation use record and returns its id.

◆ AppendCompound()

BRepGraph_CompoundId BRepGraphInc_Storage::AppendCompound ( )
inline

Appends a new compound entity and returns its typed id.

◆ AppendCompSolid()

BRepGraph_CompSolidId BRepGraphInc_Storage::AppendCompSolid ( )
inline

Appends a new compsolid entity and returns its typed id.

◆ AppendEdge()

BRepGraph_EdgeId BRepGraphInc_Storage::AppendEdge ( )
inline

Appends a new edge entity and returns its typed id.

◆ AppendEdgeCurve3DRep()

BRepGraph_EdgeCurve3DRepId BRepGraphInc_Storage::AppendEdgeCurve3DRep ( )
inline

Appends a new edge 3D curve use record and returns its id.

◆ AppendEdgePolygon3DRep()

BRepGraph_EdgePolygon3DRepId BRepGraphInc_Storage::AppendEdgePolygon3DRep ( )
inline

Appends a new edge 3D polygon use record and returns its id.

◆ AppendFace()

BRepGraph_FaceId BRepGraphInc_Storage::AppendFace ( )
inline

Appends a new face entity and returns its typed id.

◆ AppendFaceRef()

BRepGraph_FaceRefId BRepGraphInc_Storage::AppendFaceRef ( )
inline

Appends a new face reference entry and returns its typed id.

◆ AppendFaceSurfaceRep()

BRepGraph_FaceSurfaceRepId BRepGraphInc_Storage::AppendFaceSurfaceRep ( )
inline

Appends a new face surface use record and returns its id.

◆ AppendFaceTriangulationRep()

BRepGraph_FaceTriangulationRepId BRepGraphInc_Storage::AppendFaceTriangulationRep ( )
inline

Appends a new face triangulation use record and returns its id.

◆ AppendOccurrence()

BRepGraph_OccurrenceId BRepGraphInc_Storage::AppendOccurrence ( )
inline

Appends a new occurrence entity and returns its typed id.

◆ AppendOccurrenceRef()

BRepGraph_OccurrenceRefId BRepGraphInc_Storage::AppendOccurrenceRef ( )
inline

Appends a new occurrence reference entry and returns its typed id.

◆ AppendProduct()

BRepGraph_ProductId BRepGraphInc_Storage::AppendProduct ( )
inline

Appends a new product entity and returns its typed id.

◆ AppendShell()

BRepGraph_ShellId BRepGraphInc_Storage::AppendShell ( )
inline

Appends a new shell entity and returns its typed id.

◆ AppendShellRef()

BRepGraph_ShellRefId BRepGraphInc_Storage::AppendShellRef ( )
inline

Appends a new shell reference entry and returns its typed id.

◆ AppendSolid()

BRepGraph_SolidId BRepGraphInc_Storage::AppendSolid ( )
inline

Appends a new solid entity and returns its typed id.

◆ AppendSolidRef()

BRepGraph_SolidRefId BRepGraphInc_Storage::AppendSolidRef ( )
inline

Appends a new solid reference entry and returns its typed id.

◆ AppendVertex()

BRepGraph_VertexId BRepGraphInc_Storage::AppendVertex ( )
inline

Appends a new vertex entity and returns its typed id.

◆ AppendVertexRef()

BRepGraph_VertexRefId BRepGraphInc_Storage::AppendVertexRef ( )
inline

Appends a new vertex reference entry and returns its typed id.

◆ AppendWire()

BRepGraph_WireId BRepGraphInc_Storage::AppendWire ( )
inline

Appends a new wire entity and returns its typed id.

◆ AppendWireRef()

BRepGraph_WireRefId BRepGraphInc_Storage::AppendWireRef ( )
inline

Appends a new wire reference entry and returns its typed id.

◆ AttachChildToCompound()

BRepGraph_ChildRefId BRepGraphInc_Storage::AttachChildToCompound ( const BRepGraph_CompoundId theParentCompoundId,
const BRepGraph_NodeId theChildNodeId,
const TopLoc_Location & theLocation = TopLoc_Location(),
const BRepGraphInc::ParityOrientation theOrientation = TopAbs_FORWARD )

Attach a child node to a compound by creating a child reference.

Parameters
[in]theParentCompoundIdparent compound identifier
[in]theChildNodeIdchild node identifier
[in]theLocationoptional location transformation
[in]theOrientationorientation within parent
Returns
the newly created child reference identifier

◆ AttachEdgeToVertex()

void BRepGraphInc_Storage::AttachEdgeToVertex ( const BRepGraph_EdgeId theEdgeId,
const BRepGraph_VertexId theVertexId )

Attach an edge to a vertex by creating a vertex reference.

Parameters
[in]theEdgeIdedge identifier
[in]theVertexIdvertex identifier

◆ AttachFaceToShell()

BRepGraph_FaceRefId BRepGraphInc_Storage::AttachFaceToShell ( const BRepGraph_ShellId theParentShellId,
const BRepGraph_FaceId theChildFaceId,
const BRepGraphInc::ParityOrientation theOrientation = TopAbs_FORWARD )

Attach a face to a shell by creating a face reference.

Parameters
[in]theParentShellIdparent shell identifier
[in]theChildFaceIdchild face identifier
[in]theOrientationorientation within parent
Returns
the newly created face reference identifier

◆ AttachOccurrenceToProduct()

BRepGraph_OccurrenceRefId BRepGraphInc_Storage::AttachOccurrenceToProduct ( const BRepGraph_ProductId theParentProductId,
const BRepGraph_OccurrenceId theChildOccurrenceId,
const TopLoc_Location & theLocation = TopLoc_Location() )

Attach an occurrence to a product by creating an occurrence reference.

Parameters
[in]theParentProductIdparent product identifier
[in]theChildOccurrenceIdchild occurrence identifier
[in]theLocationoptional location transformation
Returns
the newly created occurrence reference identifier

◆ AttachShellToSolid()

BRepGraph_ShellRefId BRepGraphInc_Storage::AttachShellToSolid ( const BRepGraph_SolidId theParentSolidId,
const BRepGraph_ShellId theChildShellId,
const BRepGraphInc::ParityOrientation theOrientation = TopAbs_FORWARD )

Attach a shell to a solid by creating a shell reference.

Parameters
[in]theParentSolidIdparent solid identifier
[in]theChildShellIdchild shell identifier
[in]theOrientationorientation within parent
Returns
the newly created shell reference identifier

◆ AttachSolidToCompSolid()

BRepGraph_SolidRefId BRepGraphInc_Storage::AttachSolidToCompSolid ( const BRepGraph_CompSolidId theParentCompSolidId,
const BRepGraph_SolidId theChildSolidId,
const BRepGraphInc::ParityOrientation theOrientation = TopAbs_FORWARD )

Attach a solid to a compsolid by creating a solid reference.

Parameters
[in]theParentCompSolidIdparent compsolid identifier
[in]theChildSolidIdchild solid identifier
[in]theOrientationorientation within parent
Returns
the newly created solid reference identifier

◆ AttachWireToFace()

BRepGraph_WireRefId BRepGraphInc_Storage::AttachWireToFace ( const BRepGraph_FaceId theParentFaceId,
const BRepGraph_WireId theChildWireId,
const BRepGraphInc::ParityOrientation theOrientation = TopAbs_FORWARD )

Attach a wire to a face by creating a wire reference.

Parameters
[in]theParentFaceIdparent face identifier
[in]theChildWireIdchild wire identifier
[in]theOrientationorientation within parent
Returns
the newly created wire reference identifier

◆ BaseRef()

const BRepGraphInc::BaseRef & BRepGraphInc_Storage::BaseRef ( const BRepGraph_RefId theRefId) const

Return the BaseRef portion of any ref entry by generic RefId.

Parameters
[in]theRefIdgeneric reference identifier
Returns
const reference to the BaseRef base of the ref entry

◆ BindOriginal()

void BRepGraphInc_Storage::BindOriginal ( const BRepGraph_NodeId theNodeId,
const TopoDS_Shape & theShape )

Binds the given node id to its construction-time shape key.

◆ CanonicalizeWireCoEdgeOrder()

bool BRepGraphInc_Storage::CanonicalizeWireCoEdgeOrder ( const BRepGraph_WireId theWireId)

Canonicalize the coedge ordering of a wire to a consistent form.

Parameters
[in]theWireIdwire identifier
Returns
true if canonicalization succeeded

◆ CanonicalizeWireCoEdgeOrderStatus()

WireCoEdgeOrderStatus BRepGraphInc_Storage::CanonicalizeWireCoEdgeOrderStatus ( const BRepGraph_WireId theWireId)

Canonicalize the coedge ordering of a wire and report the achieved order quality.

Parameters
[in]theWireIdwire identifier
Returns
canonicalization status

◆ ChangeBaseRef()

BRepGraphInc::BaseRef * BRepGraphInc_Storage::ChangeBaseRef ( const BRepGraph_RefId theRefId)

Return the mutable BaseRef portion of any ref entry by generic RefId.

Parameters
[in]theRefIdgeneric reference identifier
Returns
mutable pointer to the BaseRef base of the ref entry, or nullptr if not found

◆ ChangeChildRef()

BRepGraphInc::ChildRef & BRepGraphInc_Storage::ChangeChildRef ( const BRepGraph_ChildRefId theRefId)
inline

Returns a mutable reference to the child reference entry at the given typed id.

◆ ChangeCoEdge()

BRepGraphInc::CoEdgeDef & BRepGraphInc_Storage::ChangeCoEdge ( const BRepGraph_CoEdgeId theCoEdge)
inline

Returns a mutable reference to the coedge entity at the given typed id.

Parameters
[in]theCoEdgetyped coedge id

◆ ChangeCoEdgeCurve2DRep()

BRepGraphInc::CoEdgeCurve2DRep & BRepGraphInc_Storage::ChangeCoEdgeCurve2DRep ( const BRepGraph_CoEdgeCurve2DRepId theId)
inline

Returns a mutable reference to the coedge 2D curve use at the given id.

◆ ChangeCoEdgePolygon2DRep()

BRepGraphInc::CoEdgePolygon2DRep & BRepGraphInc_Storage::ChangeCoEdgePolygon2DRep ( const BRepGraph_CoEdgePolygon2DRepId theId)
inline

Returns a mutable reference to the coedge 2D polygon use at the given id.

◆ ChangeCoEdgePolygonOnTriRep()

BRepGraphInc::CoEdgePolygonOnTriRep & BRepGraphInc_Storage::ChangeCoEdgePolygonOnTriRep ( const BRepGraph_CoEdgePolygonOnTriRepId theId)
inline

Returns a mutable reference to the coedge polygon-on-triangulation use at the given id.

◆ ChangeCompound()

BRepGraphInc::CompoundDef & BRepGraphInc_Storage::ChangeCompound ( const BRepGraph_CompoundId theCompound)
inline

Returns a mutable reference to the compound entity at the given typed id.

Parameters
[in]theCompoundtyped compound id

◆ ChangeCompSolid()

BRepGraphInc::CompSolidDef & BRepGraphInc_Storage::ChangeCompSolid ( const BRepGraph_CompSolidId theCompSolid)
inline

Returns a mutable reference to the compsolid entity at the given typed id.

Parameters
[in]theCompSolidtyped comp-solid id

◆ ChangeCurrentShapes()

NCollection_FlatDataMap< BRepGraph_NodeId, CachedShape > & BRepGraphInc_Storage::ChangeCurrentShapes ( )
inline

Return the mutable generation-validated node-to-shape reconstruction cache.

◆ ChangeDeferredModified()

NCollection_LinearVector< BRepGraph_NodeId > & BRepGraphInc_Storage::ChangeDeferredModified ( )
inline

Return nodes accumulated during deferred invalidation.

◆ ChangeDeferredRefModified()

NCollection_LinearVector< BRepGraph_RefId > & BRepGraphInc_Storage::ChangeDeferredRefModified ( )
inline

Return refs accumulated during deferred invalidation.

◆ ChangeEdge()

BRepGraphInc::EdgeDef & BRepGraphInc_Storage::ChangeEdge ( const BRepGraph_EdgeId theEdge)
inline

Returns a mutable reference to the edge entity at the given typed id.

Parameters
[in]theEdgetyped edge id

◆ ChangeEdgeCurve3DRep()

BRepGraphInc::EdgeCurve3DRep & BRepGraphInc_Storage::ChangeEdgeCurve3DRep ( const BRepGraph_EdgeCurve3DRepId theId)
inline

Returns a mutable reference to the edge 3D curve use at the given id.

◆ ChangeEdgePolygon3DRep()

BRepGraphInc::EdgePolygon3DRep & BRepGraphInc_Storage::ChangeEdgePolygon3DRep ( const BRepGraph_EdgePolygon3DRepId theId)
inline

Returns a mutable reference to the edge 3D polygon use at the given id.

◆ ChangeFace()

BRepGraphInc::FaceDef & BRepGraphInc_Storage::ChangeFace ( const BRepGraph_FaceId theFace)
inline

Returns a mutable reference to the face entity at the given typed id.

Parameters
[in]theFacetyped face id

◆ ChangeFaceRef()

BRepGraphInc::FaceRef & BRepGraphInc_Storage::ChangeFaceRef ( const BRepGraph_FaceRefId theRefId)
inline

Returns a mutable reference to the face reference entry at the given typed id.

◆ ChangeFaceSurfaceRep()

BRepGraphInc::FaceSurfaceRep & BRepGraphInc_Storage::ChangeFaceSurfaceRep ( const BRepGraph_FaceSurfaceRepId theId)
inline

Returns a mutable reference to the face surface use at the given id.

◆ ChangeFaceTriangulationRep()

BRepGraphInc::FaceTriangulationRep & BRepGraphInc_Storage::ChangeFaceTriangulationRep ( const BRepGraph_FaceTriangulationRepId theId)
inline

Returns a mutable reference to the face triangulation use at the given id.

◆ ChangeOccurrence()

BRepGraphInc::OccurrenceDef & BRepGraphInc_Storage::ChangeOccurrence ( const BRepGraph_OccurrenceId theOccurrence)
inline

Returns a mutable reference to the occurrence entity at the given typed id.

Parameters
[in]theOccurrencetyped occurrence id

◆ ChangeOccurrenceRef()

BRepGraphInc::OccurrenceRef & BRepGraphInc_Storage::ChangeOccurrenceRef ( const BRepGraph_OccurrenceRefId theRefId)
inline

Returns a mutable reference to the occurrence reference entry at the given typed id.

◆ ChangeProduct()

BRepGraphInc::ProductDef & BRepGraphInc_Storage::ChangeProduct ( const BRepGraph_ProductId theProduct)
inline

Returns a mutable reference to the product entity at the given typed id.

Parameters
[in]theProducttyped product id

◆ ChangeRootProductIds()

NCollection_LinearVector< BRepGraph_ProductId > & BRepGraphInc_Storage::ChangeRootProductIds ( )
inline

Return products not referenced by any active occurrence.

◆ ChangeShell()

BRepGraphInc::ShellDef & BRepGraphInc_Storage::ChangeShell ( const BRepGraph_ShellId theShell)
inline

Returns a mutable reference to the shell entity at the given typed id.

Parameters
[in]theShelltyped shell id

◆ ChangeShellRef()

BRepGraphInc::ShellRef & BRepGraphInc_Storage::ChangeShellRef ( const BRepGraph_ShellRefId theRefId)
inline

Returns a mutable reference to the shell reference entry at the given typed id.

◆ ChangeSolid()

BRepGraphInc::SolidDef & BRepGraphInc_Storage::ChangeSolid ( const BRepGraph_SolidId theSolid)
inline

Returns a mutable reference to the solid entity at the given typed id.

Parameters
[in]theSolidtyped solid id

◆ ChangeSolidRef()

BRepGraphInc::SolidRef & BRepGraphInc_Storage::ChangeSolidRef ( const BRepGraph_SolidRefId theRefId)
inline

Returns a mutable reference to the solid reference entry at the given typed id.

◆ ChangeVertex()

BRepGraphInc::VertexDef & BRepGraphInc_Storage::ChangeVertex ( const BRepGraph_VertexId theVertex)
inline

Returns a mutable reference to the vertex entity at the given typed id.

Parameters
[in]theVertextyped vertex id

◆ ChangeVertexRef()

BRepGraphInc::VertexRef & BRepGraphInc_Storage::ChangeVertexRef ( const BRepGraph_VertexRefId theRefId)
inline

Returns a mutable reference to the vertex reference entry at the given typed id.

◆ ChangeWire()

BRepGraphInc::WireDef & BRepGraphInc_Storage::ChangeWire ( const BRepGraph_WireId theWire)
inline

Returns a mutable reference to the wire entity at the given typed id.

Parameters
[in]theWiretyped wire id

◆ ChangeWireRef()

BRepGraphInc::WireRef & BRepGraphInc_Storage::ChangeWireRef ( const BRepGraph_WireRefId theRefId)
inline

Returns a mutable reference to the wire reference entry at the given typed id.

◆ ChildRef()

const BRepGraphInc::ChildRef & BRepGraphInc_Storage::ChildRef ( const BRepGraph_ChildRefId theRefId) const
inline

Returns the child reference entry at the given typed id.

◆ Clear()

void BRepGraphInc_Storage::Clear ( )

Clear all storage.

◆ ClearCurrentShapes()

void BRepGraphInc_Storage::ClearCurrentShapes ( )

Clear the generation-validated shape reconstruction cache.

◆ ClearDeferredQueues()

void BRepGraphInc_Storage::ClearDeferredQueues ( )

Clear deferred invalidation queues and release their batch allocator.

◆ ClearGuarded() [1/2]

void BRepGraphInc_Storage::ClearGuarded ( const BRepGraph_ItemId & theId)

Deregister an active MutGuard from the entity identified by the given generic item id.

Parameters
[in]theIdgeneric item identifier (node, reference, or representation)

◆ ClearGuarded() [2/2]

template<typename T >
void BRepGraphInc_Storage::ClearGuarded ( const T theId)

Deregister an active MutGuard from the entity identified by the given typed ID.

Parameters
[in]theIdtyped entity identifier

◆ CoEdge()

const BRepGraphInc::CoEdgeDef & BRepGraphInc_Storage::CoEdge ( const BRepGraph_CoEdgeId theCoEdge) const
inline

Returns the coedge entity at the given typed id.

Parameters
[in]theCoEdgetyped coedge id

◆ CoEdgeCurve2DRep()

const BRepGraphInc::CoEdgeCurve2DRep & BRepGraphInc_Storage::CoEdgeCurve2DRep ( const BRepGraph_CoEdgeCurve2DRepId theId) const
inline

Returns the coedge 2D curve use at the given id.

◆ CoEdgePolygon2DRep()

const BRepGraphInc::CoEdgePolygon2DRep & BRepGraphInc_Storage::CoEdgePolygon2DRep ( const BRepGraph_CoEdgePolygon2DRepId theId) const
inline

Returns the coedge 2D polygon use at the given id.

◆ CoEdgePolygonOnTriRep()

const BRepGraphInc::CoEdgePolygonOnTriRep & BRepGraphInc_Storage::CoEdgePolygonOnTriRep ( const BRepGraph_CoEdgePolygonOnTriRepId theId) const
inline

Returns the coedge polygon-on-triangulation use at the given id.

◆ Compound()

const BRepGraphInc::CompoundDef & BRepGraphInc_Storage::Compound ( const BRepGraph_CompoundId theCompound) const
inline

Returns the compound entity at the given typed id.

Parameters
[in]theCompoundtyped compound id

◆ CompoundRefsOfNode()

const NCollection_LinearVector< BRepGraph_ChildRefId > & BRepGraphInc_Storage::CompoundRefsOfNode ( const BRepGraph_NodeId theNode) const

Return the compound child reference identifiers that point to a given node.

Parameters
[in]theNodenode identifier
Returns
const reference to the list of child reference identifiers

◆ CompoundRelations()

const BRepGraphInc::CompoundRelations & BRepGraphInc_Storage::CompoundRelations ( const BRepGraph_CompoundId theId) const
inline

Return the compound relations for a given compound identifier.

Parameters
[in]theIdcompound identifier
Returns
const reference to the compound relation representation

◆ CompSolid()

const BRepGraphInc::CompSolidDef & BRepGraphInc_Storage::CompSolid ( const BRepGraph_CompSolidId theCompSolid) const
inline

Returns the compsolid entity at the given typed id.

Parameters
[in]theCompSolidtyped comp-solid id

◆ CompSolidRelations()

const BRepGraphInc::CompSolidRelations & BRepGraphInc_Storage::CompSolidRelations ( const BRepGraph_CompSolidId theId) const
inline

Return the compsolid relations for a given compsolid identifier.

Parameters
[in]theIdcompsolid identifier
Returns
const reference to the compsolid relation representation

◆ CopyDerivedRelationsFrom()

void BRepGraphInc_Storage::CopyDerivedRelationsFrom ( const BRepGraphInc_Storage & theSource)

Copy all forward/reverse relation vectors directly from theSource. Used by identity copy to avoid the clear+rebuild cycle.

◆ CopyRemovedFlagsFrom()

void BRepGraphInc_Storage::CopyRemovedFlagsFrom ( const BRepGraphInc_Storage & theSource)

Bulk-copy all RemovedFlags bit-planes from theSource. Source must have been loaded with the same entity counts (identity copy path).

◆ CopyShapeBindingsFrom()

void BRepGraphInc_Storage::CopyShapeBindingsFrom ( const BRepGraphInc_Storage & theSource)

Copy shape-to-NodeId and Original shape bindings from another storage. Used by identity copy to preserve shape reconstruction bindings.

◆ Counts()

BRepGraphInc_Load::Counts BRepGraphInc_Storage::Counts ( ) const

Build a Counts struct from current allocated slot counts.

◆ CreateCoEdgeUse()

BRepGraph_CoEdgeId BRepGraphInc_Storage::CreateCoEdgeUse ( const BRepGraph_WireId theParentWireId,
const BRepGraph_EdgeId theChildEdgeId,
const BRepGraph_FaceId theFaceId,
const BRepGraphInc::ParityOrientation theOrientation )

Create a coedge use record binding an edge to a wire within a face context.

Parameters
[in]theParentWireIdowning wire identifier
[in]theChildEdgeIdreferenced edge identifier
[in]theFaceIdface context identifier
[in]theOrientationorientation of the coedge
Returns
the newly created coedge identifier

◆ CurrentShapes()

const NCollection_FlatDataMap< BRepGraph_NodeId, CachedShape > & BRepGraphInc_Storage::CurrentShapes ( ) const
inline

Return the generation-validated node-to-shape reconstruction cache.

◆ CurrentShapesMutex()

std::shared_mutex & BRepGraphInc_Storage::CurrentShapesMutex ( ) const
inline

Return the mutex protecting the reconstruction cache.

◆ DecrementRemoveSubgraphDepth()

void BRepGraphInc_Storage::DecrementRemoveSubgraphDepth ( )
inline

Leave one nested RemoveSubgraph scope.

◆ DeferredMode()

bool BRepGraphInc_Storage::DeferredMode ( ) const
inline

Return whether invalidation is currently deferred.

◆ DeferredModified()

const NCollection_LinearVector< BRepGraph_NodeId > & BRepGraphInc_Storage::DeferredModified ( ) const
inline

Return nodes accumulated during deferred invalidation.

◆ DeferredRefModified()

const NCollection_LinearVector< BRepGraph_RefId > & BRepGraphInc_Storage::DeferredRefModified ( ) const
inline

Return refs accumulated during deferred invalidation.

◆ DetachChildFromCompound()

bool BRepGraphInc_Storage::DetachChildFromCompound ( const BRepGraph_CompoundId theParentCompoundId,
const BRepGraph_ChildRefId theRefId )

Detach a child reference from its parent compound.

Parameters
[in]theParentCompoundIdparent compound identifier
[in]theRefIdchild reference identifier to detach
Returns
true if the reference was found and removed

◆ DetachCoEdgeUse()

bool BRepGraphInc_Storage::DetachCoEdgeUse ( const BRepGraph_WireId theParentWireId,
const BRepGraph_CoEdgeId theCoEdgeId )

Detach a coedge use from its parent wire.

Parameters
[in]theParentWireIdowning wire identifier
[in]theCoEdgeIdcoedge identifier to detach
Returns
true if the coedge was found and removed

◆ DetachFaceFromShell()

bool BRepGraphInc_Storage::DetachFaceFromShell ( const BRepGraph_ShellId theParentShellId,
const BRepGraph_FaceRefId theRefId )

Detach a face reference from its parent shell.

Parameters
[in]theParentShellIdparent shell identifier
[in]theRefIdface reference identifier to detach
Returns
true if the reference was found and removed

◆ DetachOccurrenceFromProduct()

bool BRepGraphInc_Storage::DetachOccurrenceFromProduct ( const BRepGraph_ProductId theParentProductId,
const BRepGraph_OccurrenceRefId theRefId )

Detach an occurrence reference from its parent product.

Parameters
[in]theParentProductIdparent product identifier
[in]theRefIdoccurrence reference identifier to detach
Returns
true if the reference was found and removed

◆ DetachShellFromSolid()

bool BRepGraphInc_Storage::DetachShellFromSolid ( const BRepGraph_SolidId theParentSolidId,
const BRepGraph_ShellRefId theRefId )

Detach a shell reference from its parent solid.

Parameters
[in]theParentSolidIdparent solid identifier
[in]theRefIdshell reference identifier to detach
Returns
true if the reference was found and removed

◆ DetachSolidFromCompSolid()

bool BRepGraphInc_Storage::DetachSolidFromCompSolid ( const BRepGraph_CompSolidId theParentCompSolidId,
const BRepGraph_SolidRefId theRefId )

Detach a solid reference from its parent compsolid.

Parameters
[in]theParentCompSolidIdparent compsolid identifier
[in]theRefIdsolid reference identifier to detach
Returns
true if the reference was found and removed

◆ DetachWireFromFace()

bool BRepGraphInc_Storage::DetachWireFromFace ( const BRepGraph_FaceId theParentFaceId,
const BRepGraph_WireRefId theRefId )

Detach a wire reference from its parent face.

Parameters
[in]theParentFaceIdparent face identifier
[in]theRefIdwire reference identifier to detach
Returns
true if the reference was found and removed

◆ Edge()

const BRepGraphInc::EdgeDef & BRepGraphInc_Storage::Edge ( const BRepGraph_EdgeId theEdge) const
inline

Returns the edge entity at the given typed id.

Parameters
[in]theEdgetyped edge id

◆ EdgeCurve3DRep()

const BRepGraphInc::EdgeCurve3DRep & BRepGraphInc_Storage::EdgeCurve3DRep ( const BRepGraph_EdgeCurve3DRepId theId) const
inline

Returns the edge 3D curve use at the given id.

◆ EdgePolygon3DRep()

const BRepGraphInc::EdgePolygon3DRep & BRepGraphInc_Storage::EdgePolygon3DRep ( const BRepGraph_EdgePolygon3DRepId theId) const
inline

Returns the edge 3D polygon use at the given id.

◆ EdgeRelations()

const BRepGraphInc::EdgeRelations & BRepGraphInc_Storage::EdgeRelations ( const BRepGraph_EdgeId theId) const
inline

Return the edge relations for a given edge identifier.

Parameters
[in]theIdedge identifier
Returns
const reference to the edge relation representation

◆ EnsureRefUIDReverseIndex()

void BRepGraphInc_Storage::EnsureRefUIDReverseIndex ( ) const

Lazily rebuild the reference UID reverse index if it is stale.

◆ EnsureUIDReverseIndex()

void BRepGraphInc_Storage::EnsureUIDReverseIndex ( ) const

Lazily rebuild the node UID reverse index if it is stale.

◆ Face()

const BRepGraphInc::FaceDef & BRepGraphInc_Storage::Face ( const BRepGraph_FaceId theFace) const
inline

Returns the face entity at the given typed id.

Parameters
[in]theFacetyped face id

◆ FaceRef()

const BRepGraphInc::FaceRef & BRepGraphInc_Storage::FaceRef ( const BRepGraph_FaceRefId theRefId) const
inline

Returns the face reference entry at the given typed id.

◆ FaceRelations()

const BRepGraphInc::FaceRelations & BRepGraphInc_Storage::FaceRelations ( const BRepGraph_FaceId theId) const
inline

Return the face relations for a given face identifier.

Parameters
[in]theIdface identifier
Returns
const reference to the face relation representation

◆ FaceSurfaceRep()

const BRepGraphInc::FaceSurfaceRep & BRepGraphInc_Storage::FaceSurfaceRep ( const BRepGraph_FaceSurfaceRepId theId) const
inline

Returns the face surface use at the given id.

◆ FaceTriangulationRep()

const BRepGraphInc::FaceTriangulationRep & BRepGraphInc_Storage::FaceTriangulationRep ( const BRepGraph_FaceTriangulationRepId theId) const
inline

Returns the face triangulation use at the given id.

◆ FindDefinitionByShape()

BRepGraph_NodeId BRepGraphInc_Storage::FindDefinitionByShape ( const TopoDS_Shape & theShape) const

Returns the node id bound to the given shape definition key, or invalid if not bound.

◆ FindNodeIdByUID()

BRepGraph_NodeId BRepGraphInc_Storage::FindNodeIdByUID ( const BRepGraph_UID & theUID) const

Resolve an active node UID through storage reverse maps.

◆ FindOriginal()

TopoDS_Shape BRepGraphInc_Storage::FindOriginal ( const BRepGraph_NodeId theNodeId) const

Back-reference to the construction-time TopoDS_Shape key a node was built from. Only populated during graph construction; absent bindings are a valid state.

Returns the original shape for the given node id, or a null shape if not bound.

◆ FindRefIdByUID()

BRepGraph_RefId BRepGraphInc_Storage::FindRefIdByUID ( const BRepGraph_RefUID & theUID) const

Resolve an active reference UID through storage reverse maps.

◆ ForEachOriginalBinding()

template<typename FuncT >
void BRepGraphInc_Storage::ForEachOriginalBinding ( FuncT && theFunc) const
inline

Iterate all NodeId-to-OriginalShape bindings, invoking theFunc(NodeId, Shape) for each entry. Used by Compact to rebuild the map after the rebuild-and-swap.

◆ ForEachShapeBinding()

template<typename FuncT >
void BRepGraphInc_Storage::ForEachShapeBinding ( FuncT && theFunc) const
inline

Iterate all shape-to-NodeId bindings, invoking theFunc(shape, NodeId) for each entry. Used by Compact to rebuild the map after the rebuild-and-swap.

◆ Generation()

uint32_t BRepGraphInc_Storage::Generation ( ) const
inline

Return the current graph generation used by VersionStamp staleness checks.

◆ GraphGUID()

const Standard_GUID & BRepGraphInc_Storage::GraphGUID ( ) const
inline

Return the stable graph instance GUID.

◆ HasAnyGuard()

bool BRepGraphInc_Storage::HasAnyGuard ( ) const

Return true if any entity in any store has an active MutGuard. Used to assert no guards are active before Clear().

◆ HasCompoundParent()

bool BRepGraphInc_Storage::HasCompoundParent ( const BRepGraph_NodeId theNode) const

Return true if the node identified by the given generic NodeId has a parent compound. Dispatches by node kind to the appropriate per-kind bitset.

Parameters
[in]theNodegeneric node identifier

◆ HasOccurrenceParent()

bool BRepGraphInc_Storage::HasOccurrenceParent ( const BRepGraph_NodeId theNode) const

Return true if the node identified by the given generic NodeId has a parent occurrence. Dispatches by node kind to the appropriate per-kind bitset.

Parameters
[in]theNodegeneric node identifier

◆ HasOriginal()

bool BRepGraphInc_Storage::HasOriginal ( const BRepGraph_NodeId theNodeId) const

Returns true if the given node id has an original shape binding.

◆ HasShapeBinding()

bool BRepGraphInc_Storage::HasShapeBinding ( const TopoDS_Shape & theShape) const

Returns true if the given shape definition key is bound to a node.

◆ IncrementGeneration()

void BRepGraphInc_Storage::IncrementGeneration ( )
inline

Increment the graph generation after a structural mutation batch.

◆ IncrementPropagationWave()

void BRepGraphInc_Storage::IncrementPropagationWave ( )
inline

Increment the propagation wave without reading it back.

◆ IncrementRemoveSubgraphDepth()

void BRepGraphInc_Storage::IncrementRemoveSubgraphDepth ( )
inline

Enter one nested RemoveSubgraph scope.

◆ IsEmpty()

bool BRepGraphInc_Storage::IsEmpty ( ) const

Return true when the graph contains no topology definitions. Checks whether any node kind (Vertex, Edge, Wire, Face, Shell, Solid, Compound, CompSolid, Product, Occurrence) has been allocated.

◆ IsGuarded() [1/2]

bool BRepGraphInc_Storage::IsGuarded ( const BRepGraph_ItemId & theId) const

Return true if the entity identified by the given generic item id has an active MutGuard.

Parameters
[in]theIdgeneric item identifier (node, reference, or representation)

◆ IsGuarded() [2/2]

template<typename T >
bool BRepGraphInc_Storage::IsGuarded ( const T theId) const

Return true if the entity identified by the given typed ID has an active MutGuard.

Parameters
[in]theIdtyped entity identifier

◆ IsOwned()

template<typename T >
bool BRepGraphInc_Storage::IsOwned ( const T theId) const

Return true if the entity identified by the given typed ID has a registered owner.

Parameters
[in]theIdtyped entity identifier

◆ IsRemoved()

template<typename T >
bool BRepGraphInc_Storage::IsRemoved ( const T theId) const

Return true if the entity identified by the given typed ID is soft-removed.

Parameters
[in]theIdtyped entity identifier

◆ MarkRemoved() [1/2]

bool BRepGraphInc_Storage::MarkRemoved ( const BRepGraph_NodeId theNodeId)

Mark an entity node as removed and decrement its active counter once.

Parameters
[in]theNodeIdtyped entity id
Returns
true if the node transitioned from active to removed

◆ MarkRemoved() [2/2]

bool BRepGraphInc_Storage::MarkRemoved ( const BRepGraph_RepId theRepId)

Mark a representation-use record as removed and decrement its active counter once.

Parameters
[in]theRepIdtyped use id
Returns
true if the use transitioned from active to removed

◆ MarkRemovedRef()

bool BRepGraphInc_Storage::MarkRemovedRef ( const BRepGraph_RefId theRefId)

Mark a reference entry as removed and decrement its active counter once.

Parameters
[in]theRefIdtyped reference id
Returns
true if the ref transitioned from active to removed

◆ MarkUIDReverseIndexesDirty()

void BRepGraphInc_Storage::MarkUIDReverseIndexesDirty ( )

Mark UID reverse indexes stale after bulk UID-vector replacement.

◆ NbActiveChildRefs()

uint32_t BRepGraphInc_Storage::NbActiveChildRefs ( ) const
inline

Returns the number of active child reference entries (excluding removed).

◆ NbActiveCoEdgeCurves2D()

uint32_t BRepGraphInc_Storage::NbActiveCoEdgeCurves2D ( ) const

Returns the number of active (parent-valid) coedge 2D curve use records.

◆ NbActiveCoEdgePolygons2D()

uint32_t BRepGraphInc_Storage::NbActiveCoEdgePolygons2D ( ) const

Returns the number of active (parent-valid) coedge 2D polygon use records.

◆ NbActiveCoEdgePolygonsOnTri()

uint32_t BRepGraphInc_Storage::NbActiveCoEdgePolygonsOnTri ( ) const

Returns the number of active (parent-valid) coedge polygon-on-triangulation use records.

◆ NbActiveCoEdges()

uint32_t BRepGraphInc_Storage::NbActiveCoEdges ( ) const
inline

Returns the number of active coedge entities (excluding removed).

◆ NbActiveCompounds()

uint32_t BRepGraphInc_Storage::NbActiveCompounds ( ) const
inline

Returns the number of active compound entities (excluding removed).

◆ NbActiveCompSolids()

uint32_t BRepGraphInc_Storage::NbActiveCompSolids ( ) const
inline

Returns the number of active compsolid entities (excluding removed).

◆ NbActiveEdgeCurves3D()

uint32_t BRepGraphInc_Storage::NbActiveEdgeCurves3D ( ) const

Returns the number of active (parent-valid) edge 3D curve use records.

◆ NbActiveEdgePolygons3D()

uint32_t BRepGraphInc_Storage::NbActiveEdgePolygons3D ( ) const

Returns the number of active (parent-valid) edge 3D polygon use records.

◆ NbActiveEdges()

uint32_t BRepGraphInc_Storage::NbActiveEdges ( ) const
inline

Returns the number of active edge entities (excluding removed).

◆ NbActiveFaceRefs()

uint32_t BRepGraphInc_Storage::NbActiveFaceRefs ( ) const
inline

Returns the number of active face reference entries (excluding removed).

◆ NbActiveFaces()

uint32_t BRepGraphInc_Storage::NbActiveFaces ( ) const
inline

Returns the number of active face entities (excluding removed).

◆ NbActiveFaceSurfaces()

uint32_t BRepGraphInc_Storage::NbActiveFaceSurfaces ( ) const

Returns the number of active (parent-valid) face surface use records.

◆ NbActiveFaceTriangulations()

uint32_t BRepGraphInc_Storage::NbActiveFaceTriangulations ( ) const

Returns the number of active (parent-valid) face triangulation use records.

◆ NbActiveOccurrenceRefs()

uint32_t BRepGraphInc_Storage::NbActiveOccurrenceRefs ( ) const
inline

Returns the number of active occurrence reference entries (excluding removed).

◆ NbActiveOccurrences()

uint32_t BRepGraphInc_Storage::NbActiveOccurrences ( ) const
inline

Returns the number of active occurrence entities (excluding removed).

◆ NbActiveProducts()

uint32_t BRepGraphInc_Storage::NbActiveProducts ( ) const
inline

Returns the number of active product entities (excluding removed).

◆ NbActiveShellRefs()

uint32_t BRepGraphInc_Storage::NbActiveShellRefs ( ) const
inline

Returns the number of active shell reference entries (excluding removed).

◆ NbActiveShells()

uint32_t BRepGraphInc_Storage::NbActiveShells ( ) const
inline

Returns the number of active shell entities (excluding removed).

◆ NbActiveSolidRefs()

uint32_t BRepGraphInc_Storage::NbActiveSolidRefs ( ) const
inline

Returns the number of active solid reference entries (excluding removed).

◆ NbActiveSolids()

uint32_t BRepGraphInc_Storage::NbActiveSolids ( ) const
inline

Returns the number of active solid entities (excluding removed).

◆ NbActiveVertexRefs()

uint32_t BRepGraphInc_Storage::NbActiveVertexRefs ( ) const
inline

Returns the number of active vertex reference entries (excluding removed).

◆ NbActiveVertices()

uint32_t BRepGraphInc_Storage::NbActiveVertices ( ) const
inline

Returns the number of active vertex entities (excluding removed).

◆ NbActiveWireRefs()

uint32_t BRepGraphInc_Storage::NbActiveWireRefs ( ) const
inline

Returns the number of active wire reference entries (excluding removed).

◆ NbActiveWires()

uint32_t BRepGraphInc_Storage::NbActiveWires ( ) const
inline

Returns the number of active wire entities (excluding removed).

◆ NbChildRefs()

uint32_t BRepGraphInc_Storage::NbChildRefs ( ) const
inline

Returns the total number of child reference entries (including removed).

◆ NbCoEdgeCurves2D()

uint32_t BRepGraphInc_Storage::NbCoEdgeCurves2D ( ) const
inline

Returns the number of coedge 2D curve use records.

◆ NbCoEdgePolygons2D()

uint32_t BRepGraphInc_Storage::NbCoEdgePolygons2D ( ) const
inline

Returns the number of coedge 2D polygon use records.

◆ NbCoEdgePolygonsOnTri()

uint32_t BRepGraphInc_Storage::NbCoEdgePolygonsOnTri ( ) const
inline

Returns the number of coedge polygon-on-triangulation use records.

◆ NbCoEdges()

uint32_t BRepGraphInc_Storage::NbCoEdges ( ) const
inline

Returns the total number of coedge entities (including removed).

◆ NbCompounds()

uint32_t BRepGraphInc_Storage::NbCompounds ( ) const
inline

Returns the total number of compound entities (including removed).

◆ NbCompSolids()

uint32_t BRepGraphInc_Storage::NbCompSolids ( ) const
inline

Returns the total number of compsolid entities (including removed).

◆ NbEdgeCurves3D()

uint32_t BRepGraphInc_Storage::NbEdgeCurves3D ( ) const
inline

Returns the number of edge 3D curve use records.

◆ NbEdgePolygons3D()

uint32_t BRepGraphInc_Storage::NbEdgePolygons3D ( ) const
inline

Returns the number of edge 3D polygon use records.

◆ NbEdges()

uint32_t BRepGraphInc_Storage::NbEdges ( ) const
inline

Returns the total number of edge entities (including removed).

◆ NbFaceRefs()

uint32_t BRepGraphInc_Storage::NbFaceRefs ( ) const
inline

Returns the total number of face reference entries (including removed).

◆ NbFaces()

uint32_t BRepGraphInc_Storage::NbFaces ( ) const
inline

Returns the total number of face entities (including removed).

◆ NbFaceSurfaces()

uint32_t BRepGraphInc_Storage::NbFaceSurfaces ( ) const
inline

Returns the number of face surface use records.

◆ NbFaceTriangulations()

uint32_t BRepGraphInc_Storage::NbFaceTriangulations ( ) const
inline

Returns the number of face triangulation use records.

◆ NbOccurrenceRefs()

uint32_t BRepGraphInc_Storage::NbOccurrenceRefs ( ) const
inline

Returns the total number of occurrence reference entries (including removed).

◆ NbOccurrences()

uint32_t BRepGraphInc_Storage::NbOccurrences ( ) const
inline

Returns the total number of occurrence entities (including removed).

◆ NbProducts()

uint32_t BRepGraphInc_Storage::NbProducts ( ) const
inline

Returns the total number of product entities (including removed).

◆ NbShellRefs()

uint32_t BRepGraphInc_Storage::NbShellRefs ( ) const
inline

Returns the total number of shell reference entries (including removed).

◆ NbShells()

uint32_t BRepGraphInc_Storage::NbShells ( ) const
inline

Returns the total number of shell entities (including removed).

◆ NbSolidRefs()

uint32_t BRepGraphInc_Storage::NbSolidRefs ( ) const
inline

Returns the total number of solid reference entries (including removed).

◆ NbSolids()

uint32_t BRepGraphInc_Storage::NbSolids ( ) const
inline

Returns the total number of solid entities (including removed).

◆ NbVertexRefs()

uint32_t BRepGraphInc_Storage::NbVertexRefs ( ) const
inline

Returns the total number of vertex reference entries (including removed).

◆ NbVertices()

uint32_t BRepGraphInc_Storage::NbVertices ( ) const
inline

Returns the total number of vertex entities (including removed).

◆ NbWireRefs()

uint32_t BRepGraphInc_Storage::NbWireRefs ( ) const
inline

Returns the total number of wire reference entries (including removed).

◆ NbWires()

uint32_t BRepGraphInc_Storage::NbWires ( ) const
inline

Returns the total number of wire entities (including removed).

◆ NextNodeUIDCounter()

uint32_t BRepGraphInc_Storage::NextNodeUIDCounter ( BRepGraph_NodeId::Kind theKind) const

Return the next UID counter for a given node kind.

◆ NextRefUIDCounter()

uint32_t BRepGraphInc_Storage::NextRefUIDCounter ( BRepGraph_RefId::Kind theKind) const

Return the next UID counter for a given reference kind.

◆ Occurrence()

const BRepGraphInc::OccurrenceDef & BRepGraphInc_Storage::Occurrence ( const BRepGraph_OccurrenceId theOccurrence) const
inline

Returns the occurrence entity at the given typed id.

Parameters
[in]theOccurrencetyped occurrence id

◆ OccurrenceRef()

const BRepGraphInc::OccurrenceRef & BRepGraphInc_Storage::OccurrenceRef ( const BRepGraph_OccurrenceRefId theRefId) const
inline

Returns the occurrence reference entry at the given typed id.

◆ OccurrenceRefsOfNode()

const NCollection_LinearVector< BRepGraph_OccurrenceRefId > & BRepGraphInc_Storage::OccurrenceRefsOfNode ( const BRepGraph_NodeId theNode) const

Return the occurrence reference identifiers that point to a given node.

Parameters
[in]theNodenode identifier
Returns
const reference to the list of occurrence reference identifiers

◆ OccurrenceRelations()

const BRepGraphInc::OccurrenceRelations & BRepGraphInc_Storage::OccurrenceRelations ( const BRepGraph_OccurrenceId theId) const
inline

Return the occurrence relations for a given occurrence identifier.

Parameters
[in]theIdoccurrence identifier
Returns
const reference to the occurrence relation representation

◆ PrepareForLoad()

void BRepGraphInc_Storage::PrepareForLoad ( const BRepGraphInc_Load::Counts & theCounts)

Prepare fixed-size destination ranges for indexed load.

This is an internal backend preparation API intended for persistence read paths that know final section sizes in advance. It clears previous content, pre-sizes defs/refs/reps and UID vectors, and initializes relation tables exactly once. The load path then restores serialized relation lists and calls RebuildDerivedRelations() once to refresh derived incoming maps.

Parameters
theCountsfinal per-section slot counts.

◆ Product()

const BRepGraphInc::ProductDef & BRepGraphInc_Storage::Product ( const BRepGraph_ProductId theProduct) const
inline

Returns the product entity at the given typed id.

Parameters
[in]theProducttyped product id

◆ ProductRelations()

const BRepGraphInc::ProductRelations & BRepGraphInc_Storage::ProductRelations ( const BRepGraph_ProductId theId) const
inline

Return the product relations for a given product identifier.

Parameters
[in]theIdproduct identifier
Returns
const reference to the product relation representation

◆ PropagationWave()

uint32_t BRepGraphInc_Storage::PropagationWave ( ) const
inline

Return the current propagation wave id used to avoid revisiting parents.

◆ RebindChildRef()

void BRepGraphInc_Storage::RebindChildRef ( const BRepGraph_ChildRefId theRefId,
const BRepGraph_NodeId theOldChild,
const BRepGraph_NodeId theNewChild )

Rebind a child reference to point to a new child node.

Parameters
[in]theRefIdchild reference identifier
[in]theOldChildold child node identifier
[in]theNewChildnew child node identifier

◆ RebindCoEdgeEdge()

void BRepGraphInc_Storage::RebindCoEdgeEdge ( const BRepGraph_CoEdgeId theCoEdge,
const BRepGraph_EdgeId theOldEdge,
const BRepGraph_EdgeId theNewEdge )

Rebind a coedge to reference a different edge.

Parameters
[in]theCoEdgecoedge identifier
[in]theOldEdgeold edge identifier
[in]theNewEdgenew edge identifier

◆ RebindFaceRef()

void BRepGraphInc_Storage::RebindFaceRef ( const BRepGraph_FaceRefId theRefId,
const BRepGraph_FaceId theOldFace,
const BRepGraph_FaceId theNewFace )

Rebind a face reference to point to a new face.

Parameters
[in]theRefIdface reference identifier
[in]theOldFaceold face identifier
[in]theNewFacenew face identifier

◆ RebindOccurrenceChild()

void BRepGraphInc_Storage::RebindOccurrenceChild ( const BRepGraph_OccurrenceId theOccurrence,
const BRepGraph_NodeId theOldChild,
const BRepGraph_NodeId theNewChild )

Rebind the child node of an occurrence to a new node.

Parameters
[in]theOccurrenceoccurrence identifier
[in]theOldChildold child node identifier
[in]theNewChildnew child node identifier

◆ RebindOccurrenceRef()

void BRepGraphInc_Storage::RebindOccurrenceRef ( const BRepGraph_OccurrenceRefId theRefId,
const BRepGraph_OccurrenceId theOldOccurrence,
const BRepGraph_OccurrenceId theNewOccurrence )

Rebind an occurrence reference to point to a new occurrence.

Parameters
[in]theRefIdoccurrence reference identifier
[in]theOldOccurrenceold occurrence identifier
[in]theNewOccurrencenew occurrence identifier

◆ RebindShellRef()

void BRepGraphInc_Storage::RebindShellRef ( const BRepGraph_ShellRefId theRefId,
const BRepGraph_ShellId theOldShell,
const BRepGraph_ShellId theNewShell )

Rebind a shell reference to point to a new shell.

Parameters
[in]theRefIdshell reference identifier
[in]theOldShellold shell identifier
[in]theNewShellnew shell identifier

◆ RebindSolidRef()

void BRepGraphInc_Storage::RebindSolidRef ( const BRepGraph_SolidRefId theRefId,
const BRepGraph_SolidId theOldSolid,
const BRepGraph_SolidId theNewSolid )

Rebind a solid reference to point to a new solid.

Parameters
[in]theRefIdsolid reference identifier
[in]theOldSolidold solid identifier
[in]theNewSolidnew solid identifier

◆ RebindVertexEdge()

void BRepGraphInc_Storage::RebindVertexEdge ( const BRepGraph_VertexId theOldVertex,
const BRepGraph_VertexId theNewVertex,
const BRepGraph_EdgeId theEdge,
const BRepGraph_VertexRefId theExcludingRef )

Rebind vertex edge references from one vertex to another, excluding a specific ref.

Parameters
[in]theOldVertexold vertex identifier
[in]theNewVertexnew vertex identifier
[in]theEdgeedge identifier
[in]theExcludingRefreference identifier to exclude from rebinding

◆ RebindVertexRef()

void BRepGraphInc_Storage::RebindVertexRef ( const BRepGraph_VertexRefId theRefId,
const BRepGraph_VertexId theOldVertex,
const BRepGraph_VertexId theNewVertex )

Rebind a vertex reference to point to a new vertex.

Parameters
[in]theRefIdvertex reference identifier
[in]theOldVertexold vertex identifier
[in]theNewVertexnew vertex identifier

◆ RebindWireRef()

void BRepGraphInc_Storage::RebindWireRef ( const BRepGraph_WireRefId theRefId,
const BRepGraph_WireId theOldWire,
const BRepGraph_WireId theNewWire )

Rebind a wire reference to point to a new wire.

Parameters
[in]theRefIdwire reference identifier
[in]theOldWireold wire identifier
[in]theNewWirenew wire identifier

◆ RebuildDerivedRelations()

void BRepGraphInc_Storage::RebuildDerivedRelations ( )

Rebuild centralized relation tables from entity and reference endpoints. This is intended for raw load, compact, and explicit repair paths only; editor mutations maintain relation containers incrementally.

◆ RebuildDerivedRelationsPreservingActiveCounts()

void BRepGraphInc_Storage::RebuildDerivedRelationsPreservingActiveCounts ( )

Rebuild relation maps after a trusted load already restored active counts.

◆ RebuildUIDReverseIndexes()

void BRepGraphInc_Storage::RebuildUIDReverseIndexes ( )

Rebuild UID reverse indexes (UID->NodeId, RefUID->RefId) from the current UID vectors. Clears indexes and resets allocators before rebuilding. Called after Compact, Load, etc. where UID vectors have been modified externally.

◆ RecountActiveCounts()

void BRepGraphInc_Storage::RecountActiveCounts ( )

Recount active-slot counters from current IsRemoved flags without rebuilding indexes.

◆ RemoveDefinitionShapeBinding()

bool BRepGraphInc_Storage::RemoveDefinitionShapeBinding ( const TopoDS_Shape & theShape,
const BRepGraph_NodeId theExpectedNodeId )

Remove the shape-to-node binding only if it points to the expected node. Returns true if the binding was removed.

◆ RemoveSubgraphDepth()

uint32_t BRepGraphInc_Storage::RemoveSubgraphDepth ( ) const
inline

Return the recursion depth of the active RemoveSubgraph cascade.

◆ ReplaceCoEdgeUseWithPair()

bool BRepGraphInc_Storage::ReplaceCoEdgeUseWithPair ( const BRepGraph_WireId theParentWireId,
const BRepGraph_CoEdgeId theOldCoEdgeId,
const BRepGraph_CoEdgeId theNewFirstCoEdgeId,
const BRepGraph_CoEdgeId theNewSecondCoEdgeId )

Replace a single coedge with a pair of new coedges in a wire.

Parameters
[in]theParentWireIdowning wire identifier
[in]theOldCoEdgeIdcoedge to replace
[in]theNewFirstCoEdgeIdfirst replacement coedge
[in]theNewSecondCoEdgeIdsecond replacement coedge
Returns
true if the replacement succeeded

◆ ReverseWireCoEdges()

void BRepGraphInc_Storage::ReverseWireCoEdges ( const BRepGraph_WireId theWireId)

Reverse the order of coedges in a wire.

Parameters
[in]theWireIdwire identifier

◆ RootProductIds()

const NCollection_LinearVector< BRepGraph_ProductId > & BRepGraphInc_Storage::RootProductIds ( ) const
inline

Return products not referenced by any active occurrence.

◆ SetActiveCounts()

void BRepGraphInc_Storage::SetActiveCounts ( const BRepGraphInc_Load::Counts & theCounts)

Override active-slot counters after a trusted indexed load path.

This is intended for persistence backends that already touched every slot during load and therefore know exact active counts without rescanning storage after relation construction.

Parameters
theCountstrusted active per-section counts.

◆ SetCompoundChildRefs()

void BRepGraphInc_Storage::SetCompoundChildRefs ( const BRepGraph_CompoundId theCompoundId,
const NCollection_Array1< BRepGraph_ChildRefId > & theChildRefIds )

Replace the child reference list of a compound with a new set.

Parameters
[in]theCompoundIdcompound identifier
[in]theChildRefIdsnew child reference identifiers

◆ SetCompSolidSolidRefs()

void BRepGraphInc_Storage::SetCompSolidSolidRefs ( const BRepGraph_CompSolidId theCompSolidId,
const NCollection_Array1< BRepGraph_SolidRefId > & theSolidRefIds )

Replace the solid reference list of a compsolid with a new set.

Parameters
[in]theCompSolidIdcompsolid identifier
[in]theSolidRefIdsnew solid reference identifiers

◆ SetDeferredMode()

void BRepGraphInc_Storage::SetDeferredMode ( const bool theEnabled)
inline

Enable or disable deferred invalidation mode.

◆ SetDefinitionShapeBinding()

void BRepGraphInc_Storage::SetDefinitionShapeBinding ( const TopoDS_Shape & theShape,
const BRepGraph_NodeId theNodeId )

Set or update the shape-to-node binding. Uses replacement semantics: binds if absent, updates if already bound.

◆ SetFaceWireRefs()

void BRepGraphInc_Storage::SetFaceWireRefs ( const BRepGraph_FaceId theFaceId,
const NCollection_Array1< BRepGraph_WireRefId > & theWireRefIds )

Replace the wire reference list of a face with a new set.

Parameters
[in]theFaceIdface identifier
[in]theWireRefIdsnew wire reference identifiers

◆ SetGeneration()

void BRepGraphInc_Storage::SetGeneration ( const uint32_t theGeneration)
inline

Override the current graph generation.

◆ SetGraphGUID()

void BRepGraphInc_Storage::SetGraphGUID ( const Standard_GUID & theGuid)
inline

Override the stable graph instance GUID.

◆ SetGuarded() [1/2]

void BRepGraphInc_Storage::SetGuarded ( const BRepGraph_ItemId & theId)

Register an active MutGuard on the entity identified by the given generic item id.

Parameters
[in]theIdgeneric item identifier (node, reference, or representation)

◆ SetGuarded() [2/2]

template<typename T >
void BRepGraphInc_Storage::SetGuarded ( const T theId)

Register an active MutGuard on the entity identified by the given typed ID.

Parameters
[in]theIdtyped entity identifier

◆ SetNextNodeUIDCounter()

void BRepGraphInc_Storage::SetNextNodeUIDCounter ( BRepGraph_NodeId::Kind theKind,
uint32_t theCounter )

Override the next UID counter for a given node kind.

◆ SetNextRefUIDCounter()

void BRepGraphInc_Storage::SetNextRefUIDCounter ( BRepGraph_RefId::Kind theKind,
uint32_t theCounter )

Override the next UID counter for a given reference kind.

◆ SetOwned()

template<typename T >
void BRepGraphInc_Storage::SetOwned ( const T theId,
const bool theVal )

Set or clear the ownership flag for the entity identified by the given typed ID.

Parameters
[in]theIdtyped entity identifier
[in]theValtrue to mark owned, false to mark unowned

◆ SetProductOccurrenceRefs()

void BRepGraphInc_Storage::SetProductOccurrenceRefs ( const BRepGraph_ProductId theProductId,
const NCollection_Array1< BRepGraph_OccurrenceRefId > & theOccurrenceRefIds )

Replace the occurrence reference list of a product with a new set.

Parameters
[in]theProductIdproduct identifier
[in]theOccurrenceRefIdsnew occurrence reference identifiers

◆ SetRemoved() [1/2]

void BRepGraphInc_Storage::SetRemoved ( const BRepGraph_RepId theRepId,
const bool theVal )

Set or clear the soft-removal flag for a representation-use record.

Parameters
[in]theRepIdtyped use id
[in]theValtrue to mark removed, false to mark active

◆ SetRemoved() [2/2]

template<typename T >
void BRepGraphInc_Storage::SetRemoved ( const T theId,
const bool theVal )

Set or clear the soft-removal flag for the entity identified by the given typed ID.

Parameters
[in]theIdtyped entity identifier
[in]theValtrue to mark removed, false to mark active

◆ SetShellFaceRefs()

void BRepGraphInc_Storage::SetShellFaceRefs ( const BRepGraph_ShellId theShellId,
const NCollection_Array1< BRepGraph_FaceRefId > & theFaceRefIds )

Replace the face reference list of a shell with a new set.

Parameters
[in]theShellIdshell identifier
[in]theFaceRefIdsnew face reference identifiers

◆ SetSolidShellRefs()

void BRepGraphInc_Storage::SetSolidShellRefs ( const BRepGraph_SolidId theSolidId,
const NCollection_Array1< BRepGraph_ShellRefId > & theShellRefIds )

Replace the shell reference list of a solid with a new set.

Parameters
[in]theSolidIdsolid identifier
[in]theShellRefIdsnew shell reference identifiers

◆ SetWireCoEdges()

void BRepGraphInc_Storage::SetWireCoEdges ( const BRepGraph_WireId theWireId,
const NCollection_Array1< BRepGraph_CoEdgeId > & theCoEdgeIds )

Replace the coedge list of a wire with a new set.

Parameters
[in]theWireIdwire identifier
[in]theCoEdgeIdsnew coedge identifiers

◆ Shell()

const BRepGraphInc::ShellDef & BRepGraphInc_Storage::Shell ( const BRepGraph_ShellId theShell) const
inline

Returns the shell entity at the given typed id.

Parameters
[in]theShelltyped shell id

◆ ShellRef()

const BRepGraphInc::ShellRef & BRepGraphInc_Storage::ShellRef ( const BRepGraph_ShellRefId theRefId) const
inline

Returns the shell reference entry at the given typed id.

◆ ShellRelations()

const BRepGraphInc::ShellRelations & BRepGraphInc_Storage::ShellRelations ( const BRepGraph_ShellId theId) const
inline

Return the shell relations for a given shell identifier.

Parameters
[in]theIdshell identifier
Returns
const reference to the shell relation representation

◆ Solid()

const BRepGraphInc::SolidDef & BRepGraphInc_Storage::Solid ( const BRepGraph_SolidId theSolid) const
inline

Returns the solid entity at the given typed id.

Parameters
[in]theSolidtyped solid id

◆ SolidRef()

const BRepGraphInc::SolidRef & BRepGraphInc_Storage::SolidRef ( const BRepGraph_SolidRefId theRefId) const
inline

Returns the solid reference entry at the given typed id.

◆ SolidRelations()

const BRepGraphInc::SolidRelations & BRepGraphInc_Storage::SolidRelations ( const BRepGraph_SolidId theId) const
inline

Return the solid relations for a given solid identifier.

Parameters
[in]theIdsolid identifier
Returns
const reference to the solid relation representation

◆ UnbindCurrentShape()

void BRepGraphInc_Storage::UnbindCurrentShape ( const BRepGraph_NodeId theNode)

Remove one entry from the generation-validated shape reconstruction cache.

◆ UnBindOriginal()

void BRepGraphInc_Storage::UnBindOriginal ( const BRepGraph_NodeId theNodeId)

Removes the original shape binding for the given node id.

◆ ValidateRelations()

bool BRepGraphInc_Storage::ValidateRelations ( ) const

Debug: verify relation-table consistency against entity/reference endpoints.

Returns
true if all relations are consistent

◆ ValidateWireCoEdgeOrder()

bool BRepGraphInc_Storage::ValidateWireCoEdgeOrder ( const BRepGraph_WireId theWireId) const

Verify coedge ordering consistency for a specific wire.

Parameters
[in]theWireIdwire identifier
Returns
true if the coedge order is valid

◆ ValidateWireCoEdgeOrders()

bool BRepGraphInc_Storage::ValidateWireCoEdgeOrders ( ) const

Verify coedge ordering consistency for all wires.

Returns
true if all wire coedge orders are valid

◆ Vertex()

const BRepGraphInc::VertexDef & BRepGraphInc_Storage::Vertex ( const BRepGraph_VertexId theVertex) const
inline

Returns the vertex entity at the given typed id.

Parameters
[in]theVertextyped vertex id

◆ VertexRef()

const BRepGraphInc::VertexRef & BRepGraphInc_Storage::VertexRef ( const BRepGraph_VertexRefId theRefId) const
inline

Returns the vertex reference entry at the given typed id.

◆ VertexRelations()

const BRepGraphInc::VertexRelations & BRepGraphInc_Storage::VertexRelations ( const BRepGraph_VertexId theId) const
inline

Return the vertex relations for a given vertex identifier.

Parameters
[in]theIdvertex identifier
Returns
const reference to the vertex relation representation

◆ Wire()

const BRepGraphInc::WireDef & BRepGraphInc_Storage::Wire ( const BRepGraph_WireId theWire) const
inline

Returns the wire entity at the given typed id.

Parameters
[in]theWiretyped wire id

◆ WireRef()

const BRepGraphInc::WireRef & BRepGraphInc_Storage::WireRef ( const BRepGraph_WireRefId theRefId) const
inline

Returns the wire reference entry at the given typed id.

◆ WireRelations()

const BRepGraphInc::WireRelations & BRepGraphInc_Storage::WireRelations ( const BRepGraph_WireId theId) const
inline

Return the wire relations for a given wire identifier.

Parameters
[in]theIdwire identifier
Returns
const reference to the wire relation representation

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