Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
BRepGraph_SupplementEditor Class Reference

Lightweight mutation facade for runtime supplement attachments. More...

#include <BRepGraph_SupplementEditor.hxx>

Public Member Functions

 BRepGraph_SupplementEditor (BRepGraph &theGraph)
 Create an editor facade bound to one graph instance.
uint64_t Attach (BRepGraph_NodeId theOwner, BRepGraph_LayerTopoSupplement::AttachmentKind theKind, const TopoDS_Shape &theShape)
 Attach one supplemental shape to an arbitrary supported core owner.
uint64_t AttachToVertex (BRepGraph_VertexId theVertex, const TopoDS_Shape &theShape, BRepGraph_LayerTopoSupplement::AttachmentKind theKind=BRepGraph_LayerTopoSupplement::AttachmentKind::VertexSupplementShape)
 Attach a supplemental shape to a vertex owner.
uint64_t AttachToEdge (BRepGraph_EdgeId theEdge, const TopoDS_Shape &theShape, BRepGraph_LayerTopoSupplement::AttachmentKind theKind=BRepGraph_LayerTopoSupplement::AttachmentKind::EdgeInternalVertex)
 Attach a supplemental shape to an edge owner.
uint64_t AttachToFace (BRepGraph_FaceId theFace, const TopoDS_Shape &theShape, BRepGraph_LayerTopoSupplement::AttachmentKind theKind=BRepGraph_LayerTopoSupplement::AttachmentKind::FaceDirectVertex)
 Attach a supplemental shape to a face owner.
uint64_t AttachToSolid (BRepGraph_SolidId theSolid, const TopoDS_Shape &theShape, BRepGraph_LayerTopoSupplement::AttachmentKind theKind=BRepGraph_LayerTopoSupplement::AttachmentKind::SolidAuxShape)
 Attach a supplemental shape to a solid owner.
uint64_t AttachToCompSolid (BRepGraph_CompSolidId theCompSolid, const TopoDS_Shape &theShape, BRepGraph_LayerTopoSupplement::AttachmentKind theKind=BRepGraph_LayerTopoSupplement::AttachmentKind::CompSolidAuxShape)
 Attach a supplemental shape to a compsolid owner.
uint64_t AttachToShell (BRepGraph_ShellId theShell, const TopoDS_Shape &theShape, BRepGraph_LayerTopoSupplement::AttachmentKind theKind=BRepGraph_LayerTopoSupplement::AttachmentKind::ShellAuxShape)
 Attach a supplemental shape to a shell owner.
uint64_t AttachToCompound (BRepGraph_CompoundId theCompound, const TopoDS_Shape &theShape, BRepGraph_LayerTopoSupplement::AttachmentKind theKind=BRepGraph_LayerTopoSupplement::AttachmentKind::CompoundAuxShape)
 Attach a supplemental shape to a compound owner.
bool RemoveAttachment (uint64_t theUid)
 Remove one attachment by uid.

Detailed Description

Lightweight mutation facade for runtime supplement attachments.

Constructor & Destructor Documentation

◆ BRepGraph_SupplementEditor()

BRepGraph_SupplementEditor::BRepGraph_SupplementEditor ( BRepGraph & theGraph)
inlineexplicit

Create an editor facade bound to one graph instance.

Parameters
[in]theGraphgraph receiving supplement attachments

Member Function Documentation

◆ Attach()

uint64_t BRepGraph_SupplementEditor::Attach ( BRepGraph_NodeId theOwner,
BRepGraph_LayerTopoSupplement::AttachmentKind theKind,
const TopoDS_Shape & theShape )
nodiscard

Attach one supplemental shape to an arbitrary supported core owner.

Parameters
[in]theOwneractive owner node
[in]theKindsemantic attachment kind
[in]theShapesupplemental shape to attach
Returns
non-zero attachment uid on success, 0 on rejection

◆ AttachToCompound()

uint64_t BRepGraph_SupplementEditor::AttachToCompound ( BRepGraph_CompoundId theCompound,
const TopoDS_Shape & theShape,
BRepGraph_LayerTopoSupplement::AttachmentKind theKind = BRepGraph_LayerTopoSupplement::AttachmentKind::CompoundAuxShape )
nodiscard

