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

Product-oriented raw assembly queries. More...

#include <BRepGraph_TopoView.hxx>

Public Member Functions

uint32_t Nb () const
 Return the total number of product definitions (including soft-removed).
uint32_t NbActive () const
 Return the number of active (non-soft-removed) product definitions.
BRepGraph_ProductId StartId () const
 Return the first valid product identifier for iteration.
BRepGraph_ProductId EndId () const
 Return the past-the-end product identifier (one past the last valid id).
const BRepGraphInc::ProductDef & Definition (const BRepGraph_ProductId theProduct) const
 Return the definition struct for the given product.
const BRepGraphInc::ProductRelations & Relations (const BRepGraph_ProductId theProduct) const
 Return the relation struct (occurrences, shape root) for the given product.
BRepGraph_NodeId ShapeRoot (const BRepGraph_ProductId theProduct) const
 Return the topology root NodeId for the given product. For assemblies (no topology root) returns an invalid NodeId.
bool IsAssembly (const BRepGraph_ProductId theProduct) const
 True if the product is an assembly (has active child occurrences and no topology root).
bool IsPart (const BRepGraph_ProductId theProduct) const
 True if the product is a part (has a valid topology root).
BRepGraph_NodeId ShapeRootNode (const BRepGraph_ProductId theProduct) const
 Return the topology root NodeId for a part product. For assemblies (no topology root) returns an invalid NodeId.
uint32_t NbComponents (const BRepGraph_ProductId theProduct) const
 Number of active child occurrences of a product.
BRepGraph_OccurrenceId Component (const BRepGraph_ProductId theProduct, const int theComponentIdx) const
 Return the i-th active child occurrence identifier of a product.

Detailed Description

Product-oriented raw assembly queries.

Member Function Documentation

◆ Component()

BRepGraph_OccurrenceId BRepGraph::TopoView::ProductOps::Component ( const BRepGraph_ProductId theProduct,
const int theComponentIdx ) const
nodiscard

Return the i-th active child occurrence identifier of a product.

Parameters
[in]theProducttyped product definition identifier
[in]theComponentIdxzero-based active occurrence index within the product

◆ Definition()

const BRepGraphInc::ProductDef & BRepGraph::TopoView::ProductOps::Definition ( const BRepGraph_ProductId theProduct) const
nodiscard

Return the definition struct for the given product.

Parameters
[in]theProducttyped product definition identifier

◆ EndId()

BRepGraph_ProductId BRepGraph::TopoView::ProductOps::EndId ( ) const
inlinenodiscard

Return the past-the-end product identifier (one past the last valid id).

◆ IsAssembly()

bool BRepGraph::TopoView::ProductOps::IsAssembly ( const BRepGraph_ProductId theProduct) const
nodiscard

True if the product is an assembly (has active child occurrences and no topology root).

Parameters
[in]theProducttyped product definition identifier

◆ IsPart()

bool BRepGraph::TopoView::ProductOps::IsPart ( const BRepGraph_ProductId theProduct) const
nodiscard

True if the product is a part (has a valid topology root).

Parameters
[in]theProducttyped product definition identifier

◆ Nb()

uint32_t BRepGraph::TopoView::ProductOps::Nb ( ) const
nodiscard

Return the total number of product definitions (including soft-removed).

◆ NbActive()

uint32_t BRepGraph::TopoView::ProductOps::NbActive ( ) const
nodiscard

Return the number of active (non-soft-removed) product definitions.

◆ NbComponents()

uint32_t BRepGraph::TopoView::ProductOps::NbComponents ( const BRepGraph_ProductId theProduct) const
nodiscard

Number of active child occurrences of a product.

Parameters
[in]theProducttyped product definition identifier

◆ Relations()

const BRepGraphInc::ProductRelations & BRepGraph::TopoView::ProductOps::Relations ( const BRepGraph_ProductId theProduct) const
nodiscard

Return the relation struct (occurrences, shape root) for the given product.

Parameters
[in]theProducttyped product definition identifier

◆ ShapeRoot()

BRepGraph_NodeId BRepGraph::TopoView::ProductOps::ShapeRoot ( const BRepGraph_ProductId theProduct) const
nodiscard

Return the topology root NodeId for the given product. For assemblies (no topology root) returns an invalid NodeId.

Parameters
[in]theProducttyped product definition identifier

◆ ShapeRootNode()

BRepGraph_NodeId BRepGraph::TopoView::ProductOps::ShapeRootNode ( const BRepGraph_ProductId theProduct) const
nodiscard

Return the topology root NodeId for a part product. For assemblies (no topology root) returns an invalid NodeId.

Parameters
[in]theProducttyped product definition identifier

◆ StartId()

BRepGraph_ProductId BRepGraph::TopoView::ProductOps::StartId ( ) const
inlinenodiscard

Return the first valid product identifier for iteration.


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