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

Occurrence mutation operations. More...

#include <BRepGraph_EditorView.hxx>

Public Member Functions

BRepGraph_MutGuard< BRepGraphInc::OccurrenceDef > Mut (const BRepGraph_OccurrenceId theOccurrence)
 Return scoped mutable occurrence definition guard.
BRepGraph_MutGuard< BRepGraphInc::OccurrenceRef > MutRef (const BRepGraph_OccurrenceRefId theOccurrenceRef)
 Return scoped mutable occurrence reference guard.
void SetRefLocalLocation (const BRepGraph_OccurrenceRefId theOccurrenceRef, const TopLoc_Location &theLoc)
 Set the local location of an occurrence reference and fire immediate notification.
void SetRefLocalLocation (BRepGraph_MutGuard< BRepGraphInc::OccurrenceRef > &theMut, const TopLoc_Location &theLoc)
 Set the local location of an occurrence reference inside a batched mutation scope.
void SetChildNodeId (const BRepGraph_OccurrenceId theOccurrence, const BRepGraph_NodeId theChildNodeId)
 Set the child node referenced by an occurrence definition. Invalid or removed occurrence ids are ignored. The child must be an active topology node or an active Product; invalid, removed, and Occurrence child ids are ignored.
void SetChildNodeId (BRepGraph_MutGuard< BRepGraphInc::OccurrenceDef > &theMut, const BRepGraph_NodeId theChildNodeId)
 Set the child node id inside a batched mutation scope. Invalid, removed, and Occurrence child ids are ignored.
void SetRefChildOccurrenceId (const BRepGraph_OccurrenceRefId theOccurrenceRef, const BRepGraph_OccurrenceId theOccurrence)
 Rewire an occurrence reference to a different occurrence def (rebinds ProductToOccurrences).
void SetRefChildOccurrenceId (BRepGraph_MutGuard< BRepGraphInc::OccurrenceRef > &theMut, const BRepGraph_OccurrenceId theOccurrence)

Detailed Description

Occurrence mutation operations.

Member Function Documentation

◆ Mut()

BRepGraph_MutGuard< BRepGraphInc::OccurrenceDef > BRepGraph::EditorView::OccurrenceOps::Mut ( const BRepGraph_OccurrenceId theOccurrence)
nodiscard

Return scoped mutable occurrence definition guard.

◆ MutRef()

BRepGraph_MutGuard< BRepGraphInc::OccurrenceRef > BRepGraph::EditorView::OccurrenceOps::MutRef ( const BRepGraph_OccurrenceRefId theOccurrenceRef)
nodiscard

Return scoped mutable occurrence reference guard.

◆ SetChildNodeId() [1/2]

void BRepGraph::EditorView::OccurrenceOps::SetChildNodeId ( BRepGraph_MutGuard< BRepGraphInc::OccurrenceDef > & theMut,
const BRepGraph_NodeId theChildNodeId )

Set the child node id inside a batched mutation scope. Invalid, removed, and Occurrence child ids are ignored.

◆ SetChildNodeId() [2/2]

void BRepGraph::EditorView::OccurrenceOps::SetChildNodeId ( const BRepGraph_OccurrenceId theOccurrence,
const BRepGraph_NodeId theChildNodeId )

Set the child node referenced by an occurrence definition. Invalid or removed occurrence ids are ignored. The child must be an active topology node or an active Product; invalid, removed, and Occurrence child ids are ignored.

◆ SetRefChildOccurrenceId() [1/2]

void BRepGraph::EditorView::OccurrenceOps::SetRefChildOccurrenceId ( BRepGraph_MutGuard< BRepGraphInc::OccurrenceRef > & theMut,
const BRepGraph_OccurrenceId theOccurrence )

◆ SetRefChildOccurrenceId() [2/2]

void BRepGraph::EditorView::OccurrenceOps::SetRefChildOccurrenceId ( const BRepGraph_OccurrenceRefId theOccurrenceRef,
const BRepGraph_OccurrenceId theOccurrence )

Rewire an occurrence reference to a different occurrence def (rebinds ProductToOccurrences).

◆ SetRefLocalLocation() [1/2]

void BRepGraph::EditorView::OccurrenceOps::SetRefLocalLocation ( BRepGraph_MutGuard< BRepGraphInc::OccurrenceRef > & theMut,
const TopLoc_Location & theLoc )

Set the local location of an occurrence reference inside a batched mutation scope.

Parameters
[in]theMutactive mutable occurrence reference guard
[in]theLocnew local location

◆ SetRefLocalLocation() [2/2]

void BRepGraph::EditorView::OccurrenceOps::SetRefLocalLocation ( const BRepGraph_OccurrenceRefId theOccurrenceRef,
const TopLoc_Location & theLoc )

Set the local location of an occurrence reference and fire immediate notification.

Parameters
[in]theOccurrenceReftyped occurrence reference identifier
[in]theLocnew local location

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