GraphRegistry
- class omni.graph.core.GraphRegistry
Methods
__init__
(self)get_event_stream
(self)Get the event stream for the graph registry change notification.
get_node_type_version
(self, node_type_name)Finds the version number of the given node type.
inspect
(self, arg0)Runs the inspector on the graph registry
- __init__(self: omni.graph.core._omni_graph_core.GraphRegistry) None
- get_event_stream(self: omni.graph.core._omni_graph_core.GraphRegistry) carb::events::IEventStream
Get the event stream for the graph registry change notification.
The events that are raised are specified by GraphRegistryEvent. The payload for the added and removed events is the name of the node type being added or removed, and uses the key “node_type”.
- Returns
Event stream to monitor for graph registry changes
- Return type
(carb.events._events.IEventStream)
- get_node_type_version(self: omni.graph.core._omni_graph_core.GraphRegistry, node_type_name: str) int
Finds the version number of the given node type.
- Parameters
arg0 (str) – Name of the node type to check
- Returns
Version number registered for the node type, None if it is not registered
- Return type
(int)
- inspect(self: omni.graph.core._omni_graph_core.GraphRegistry, arg0: omni::core::Api<omni::inspect::IInspector_abi>) bool
Runs the inspector on the graph registry
- Parameters
arg0 (omni.inspect.Inspector) – The inspector to run
- Returns
True if the inspector was successfully run on the graph registry, False if it is not supported
- Return type
(bool)