Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
BRepGraph::TopoView::GenOps Class Reference

Generic topology and assembly count / meta queries. More...

#include <BRepGraph_TopoView.hxx>

Public Member Functions

const BRepGraphInc::BaseDef * TopoEntity (const BRepGraph_NodeId theId) const
 Return the base definition pointer for any topology node (polymorphic). Returns null if the node id is invalid, out of range, or soft-removed.
const NCollection_LinearVector< BRepGraph_ChildRefId > & CompoundRefIds (const BRepGraph_NodeId theChild) const
 Return the compound (child) reference identifiers that point to the given node.
const NCollection_LinearVector< BRepGraph_OccurrenceRefId > & OccurrenceRefIds (const BRepGraph_NodeId theChild) const
 Return the occurrence reference identifiers that point to the given node.
bool HasCompoundParents (const BRepGraph_NodeId theNode) const
 True if the node has at least one compound parent.
bool HasOccurrenceParents (const BRepGraph_NodeId theNode) const
 True if the node has at least one occurrence parent.
uint32_t NbNodes () const
 Return the total number of nodes across all topology kinds (including soft-removed).
uint32_t Nb (const BRepGraph_NodeId::Kind theKind) const
 Return the number of node definitions of the specified kind (including soft-removed).
bool IsValid (const BRepGraph_NodeId theNode) const
 Return true if the node id kind and index are within storage bounds.
bool IsActive (const BRepGraph_NodeId theNode) const
 Return true if the node id is valid and not soft-removed.
bool IsRemoved (const BRepGraph_NodeId theNode) const
 Return true if the given node is invalid or has been soft-removed.

Detailed Description

Generic topology and assembly count / meta queries.

Member Function Documentation

◆ CompoundRefIds()

const NCollection_LinearVector< BRepGraph_ChildRefId > & BRepGraph::TopoView::GenOps::CompoundRefIds ( const BRepGraph_NodeId theChild) const
nodiscard

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

Parameters
[in]theChildnode identifier

◆ HasCompoundParents()

bool BRepGraph::TopoView::GenOps::HasCompoundParents ( const BRepGraph_NodeId theNode) const
nodiscard

True if the node has at least one compound parent.

Parameters
[in]theNodenode identifier

◆ HasOccurrenceParents()

bool BRepGraph::TopoView::GenOps::HasOccurrenceParents ( const BRepGraph_NodeId theNode) const
nodiscard

True if the node has at least one occurrence parent.

Parameters
[in]theNodenode identifier

◆ IsActive()

bool BRepGraph::TopoView::GenOps::IsActive ( const BRepGraph_NodeId theNode) const
nodiscard

Return true if the node id is valid and not soft-removed.

◆ IsRemoved()

bool BRepGraph::TopoView::GenOps::IsRemoved ( const BRepGraph_NodeId theNode) const
nodiscard

Return true if the given node is invalid or has been soft-removed.

Parameters
[in]theNodenode identifier

◆ IsValid()

bool BRepGraph::TopoView::GenOps::IsValid ( const BRepGraph_NodeId theNode) const
nodiscard

Return true if the node id kind and index are within storage bounds.

◆ Nb()

uint32_t BRepGraph::TopoView::GenOps::Nb ( const BRepGraph_NodeId::Kind theKind) const
nodiscard

Return the number of node definitions of the specified kind (including soft-removed).

◆ NbNodes()

uint32_t BRepGraph::TopoView::GenOps::NbNodes ( ) const
nodiscard

Return the total number of nodes across all topology kinds (including soft-removed).

◆ OccurrenceRefIds()

const NCollection_LinearVector< BRepGraph_OccurrenceRefId > & BRepGraph::TopoView::GenOps::OccurrenceRefIds ( const BRepGraph_NodeId theChild) const
nodiscard

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

Parameters
[in]theChildnode identifier

◆ TopoEntity()

const BRepGraphInc::BaseDef * BRepGraph::TopoView::GenOps::TopoEntity ( const BRepGraph_NodeId theId) const
nodiscard

Return the base definition pointer for any topology node (polymorphic). Returns null if the node id is invalid, out of range, or soft-removed.

Parameters
[in]theIdnode identifier (any kind)

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