![]() |
Open CASCADE Technology Reference Manual 8.0.2
|
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. | |
Generic topology and assembly count / meta queries.
|
nodiscard |
Return the compound (child) reference identifiers that point to the given node.
| [in] | theChild | node identifier |
|
nodiscard |
True if the node has at least one compound parent.
| [in] | theNode | node identifier |
|
nodiscard |
True if the node has at least one occurrence parent.
| [in] | theNode | node identifier |
|
nodiscard |
Return true if the node id is valid and not soft-removed.
|
nodiscard |
Return true if the given node is invalid or has been soft-removed.
| [in] | theNode | node identifier |
|
nodiscard |
Return true if the node id kind and index are within storage bounds.
|
nodiscard |
Return the number of node definitions of the specified kind (including soft-removed).
|
nodiscard |
Return the total number of nodes across all topology kinds (including soft-removed).
|
nodiscard |
Return the occurrence reference identifiers that point to the given node.
| [in] | theChild | node identifier |
|
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.
| [in] | theId | node identifier (any kind) |