file_path stringlengths 32 153 | content stringlengths 0 3.14M |
|---|---|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/parsing.py | from omni.graph.tools._impl.node_generator.attributes.parsing import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/ObjectIdAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.ObjectIdAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/naming.py | from omni.graph.tools._impl.node_generator.attributes.naming import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/DoubleAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.DoubleAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/NumericAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.NumericAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/AnyAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.AnyAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/FrameAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.FrameAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/NormalAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.NormalAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/VectorAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.VectorAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/Int64AttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.Int64AttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/UIntAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.UIntAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/ExecutionAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.ExecutionAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/BundleAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.BundleAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/RoleAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.RoleAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/management.py | from omni.graph.tools._impl.node_generator.attributes.management import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/ColorAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.ColorAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/BoolAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.BoolAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/PathAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.PathAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/UInt64AttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.UInt64AttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/UnionAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.UnionAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/UCharAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.UCharAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/MatrixAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.MatrixAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/IntAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.IntAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/PointAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.PointAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/HalfAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.HalfAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/AttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.AttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/QuaternionAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.QuaternionAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/node_generator/attributes/TexCoordAttributeManager.py | from omni.graph.tools._impl.node_generator.attributes.TexCoordAttributeManager import * # noqa: F401,PLW0401,PLW0614
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/debugging.py | """
Collection of tools to help with debugging the operation of scripts.
Mainly lives here so that all OGN-related files can access it, though the tools are pretty general.
"""
import os
import weakref
from contextlib import suppress
from functools import partial, wraps
from typing import Dict, List
from omni.ext impo... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/deprecate.py | """Manage deprecation for Python features for common use
All deprecation functions can be accessed from the top module level.
The :py:class:`omni.graph.tools.DeprecateMessage` class provides a simple way of logging a message that will only
show up once per session.
The :py:class:`omni.graph.tools.Dep... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/extension.py | """Extension management support"""
import omni.ext
__all__ = []
class _PublicExtension(omni.ext.IExt):
"""Dummy extension class that just serves to register and deregister the extension"""
def on_startup(self):
"""Callback when the extension is starting up"""
def on_shutdown(self):
"""C... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/__init__.py | __all__ = []
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/ogn_types.py | """Helper which contains utilities and data for converting between type representations"""
from typing import Optional
from pxr import Sdf
__all__ = []
# Maping of pxr.Sdf.ValueTypeNames to corresponding OGN types (not including the Array/[] suffixes)
_SDF_BASE_NAME_TO_OGN = {
"Bool": "bool",
"Color3d": "col... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/parse_scheduling.py | """Support for the parsing and interpretation of scheduling hints in the .ogn file"""
from __future__ import annotations # For the forward class reference type in compare()
import re
from enum import Enum
from typing import List, Optional, Union
from .utils import IndentedOutput, ParseError
# =====================... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/generate_python.py | """Support for generating a pythonic interface class for OmniGraph Nodes.
Exports:
generate_python: Create a NODE.ogn.py file containing a pythonic interface for the node data
"""
import json
import re
from contextlib import suppress
from typing import List, Optional
from .attributes.AttributeManager import Attri... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/main_docs.py | """
Create a table off contents file in index.rst that references all of the OmniGraph node generated
documentation files that live in that directory.
This processing is highly tied to the formatting of the OGN generated documentation files so if they
change this has to as well.
The table of contents will be in two s... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/generate_node_info.py | """
Support for updating the node information file for OmniGraph Nodes.
Exported Methods:
generate_node_info
"""
import json
from json.decoder import JSONDecodeError
from typing import Optional
from .nodes import NodeInterfaceGenerator
from .utils import GeneratorConfiguration, ParseError, ensure_writable_directo... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/main.py | # noqa: E501,PLW1203
"""Generate code and documentation for an OmniGraph Node description file.
Takes a JSON file containing information describing the configuration of an OmniGraph node and generates
a header file implementing a simplified interface to the graph ABI.
Run this script with the arg "--help" to see avai... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/generate_template.py | """Support for generating an annotated C++ template class for OmniGraph Nodes.
Exports:
generate_template: Create a NODE_template.cpp file containing sample uses of the generated interface
"""
from typing import List, Optional
from .attributes.AttributeManager import AttributeManager
from .attributes.naming impor... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/type_definitions.py | """Handle the mapping of OGN types onto the various generated code types"""
import json
from contextlib import suppress
from io import TextIOWrapper
from pathlib import Path
from typing import IO, Dict, List, Tuple, Union
from .attributes.AttributeManager import CppConfiguration
from .attributes.management import get_... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/generate_test_imports.py | """Contains the function that will generate the __init__.py file for the ogn/tests directory."""
import hashlib
import sys
from importlib import import_module
from pathlib import Path
from typing import List, Optional
from .nodes import NodeGenerationError
from .ThreadsafeOpen import ThreadsafeOpen
from .utils import ... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/__init__.py | |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/generate_cpp.py | # noqa: PLC0302
"""Support for generating C++ interface code for OmniGraph Nodes."""
import json
from itertools import zip_longest
from typing import List, Optional
from .attributes.AttributeManager import AttributeManager
from .attributes.management import list_without_runtime_attributes, split_attribute_list
from .a... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/register_ogn_nodes.py | from omni.graph.tools import DeprecationError
raise DeprecationError("register_ogn_nodes has moved from omni.graph.tools to omni.graph.core")
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/generate_tests.py | """Support for generating simple regression test code for OmniGraph Nodes.
The tests do three things:
1. Do a test "import" of the Python interface to the node
2. Do a test load of the USDA template interface for the node
3. Run all of the "tests" cases specified in the node's .ogn file
Exports:
gener... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/generate_usd.py | """Support for generating USD template files for OmniGraph Nodes.
Exports:
generate_usd: Create a NODETemplate.usda file containing a template for instantiation of the described node type
"""
from typing import List, Optional
from .attributes.AttributeManager import AttributeManager
from .nodes import NodeInterfa... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/utils.py | # noqa: PLC0302
"""Common constants, methods, and classes used by the various sections of the node generator.
These were split out into a separate file to avoid circular inclusions.
"""
import argparse
import csv
import io
import locale
import logging
import os
import re
import subprocess
import sys
from functools impo... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/ThreadsafeOpen.py | r"""
Support for safe file writing from multiple threads.
The build system is threaded, which introduces the possibility of multiple threads trying to access the
same generated OGN files at the same time (e.g. the Python test initialization file ogn/tests/__init__.py)
For that reason it is necessary to be able to ato... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/keys.py | """Common location for all of the keyword definitions for the .ogn format"""
# ==============================================================================================================
class AttributeKeys:
"""Container for the text for all of the .ogn keywords used at the attribute definition level"""
A... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/generate_documentation.py | """
Support for generating documentation files for OmniGraph Nodes.
The documentation is written in the reStructuredText format, consistent with API documentation.
Note that the script ../make_docs_toc.py relies on parsing the files so if the format changes it must be updated.
Exported Methods:
generate_documenti... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/nodes.py | # noqa: PLC0302
"""
Support for the various attribute types used in a node description file.
Provides classes that allow generic calls to check attribute information retrieved from the JSON node description
data. The main interface class AttributeManager is used to decipher, validate, and provide access to all
attribu... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/OmniGraphExtension.py | """
Support for managing the automatic creation and handling of an OGN-enabled extension.
This manages extensions outside of the build system, using Kit's automatic extension loading capabilities.
It explicitly does not handle running the generation scripts on .ogn files, though it does provide the directories
to whic... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/code_generation.py | """Interactive access to the .ogn code generator"""
import json
from typing import Dict, Optional, Union
from .generate_cpp import generate_cpp
from .generate_documentation import generate_documentation
from .generate_icon import generate_icon
from .generate_python import generate_python
from .generate_template import... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/generate_icon.py | """Support for generating an icon file representing a node type in the build directory."""
import os
import re
import shutil
from typing import Optional
from .nodes import NodeInterfaceGenerator
from .utils import GeneratorConfiguration, ParseError, ensure_writable_directory, logger
__all__ = ["generate_icon"]
clas... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/category_definitions.py | """Handle the mapping of OGN types onto the various generated code types"""
import json
from io import TextIOWrapper
from pathlib import Path
from typing import IO, Dict, List, Union
from .keys import NodeTypeKeys
from .utils import ParseError, is_comment
CategoryListType = Dict[str, List[str]]
# ==================... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/FloatAttributeManager.py | """
Contains the support class for managing attributes whose data is single precision numbers
"""
from typing import Any, List
from ..utils import ParseError
from .AttributeManager import CppConfiguration, CudaConfiguration
from .NumericAttributeManager import NumericAttributeManager, is_number_or_list_of_numbers, val... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/TokenAttributeManager.py | """
Contains the support class for managing attributes whose data is strings represented as tokens
"""
import json
from contextlib import suppress
from typing import Any, Dict, List
from ..utils import IndentedOutput, MetadataKeys, ParseError, check_token_name
from .AttributeManager import AttributeManager, CppConfigu... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/StringAttributeManager.py | """
Contains the support class for managing attributes whose data is strings
"""
import json
from typing import Any, List
from ..keys import CudaPointerValues, MemoryTypeValues
from ..utils import ParseError
from .AttributeManager import AttributeManager, CppConfiguration, CudaConfiguration
from .parsing import is_typ... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/TimeCodeAttributeManager.py | """
Contains the support class for managing attributes whose data is time codes
"""
from typing import Any, List
from .AttributeManager import CppConfiguration, CudaConfiguration
from .DoubleAttributeManager import DoubleAttributeManager
class TimeCodeAttributeManager(DoubleAttributeManager):
"""Support class fo... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/parsing.py | """
Constants used in parsing attributes in a .ogn file
"""
import ast
from typing import List, Tuple
from ..keys import AttributeKeys
# ======================================================================
# Legacy keyword support - use the values from keys.py for new code
KEY_ATTR_DEFAULT = AttributeKeys.DEFAULT
K... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/ObjectIdAttributeManager.py | """
Contains the support class for managing attributes whose data is strings represented as tokens
"""
from .AttributeManager import CppConfiguration, CudaConfiguration
from .UInt64AttributeManager import UInt64AttributeManager
class ObjectIdAttributeManager(UInt64AttributeManager):
"""Support class for attribute... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/naming.py | """This file contains support for the various utilities and constants used to manage attribute naming."""
from __future__ import annotations
import re
from typing import Any, Dict, Optional, Tuple
from ..utils import ParseError
# ======================================================================
# Namespaces for... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/DoubleAttributeManager.py | """
Contains the support class for managing attributes whose data is double precision numbers
"""
from typing import Any, List
from ..utils import ParseError
from .AttributeManager import CppConfiguration, CudaConfiguration
from .NumericAttributeManager import NumericAttributeManager, is_number_or_list_of_numbers
cl... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/NumericAttributeManager.py | """
Contains the support class for managing attributes whose data is all types of numeric values
Exports:
is_number
is_number_or_list_of_numbers
NumericAttributeManager
values_in_range
"""
from typing import List, Union
from ..utils import ParseError
from .AttributeManager import AttributeManager, Pro... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/AnyAttributeManager.py | """
Contains the support class for managing attributes whose data is any type of data, determined at runtime
"""
from typing import List
from ..keys import CudaPointerValues, MemoryTypeValues
from ..utils import _EXTENDED_TYPE_ANY, IndentedOutput, to_usd_docs, value_as_usd
from .AttributeManager import AttributeManage... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/FrameAttributeManager.py | """
Contains the support class for managing attributes whose data is cartesian frames
"""
from typing import Any, List
from .AttributeManager import CppConfiguration, CudaConfiguration
from .MatrixAttributeManager import MatrixAttributeManager
class FrameAttributeManager(MatrixAttributeManager):
"""Support class... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/NormalAttributeManager.py | """
Contains the support class for managing attributes whose data is arrays interpreted as surface normals
"""
from typing import Any, List
from .AttributeManager import CppConfiguration, CudaConfiguration
from .RoleAttributeManager import RoleAttributeManager
class NormalAttributeManager(RoleAttributeManager):
... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/__init__.py | |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/VectorAttributeManager.py | """
Contains the support class for managing attributes whose data is arrays interpreted as cartesian vectors
"""
from typing import Any, List
from .AttributeManager import CppConfiguration, CudaConfiguration
from .RoleAttributeManager import RoleAttributeManager
class VectorAttributeManager(RoleAttributeManager):
... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/Int64AttributeManager.py | """
Contains the support class for managing attributes whose data is 64 bit integers
"""
from typing import Any
from ..utils import ParseError
from .AttributeManager import CppConfiguration, CudaConfiguration
from .NumericAttributeManager import NumericAttributeManager, values_in_range
from .parsing import is_type_or_... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/UIntAttributeManager.py | """
Contains the support class for managing attributes whose data is unsigned 32 bit integers
"""
from typing import Any, List
from ..utils import ParseError
from .AttributeManager import CppConfiguration, CudaConfiguration
from .NumericAttributeManager import NumericAttributeManager, values_in_range
from .parsing imp... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/ExecutionAttributeManager.py | """
Contains the support class for managing attributes whose data is arrays interpreted as surface normals
"""
from typing import Any, List
from ..utils import ParseError, to_usd_docs
from .AttributeManager import CppConfiguration, CudaConfiguration
from .NumericAttributeManager import NumericAttributeManager, values_... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/BundleAttributeManager.py | """
Support for handling attributes of type "bundle" - i.e. attributes whose job it is to encapsulate arbitrary
collections of other attributes, including other bundle attributes.
"""
from typing import List
from ..keys import CudaPointerValues, MemoryTypeValues
from ..utils import IndentedOutput, ParseError, ensure_q... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/RoleAttributeManager.py | """
Contains the support class for managing attributes whose data is values with specific interpretations
"""
from typing import List
from ..utils import ParseError
from .NumericAttributeManager import NumericAttributeManager
# ======================================================================
class RoleAttribut... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/management.py | """
Collection of utilities and constants to handle interaction with the set of all attribute managers
.. data:: ATTRIBUTE_MANAGERS
Dictionary of {BASE_TYPE: AttributeManager} for all supported root attribute types. A root type is
"int" but not "int[2]". Tuple counts and array depths are parsed by the manager... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/ColorAttributeManager.py | """
Contains the support class for managing attributes whose data is arrays interpreted as colors
"""
from typing import Any, List
from .AttributeManager import CppConfiguration, CudaConfiguration
from .RoleAttributeManager import RoleAttributeManager
class ColorAttributeManager(RoleAttributeManager):
"""Support... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/BoolAttributeManager.py | """
Support for handling attributes of type "bundle" - i.e. attributes whose job it is to encapsulate arbitrary
collections of other attributes, including other bundle attributes.
"""
from typing import Any
from ..utils import ParseError
from .AttributeManager import AttributeManager, CppConfiguration, CudaConfigurati... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/PathAttributeManager.py | """
Contains the support class for managing attributes whose data is strings represented as tokens
"""
from typing import Any
from .AttributeManager import CppConfiguration, CudaConfiguration
from .StringAttributeManager import StringAttributeManager
class PathAttributeManager(StringAttributeManager):
"""Support... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/UInt64AttributeManager.py | """
Contains the support class for managing attributes whose data is unsigned 64 bit integers
"""
from typing import Any, List
from ..utils import ParseError
from .AttributeManager import CppConfiguration, CudaConfiguration
from .NumericAttributeManager import NumericAttributeManager, values_in_range
from .parsing imp... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/UnionAttributeManager.py | """
Contains the support class for managing attributes whose data is 32 bit integers
"""
from typing import Dict, List
from ..utils import _EXTENDED_TYPE_UNION, ParseError, to_usd_docs
from .AnyAttributeManager import AnyAttributeManager
from .AttributeManager import AttributeManager
class UnionAttributeManager(AnyA... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/UCharAttributeManager.py | """
Contains the support class for managing attributes whose data is unsigned characters
"""
from typing import Any, List
from ..utils import ParseError
from .AttributeManager import CppConfiguration, CudaConfiguration
from .NumericAttributeManager import NumericAttributeManager, values_in_range
from .parsing import i... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/MatrixAttributeManager.py | """
Contains the support class for managing attributes whose data is matrixes of numbers
"""
from contextlib import suppress
from typing import Any, List, Union
from ..utils import ParseError
from .AttributeManager import CppConfiguration, CudaConfiguration
from .NumericAttributeManager import is_number_or_list_of_num... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/IntAttributeManager.py | """
Contains the support class for managing attributes whose data is 32 bit integers
"""
from typing import Any, List
from ..utils import ParseError
from .AttributeManager import CppConfiguration, CudaConfiguration
from .NumericAttributeManager import NumericAttributeManager, values_in_range
from .parsing import is_ty... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/PointAttributeManager.py | """
Contains the support class for managing attributes whose data is arrays interpreted as points in space
"""
from typing import Any, List
from .AttributeManager import CppConfiguration, CudaConfiguration
from .RoleAttributeManager import RoleAttributeManager
class PointAttributeManager(RoleAttributeManager):
"... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/HalfAttributeManager.py | """
Contains the support class for managing attributes whose data is half precision numbers
"""
from typing import Any, List
from ..utils import ParseError
from .AttributeManager import CppConfiguration, CudaConfiguration
from .NumericAttributeManager import NumericAttributeManager, values_in_range
from .parsing impor... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/AttributeManager.py | # noqa: PLC0302
"""
Support for handling the parsing and generation for generic attributes.
Specific attribute types will override some of this behaviour in their own subclasses.
Exported Classes:
AttributeManager
Exported Constants:
PropertySet
"""
import os
import re
from contextlib import suppress
from dat... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/QuaternionAttributeManager.py | """
Contains the support class for managing attributes whose data is arrays interpreted as quaternions
"""
from typing import Any, List, Union
from ..utils import ParseError
from .AttributeManager import CppConfiguration, CudaConfiguration
from .RoleAttributeManager import RoleAttributeManager
QUAT_OR_QUAT_LIST = Uni... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/node_generator/attributes/TexCoordAttributeManager.py | """
Contains the support class for managing attributes whose data is arrays interpreted as texture coordinates
"""
from typing import Any, List
from .AttributeManager import CppConfiguration, CudaConfiguration
from .RoleAttributeManager import RoleAttributeManager
class TexCoordAttributeManager(RoleAttributeManager)... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/_impl/v1_2_0/autograph/__init__.py | r"""autograph has moved to omni.graph - import via the omni.graph.core module.
_____ ______ _____ _____ ______ _____ _______ ______ _____
| __ \ | ____|| __ \ | __ \ | ____|/ ____| /\ |__ __|| ____|| __ \
| | | || |__ | |__) || |__) || |__ | | / \ | | | |__ | | | |
... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/scripts/debugging.py | import carb
carb.log_error(
"""Import of omni.graph.tools.scripts.debugging is deprecated. Use this import sequence instead:
import omni.graph.tools as ogt
ogt.debugging_function()"""
)
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/tests/test_node_generator.py | """
Contains support for testing the ../generate_node.py script.
Comprehensive data type testing is in TestNodeGeneratorDataTypes.py
The framework is set up so that the tests can be run synchronously through main.py, or
asynchronously through the Kit testing framework.
TODO: Tests for capabilities to be added
- ... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/tests/deprecated_import.py | """File used only for testing of reporting of deprecated module import"""
import omni.graph.tools as ogt
ogt.DeprecatedImport("Do Not Import")
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/tests/test_node_generator_data_types.py | """
Contains support for testing the ../generate_node.py script for processing different data types.
Basic testing is in TestNodeGenerator.py.
The framework is set up so that the tests can be run synchronously through main.py, or
asynchronously through the Kit testing framework.
"""
import json
import unittest
import... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/tests/test_api.py | """Testing the stability of the API in this module"""
import omni.graph.tools as ogt
import omni.graph.tools.ogn as ogn
import omni.kit
from omni.graph.tools.tests.internal_utils import _check_module_api_consistency, _check_public_api_contents
# ======================================================================
c... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/tests/__init__.py | """There is no public API to this module."""
__all__ = []
scan_for_test_modules = True
"""The presence of this object causes the test runner to automatically scan the directory for unit test cases"""
|
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/tests/test_node_generator_attributes.py | """
Contains support for testing the ../generate_node.py script for attribute manager behaviour.
The framework is set up so that the tests can be run synchronously through main.py, or
asynchronously through the Kit testing framework.
"""
import json
import unittest
import omni.graph.tools.ogn as ogn
# Detect the tes... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/tests/test_internal_versions.py | """Testing for the internal utilities, like extension version management, logging, and .ogn file handling
To turn on debugging for a test just add this line at the beginning:
ogi.set_registration_logging("stdout") # TODO:
"""
from pathlib import Path
from tempfile import TemporaryDirectory
import omni.graph.t... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/tests/test_internal_generation.py | """Tests the correct generation of node type definitions into the cache"""
from __future__ import annotations
from contextlib import ExitStack
from pathlib import Path
from tempfile import TemporaryDirectory
import omni.graph.tools._internal as ogi
import omni.kit.test
from omni.graph.tools.tests.internal_utils impor... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/tests/test_node_generator_illegal.py | """
Contains support for testing the ../generate_node.py script for illegal syntax or flag combinations.
The framework is set up so that the tests can be run synchronously through main.py, or
asynchronously through the Kit testing framework.
"""
import json
import os
import unittest
import omni.graph.tools.ogn as ogn... |
omniverse-code/kit/exts/omni.graph.tools/omni/graph/tools/tests/test_ogn_types.py | """Test the utility functions found in ogn_types.py.
These are almost unit tests, they just require the Kit environment to work due to the imports.
"""
import omni.graph.tools.ogn as ogn
import omni.kit.test
# This test uses some imports that aren't exposed as part of the public interface
from omni.graph.tools._1_11 i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.