![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Dense GUID-keyed runtime registry of graph layers. More...
#include <BRepGraph_LayerRegistry.hxx>
Public Member Functions | |
| BRepGraph_LayerRegistry ()=default | |
| BRepGraph_LayerRegistry (const BRepGraph_LayerRegistry &)=delete | |
| BRepGraph_LayerRegistry & | operator= (const BRepGraph_LayerRegistry &)=delete |
| BRepGraph_LayerRegistry (BRepGraph_LayerRegistry &&) noexcept=default | |
| BRepGraph_LayerRegistry & | operator= (BRepGraph_LayerRegistry &&) noexcept=default |
| void | SetOwningGraph (BRepGraph *theGraph) noexcept |
| Bind the owning graph. Propagates to every registered layer. | |
| BRepGraph * | OwningGraph () const noexcept |
| Owning graph bound via SetOwningGraph(), or nullptr. | |
| int | RegisterLayer (const occ::handle< BRepGraph_Layer > &theLayer) |
| Register a layer. Replaces an existing layer with the same GUID. | |
| void | UnregisterLayer (const Standard_GUID &theGUID) |
| Remove a layer by GUID. | |
| occ::handle< BRepGraph_Layer > | FindLayer (const Standard_GUID &theGUID) const |
| Find a layer by GUID. Returns null handle if not found. | |
| template<typename T > | |
| occ::handle< T > | FindLayer () const |
| Typed convenience lookup by layer GUID. | |
| int | FindSlot (const Standard_GUID &theGUID) const |
| Return current slot for a GUID, or -1 if not registered. | |
| const occ::handle< BRepGraph_Layer > & | Layer (const int theSlot) const |
| Return layer by slot index. | |
| int | NbLayers () const |
| Number of registered layers. | |
| bool | HasModificationSubscribers () const |
| True if any registered layer subscribes to node modification events. | |
| int | SubscribedKindsMask () const |
| Bitwise OR of all registered layer node subscription masks. | |
| void | DispatchOnNodeRemoved (const BRepGraph_NodeId theNode, const BRepGraph_NodeId theReplacement) noexcept |
| Dispatch OnNodeRemoved to all registered layers. | |
| void | DispatchNodeModified (const BRepGraph_NodeId theNode) noexcept |
| Dispatch OnNodeModified to subscribed layers. | |
| void | DispatchNodesModified (const NCollection_DynamicArray< BRepGraph_NodeId > &theModifiedNodes, const int theModifiedKindsMask) noexcept |
| Dispatch OnNodesModified to subscribed layers. | |
| void | DispatchOnCompact (const NCollection_DataMap< BRepGraph_NodeId, BRepGraph_NodeId > &theRemapMap) noexcept |
| Dispatch OnCompact to all registered layers. | |
| bool | HasRefModificationSubscribers () const |
| True if any registered layer subscribes to reference modification events. | |
| int | SubscribedRefKindsMask () const |
| Bitwise OR of all registered layer reference subscription masks. | |
| void | DispatchOnRefRemoved (const BRepGraph_RefId theRef) noexcept |
| Dispatch OnRefRemoved to all registered layers (unconditional - not filtered). | |
| void | DispatchRefModified (const BRepGraph_RefId theRef) noexcept |
| Dispatch OnRefModified to subscribed layers (immediate mode). | |
| void | DispatchRefsModified (const NCollection_DynamicArray< BRepGraph_RefId > &theModifiedRefs, const int theModifiedRefKindsMask) noexcept |
| Dispatch OnRefsModified to subscribed layers (deferred/batch mode). | |
| void | ClearAll () noexcept |
| Clear all registered layer payloads without unregistering them. | |
| void | InvalidateAll () noexcept |
| Invalidate all registered layer payloads. | |
Dense GUID-keyed runtime registry of graph layers.
Stores registered layers in a compact vector for O(1) slot access and a GUID-to-slot map for O(1) lookup by stable public identity.
|
default |
|
delete |
|
defaultnoexcept |
|
noexcept |
Clear all registered layer payloads without unregistering them.
|
noexcept |
Dispatch OnNodeModified to subscribed layers.
|
noexcept |
Dispatch OnNodesModified to subscribed layers.
|
noexcept |
Dispatch OnCompact to all registered layers.
|
noexcept |
Dispatch OnNodeRemoved to all registered layers.
|
noexcept |
Dispatch OnRefRemoved to all registered layers (unconditional - not filtered).
|
noexcept |
Dispatch OnRefModified to subscribed layers (immediate mode).
|
noexcept |
Dispatch OnRefsModified to subscribed layers (deferred/batch mode).
|
inline |
Typed convenience lookup by layer GUID.
| occ::handle< BRepGraph_Layer > BRepGraph_LayerRegistry::FindLayer | ( | const Standard_GUID & | theGUID | ) | const |
Find a layer by GUID. Returns null handle if not found.
| int BRepGraph_LayerRegistry::FindSlot | ( | const Standard_GUID & | theGUID | ) | const |
Return current slot for a GUID, or -1 if not registered.
|
inline |
True if any registered layer subscribes to node modification events.
|
inline |
True if any registered layer subscribes to reference modification events.
|
noexcept |
Invalidate all registered layer payloads.
| const occ::handle< BRepGraph_Layer > & BRepGraph_LayerRegistry::Layer | ( | const int | theSlot | ) | const |
Return layer by slot index.
|
inline |
Number of registered layers.
|
defaultnoexcept |
|
delete |
|
inlinenoexcept |
Owning graph bound via SetOwningGraph(), or nullptr.
| int BRepGraph_LayerRegistry::RegisterLayer | ( | const occ::handle< BRepGraph_Layer > & | theLayer | ) |
Register a layer. Replaces an existing layer with the same GUID.
Bind the owning graph. Propagates to every registered layer.
|
inline |
Bitwise OR of all registered layer node subscription masks.
|
inline |
Bitwise OR of all registered layer reference subscription masks.
| void BRepGraph_LayerRegistry::UnregisterLayer | ( | const Standard_GUID & | theGUID | ) |
Remove a layer by GUID.