Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Data Structures | Public Member Functions
BRepGraph::RefsView Class Reference

Read-only view for RefId/RefUID-based reference storage. More...

#include <BRepGraph_RefsView.hxx>

Data Structures

class  ChildOps
 Generic child reference queries. More...
 
class  CoEdgeOps
 Coedge reference queries. More...
 
class  FaceOps
 Face reference queries. More...
 
class  OccurrenceOps
 Occurrence reference queries. More...
 
class  ShellOps
 Shell reference queries. More...
 
class  SolidOps
 Solid reference queries. More...
 
class  VertexOps
 Vertex reference queries. More...
 
class  WireOps
 Wire reference queries. More...
 

Public Member Functions

const ShellOpsShells () const
 Grouped shell reference queries.
 
const FaceOpsFaces () const
 Grouped face reference queries.
 
const WireOpsWires () const
 Grouped wire reference queries.
 
const CoEdgeOpsCoEdges () const
 Grouped coedge reference queries.
 
const VertexOpsVertices () const
 Grouped vertex reference queries.
 
const SolidOpsSolids () const
 Grouped solid reference queries.
 
const ChildOpsChildren () const
 Grouped child reference queries.
 
const OccurrenceOpsOccurrences () const
 Grouped occurrence reference queries.
 
BRepGraph_RefId RefAtStep (const BRepGraph_NodeId theParent, const int theStep) const
 Return the direct parent-owned RefId stored at the specified child step. This is a structural lookup over the parent's raw ref arrays and does not skip removed refs or refs targeting removed child defs.
 
BRepGraph_NodeId ChildNode (const BRepGraph_RefId theRef) const
 Resolve the child definition node referenced by any typed RefId.
 
bool IsRemoved (const BRepGraph_RefId theRef) const
 Return true if the specified typed RefId is marked removed.
 
TopLoc_Location LocalLocation (const BRepGraph_RefId theRef) const
 Return the local location carried by the specified typed RefId. OccurrenceRef and invalid refs return identity.
 
TopAbs_Orientation Orientation (const BRepGraph_RefId theRef) const
 Return the orientation carried by the specified typed RefId. CoEdgeRef, OccurrenceRef, and invalid refs return TopAbs_FORWARD.
 

Detailed Description

Read-only view for RefId/RefUID-based reference storage.

This view exposes reference-entry storage:

Identity semantics:

RefsView vs TopoView naming

RefsView accessors take reference IDs (BRepGraph_ShellRefId, BRepGraph_FaceRefId) and return reference-entry structs carrying per-use orientation and location. TopoView accessors take definition IDs (BRepGraph_ShellId, BRepGraph_FaceId) and return definition structs.

Iterating over references

Reference entries are primarily traversed in parent-owned context through the typed grouped IdsOf accessors. When flat iteration is needed, iterate using the matching typed RefId over the appropriate grouped Nb() or NbActive() count:

const BRepGraph_FaceRefId anEndFaceRefId = aRefs.Faces().EndId();
for (BRepGraph_FaceRefId aFaceRefId = aRefs.Faces().StartId();
{
const BRepGraphInc::FaceRef& aFR = aRefs.Faces().Entry(aFaceRefId);
if (aFR.IsRemoved)
continue;
// use aFR.FaceDefId, aFR.Orientation, aFR.Location ...
}
Read-only view for RefId/RefUID-based reference storage.
Definition BRepGraph_RefsView.hxx:69
STL input iterator that wraps an OCCT More()/Next() iterator.
Definition NCollection_ForwardRange.hxx:142
Compile-time typed wrapper around BRepGraph_RefId.
Definition BRepGraph_RefId.hxx:50
Face reference storage entry.
Definition BRepGraphInc_Reference.hxx:61

To iterate refs belonging to a specific parent, use the grouped IdsOf accessors:

{
const BRepGraphInc::WireRef& aWR = aRefs.Wires().Entry(aWireRefId);
// ...
}
const WireOps & Wires() const
Grouped wire reference queries.
Definition BRepGraph_RefsView.hxx:298
Wire reference storage entry.
Definition BRepGraphInc_Reference.hxx:71

Member Function Documentation

◆ ChildNode()

BRepGraph_NodeId BRepGraph::RefsView::ChildNode ( const BRepGraph_RefId theRef) const

Resolve the child definition node referenced by any typed RefId.

◆ Children()

const ChildOps & BRepGraph::RefsView::Children ( ) const
inline

Grouped child reference queries.

◆ CoEdges()

const CoEdgeOps & BRepGraph::RefsView::CoEdges ( ) const
inline

Grouped coedge reference queries.

◆ Faces()

const FaceOps & BRepGraph::RefsView::Faces ( ) const
inline

Grouped face reference queries.

◆ IsRemoved()

bool BRepGraph::RefsView::IsRemoved ( const BRepGraph_RefId theRef) const

Return true if the specified typed RefId is marked removed.

◆ LocalLocation()

TopLoc_Location BRepGraph::RefsView::LocalLocation ( const BRepGraph_RefId theRef) const

Return the local location carried by the specified typed RefId. OccurrenceRef and invalid refs return identity.

◆ Occurrences()

const OccurrenceOps & BRepGraph::RefsView::Occurrences ( ) const
inline

Grouped occurrence reference queries.

◆ Orientation()

TopAbs_Orientation BRepGraph::RefsView::Orientation ( const BRepGraph_RefId theRef) const

Return the orientation carried by the specified typed RefId. CoEdgeRef, OccurrenceRef, and invalid refs return TopAbs_FORWARD.

◆ RefAtStep()

BRepGraph_RefId BRepGraph::RefsView::RefAtStep ( const BRepGraph_NodeId theParent,
const int theStep ) const

Return the direct parent-owned RefId stored at the specified child step. This is a structural lookup over the parent's raw ref arrays and does not skip removed refs or refs targeting removed child defs.

◆ Shells()

const ShellOps & BRepGraph::RefsView::Shells ( ) const
inline

Grouped shell reference queries.

◆ Solids()

const SolidOps & BRepGraph::RefsView::Solids ( ) const
inline

Grouped solid reference queries.

◆ Vertices()

const VertexOps & BRepGraph::RefsView::Vertices ( ) const
inline

Grouped vertex reference queries.

◆ Wires()

const WireOps & BRepGraph::RefsView::Wires ( ) const
inline

Grouped wire reference queries.


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