TypeRegistry
- class omni.graph.core.autonode.TypeRegistry
Bases:
object
Main singleton for storing graph objects and generating and registering functions.
Methods
__init__
()add_to_graph
(obj)Adds an object `obj` to the data store without checking for uniqueness of held object.
get_func
(unique_name)Retrieves a function from the object store
instance
()Retrieves the class instance for this singleton.
remove_from_graph
(obj_id)Attempts to remove an object ID from the object store.
- __init__()
- classmethod add_to_graph(obj) int
Adds an object `obj` to the data store without checking for uniqueness of held object. Does check uniqueness of reference object.
- Attributes
obj: Object to add to the data store.
- Returns
the object id.
- classmethod get_func(unique_name: str) Optional[omni.graph.core._impl.autonode.type_definitions.AutoNodeDefinitionWrapper]
Retrieves a function from the object store
- Attributes
unique_name: function’s qualified name. Name mangling is handled by this class
- Returns
Function Wrapper.
- classmethod instance()
Retrieves the class instance for this singleton.
- Returns
Class instance
- classmethod remove_from_graph(obj_id: int) omni.graph.core._impl.autonode.type_definitions.AutographDataWrapper
Attempts to remove an object ID from the object store.
- Attributes
obj_id: the object ID to be removed from the data store.
- Returns
the object stored if it was found, None otherwise.