Attach a supplemental shape to a compound owner.

Parameters
[in]theCompoundactive compound owner
[in]theShapesupplemental shape to attach
[in]theKindsemantic attachment kind
Returns
non-zero attachment uid on success, 0 on rejection

◆ AttachToCompSolid()

uint64_t BRepGraph_SupplementEditor::AttachToCompSolid ( BRepGraph_CompSolidId theCompSolid,
const TopoDS_Shape & theShape,
BRepGraph_LayerTopoSupplement::AttachmentKind theKind = BRepGraph_LayerTopoSupplement::AttachmentKind::CompSolidAuxShape )
nodiscard

Attach a supplemental shape to a compsolid owner.

Parameters
[in]theCompSolidactive compsolid owner
[in]theShapesupplemental shape to attach
[in]theKindsemantic attachment kind
Returns
non-zero attachment uid on success, 0 on rejection

◆ AttachToEdge()

uint64_t BRepGraph_SupplementEditor::AttachToEdge ( BRepGraph_EdgeId theEdge,
const TopoDS_Shape & theShape,
BRepGraph_LayerTopoSupplement::AttachmentKind theKind = BRepGraph_LayerTopoSupplement::AttachmentKind::EdgeInternalVertex )
nodiscard

Attach a supplemental shape to an edge owner.

Parameters
[in]theEdgeactive edge owner
[in]theShapesupplemental shape to attach
[in]theKindsemantic attachment kind
Returns
non-zero attachment uid on success, 0 on rejection

◆ AttachToFace()

uint64_t BRepGraph_SupplementEditor::AttachToFace ( BRepGraph_FaceId theFace,
const TopoDS_Shape & theShape,
BRepGraph_LayerTopoSupplement::AttachmentKind theKind = BRepGraph_LayerTopoSupplement::AttachmentKind::FaceDirectVertex )
nodiscard

Attach a supplemental shape to a face owner.

Parameters
[in]theFaceactive face owner
[in]theShapesupplemental shape to attach
[in]theKindsemantic attachment kind
Returns
non-zero attachment uid on success, 0 on rejection

◆ AttachToShell()

uint64_t BRepGraph_SupplementEditor::AttachToShell ( BRepGraph_ShellId theShell,
const TopoDS_Shape & theShape,
BRepGraph_LayerTopoSupplement::AttachmentKind theKind = BRepGraph_LayerTopoSupplement::AttachmentKind::ShellAuxShape )
nodiscard

Attach a supplemental shape to a shell owner.

Parameters
[in]theShellactive shell owner
[in]theShapesupplemental shape to attach
[in]theKindsemantic attachment kind
Returns
non-zero attachment uid on success, 0 on rejection

◆ AttachToSolid()

uint64_t BRepGraph_SupplementEditor::AttachToSolid ( BRepGraph_SolidId theSolid,
const TopoDS_Shape & theShape,
BRepGraph_LayerTopoSupplement::AttachmentKind theKind = BRepGraph_LayerTopoSupplement::AttachmentKind::SolidAuxShape )
nodiscard

Attach a supplemental shape to a solid owner.

Parameters
[in]theSolidactive solid owner
[in]theShapesupplemental shape to attach
[in]theKindsemantic attachment kind
Returns
non-zero attachment uid on success, 0 on rejection

◆ AttachToVertex()

uint64_t BRepGraph_SupplementEditor::AttachToVertex ( BRepGraph_VertexId theVertex,
const TopoDS_Shape & theShape,
BRepGraph_LayerTopoSupplement::AttachmentKind theKind = BRepGraph_LayerTopoSupplement::AttachmentKind::VertexSupplementShape )
nodiscard

Attach a supplemental shape to a vertex owner.

Parameters
[in]theVertexactive vertex owner
[in]theShapesupplemental shape to attach
[in]theKindsemantic attachment kind
Returns
non-zero attachment uid on success, 0 on rejection

◆ RemoveAttachment()

bool BRepGraph_SupplementEditor::RemoveAttachment ( uint64_t theUid)

Remove one attachment by uid.

Parameters
[in]theUidlayer-local attachment uid
Returns
true when the attachment existed and was removed

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