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

Occurrence-oriented raw assembly queries. More...

#include <BRepGraph_TopoView.hxx>

Public Member Functions

uint32_t Nb () const
 Return the total number of occurrence definitions (including soft-removed).
uint32_t NbActive () const
 Return the number of active (non-soft-removed) occurrence definitions.
BRepGraph_OccurrenceId StartId () const
 Return the first valid occurrence identifier for iteration.
BRepGraph_OccurrenceId EndId () const
 Return the past-the-end occurrence identifier (one past the last valid id).
const BRepGraphInc::OccurrenceDef & Definition (const BRepGraph_OccurrenceId theOccurrence) const
 Return the definition struct for the given occurrence.
const BRepGraphInc::OccurrenceRelations & Relations (const BRepGraph_OccurrenceId theOccurrence) const
 Return the relation struct (parent, placement) for the given occurrence.
BRepGraph_ProductId Product (const BRepGraph_OccurrenceId theOccurrence) const
 Return the product that this occurrence instantiates.
BRepGraph_ProductId ParentProduct (const BRepGraph_OccurrenceId theOccurrence) const
 Return the parent product that owns this occurrence.
TopLoc_Location OccurrenceLocation (const BRepGraph_OccurrenceId theOccurrence) const
 Return the local placement of an occurrence (OccurrenceRef::LocalLocation). This is the placement relative to the parent product, not the global placement. For global placement, use ChildExplorer with cumulative location tracking.

Detailed Description

Occurrence-oriented raw assembly queries.

Member Function Documentation

◆ Definition()

const BRepGraphInc::OccurrenceDef & BRepGraph::TopoView::OccurrenceOps::Definition ( const BRepGraph_OccurrenceId theOccurrence) const
nodiscard

Return the definition struct for the given occurrence.

Parameters
[in]theOccurrencetyped occurrence identifier

◆ EndId()

BRepGraph_OccurrenceId BRepGraph::TopoView::OccurrenceOps::EndId ( ) const
inlinenodiscard

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

◆ Nb()

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

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

◆ NbActive()

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

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

◆ OccurrenceLocation()

TopLoc_Location BRepGraph::TopoView::OccurrenceOps::OccurrenceLocation ( const BRepGraph_OccurrenceId theOccurrence) const
nodiscard

Return the local placement of an occurrence (OccurrenceRef::LocalLocation). This is the placement relative to the parent product, not the global placement. For global placement, use ChildExplorer with cumulative location tracking.

Parameters
[in]theOccurrencetyped occurrence identifier
Returns
OccurrenceRef::LocalLocation, or identity if not found

◆ ParentProduct()

BRepGraph_ProductId BRepGraph::TopoView::OccurrenceOps::ParentProduct ( const BRepGraph_OccurrenceId theOccurrence) const
nodiscard

Return the parent product that owns this occurrence.

Parameters
[in]theOccurrencetyped occurrence identifier

◆ Product()

BRepGraph_ProductId BRepGraph::TopoView::OccurrenceOps::Product ( const BRepGraph_OccurrenceId theOccurrence) const
nodiscard

Return the product that this occurrence instantiates.

Parameters
[in]theOccurrencetyped occurrence identifier

◆ Relations()

const BRepGraphInc::OccurrenceRelations & BRepGraph::TopoView::OccurrenceOps::Relations ( const BRepGraph_OccurrenceId theOccurrence) const
nodiscard

Return the relation struct (parent, placement) for the given occurrence.

Parameters
[in]theOccurrencetyped occurrence identifier

◆ StartId()

BRepGraph_OccurrenceId BRepGraph::TopoView::OccurrenceOps::StartId ( ) const
inlinenodiscard

Return the first valid occurrence identifier for iteration.


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