AutoNodeDefinitionWrapper

class omni.graph.core.autonode.AutoNodeDefinitionWrapper

Bases: abc.ABC

Container for a single node representation consumed by the Ogn code generator. Class is abstract and meant to be overridden. A sufficient implementation overrides these methods: * get_ogn(self) -> Dict * get_node_impl(self) * get_unique_name(self) -> str * get_module_name(self) -> str

Methods

__init__()

get_module_name()

Get the module this autograph method was defined in.

get_node_impl()

Returns the Ogn class implementing the node behavior.

get_ogn()

Get the Ogn dictionary representation of the node interface.

get_unique_name()

Get nodes unique name, to be saved as an accessor in the node database.

__init__()
abstract get_module_name() str

Get the module this autograph method was defined in.

Returns

the module name

abstract get_node_impl()

Returns the Ogn class implementing the node behavior. See omnigraph docuemntation on how to implement. A sufficient implementation contains a staticmethod with the function: compute(db)

abstract get_ogn() Dict

Get the Ogn dictionary representation of the node interface.

abstract get_unique_name() str

Get nodes unique name, to be saved as an accessor in the node database.

Returns

the non-manlged unique name