file_path
stringlengths
32
153
content
stringlengths
0
3.14M
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/attach.h
/* **************************************************************************** * * Copyright (c) Brainwy software Ltda. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distribution. If * ...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/inject_dll.cpp
#include <iostream> #include <windows.h> #include <stdio.h> #include <conio.h> #include <tchar.h> #include <tlhelp32.h> #pragma comment(lib, "kernel32.lib") #pragma comment(lib, "user32.lib") // Helper to free data when we leave the scope. class DataToFree { public: HANDLE hProcess; HANDLE snapshotHandle; ...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/lldb_prepare.py
# This file is meant to be run inside lldb # It registers command to load library and invoke attach function # Also it marks process threads to to distinguish them from debugger # threads later while settings trace in threads def load_lib_and_attach(debugger, command, result, internal_dict): import shlex args ...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/attach.cpp
// This is much simpler than the windows version because we're using gdb and // we assume that gdb will call things in the correct thread already. //compile with: g++ -shared -o attach_linux.so -fPIC -nostartfiles attach_linux.c #include <stdio.h> #include <stdlib.h> #include <dlfcn.h> #include <stdbool.h> #include...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_linux.sh
g++ -m64 -shared -o attach_linux_amd64.so -fPIC -nostartfiles attach.cpp mv attach_linux_amd64.so ../attach_linux_amd64.so echo Compiled amd64 echo Note: may need "sudo apt-get install libx32gcc-4.8-dev" and "sudo apt-get install libc6-dev-i386" and "sudo apt-get install g++-multilib" to compile 32 bits g++ -m32 -sha...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_mac.sh
g++ -fPIC -D_REENTRANT -std=c++11 -arch x86_64 -c -o attach_x86_64.o attach.cpp g++ -dynamiclib -nostartfiles -arch x86_64 -o attach_x86_64.dylib attach_x86_64.o -lc rm attach_x86_64.o mv attach_x86_64.dylib ../attach_x86_64.dylib
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_manylinux.cmd
:: WARNING: manylinux1 images are based on CentOS 5, which requires vsyscall to be available on :: the host. For any recent version of Linux, this requires passing vsyscall=emulate during boot. :: For WSL, add the following to your .wslconfig: :: :: [wsl2] :: kernelCommandLine = vsyscall=emulate docker run --rm -v...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_310.hpp
#ifndef _PY_CUSTOM_PYEVAL_SETTRACE_310_HPP_ #define _PY_CUSTOM_PYEVAL_SETTRACE_310_HPP_ #include "python.h" #include "py_utils.hpp" static PyObject * InternalCallTrampoline310(PyObject* callback, PyFrameObject310 *frame, int what, PyObject *arg) { PyObject *result; PyObject *stack[3]; // Note...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace.hpp
#ifndef _PY_CUSTOM_PYEVAL_SETTRACE_HPP_ #define _PY_CUSTOM_PYEVAL_SETTRACE_HPP_ #include "python.h" #include "py_utils.hpp" #include "py_custom_pyeval_settrace_common.hpp" #include "py_custom_pyeval_settrace_310.hpp" #include "py_custom_pyeval_settrace_311.hpp" // On Python 3.7 onwards the thread state is not kept in...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/python.h
// Python Tools for Visual Studio // Copyright(c) Microsoft Corporation // All rights reserved. // // Licensed under the Apache License, Version 2.0 (the License); you may not use // this file except in compliance with the License. You may obtain a copy of the // License at http://www.apache.org/licenses/LICENSE-2.0 //...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_version.hpp
#ifndef __PY_VERSION_HPP__ #define __PY_VERSION_HPP__ #include <cstring> enum PythonVersion { PythonVersion_Unknown, PythonVersion_25 = 0x0205, PythonVersion_26 = 0x0206, PythonVersion_27 = 0x0207, PythonVersion_30 = 0x0300, PythonVersion_31 = 0x0301, PythonVersion_32 = 0x0302, Pytho...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_common.hpp
#ifndef _PY_CUSTOM_PYEVAL_SETTRACE_COMMON_HPP_ #define _PY_CUSTOM_PYEVAL_SETTRACE_COMMON_HPP_ #include "python.h" #include "py_utils.hpp" struct InternalInitializeCustomPyEvalSetTrace { PyObject* pyNone; PyTuple_New* pyTuple_New; _PyObject_FastCallDict* pyObject_FastCallDict; PyEval_CallObjectWithKeyw...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_settrace.hpp
#ifndef _PY_SETTRACE_HPP_ #define _PY_SETTRACE_HPP_ #include "ref_utils.hpp" #include "py_utils.hpp" #include "python.h" #include "py_custom_pyeval_settrace.hpp" #include <unordered_set> #ifdef _WIN32 typedef HMODULE MODULE_TYPE; #else // LINUX ----------------------------------------------------------------- type...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_utils.hpp
#ifndef _PY_UTILS_HPP_ #define _PY_UTILS_HPP_ typedef int (Py_IsInitialized)(); typedef PyInterpreterState* (PyInterpreterState_Head)(); typedef enum { PyGILState_LOCKED, PyGILState_UNLOCKED } PyGILState_STATE; typedef PyGILState_STATE(PyGILState_Ensure)(); typedef void (PyGILState_Release)(PyGILState_STATE); typedef ...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/ref_utils.hpp
#ifndef _REF_UTILS_HPP_ #define _REF_UTILS_HPP_ PyObject* GetPyObjectPointerNoDebugInfo(bool isDebug, PyObject* object) { if (object != nullptr && isDebug) { // debug builds have 2 extra pointers at the front that we don't care about return (PyObject*)((size_t*)object + 2); } return object...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_311.hpp
#ifndef _PY_CUSTOM_PYEVAL_SETTRACE_311_HPP_ #define _PY_CUSTOM_PYEVAL_SETTRACE_311_HPP_ #include "python.h" #include "py_utils.hpp" static PyObject * InternalCallTrampoline311(PyObject* callback, PyFrameObject311 *frame, int what, PyObject *arg) { PyObject *result; PyObject *stack[3]; // Note...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/launcher/winapi.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. import ctypes from ctypes.wintypes import BOOL, DWORD, HANDLE, LARGE_INTEGER, LPCSTR, UINT from debugpy.common import log JOBOBJECTCLASS = ctypes.c_int LPDWORD = c...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/launcher/handlers.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. import os import sys import debugpy from debugpy import launcher from debugpy.common import json from debugpy.launcher import debuggee def launch_request(request):...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/launcher/__init__.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. __all__ = [] adapter_host = None """The host on which adapter is running and listening for incoming connections from the launcher and the servers.""" channel = Non...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/launcher/output.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. import codecs import os import threading from debugpy import launcher from debugpy.common import log class CaptureOutput(object): """Captures output from the s...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/launcher/__main__.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. __all__ = ["main"] import locale import signal import sys # WARNING: debugpy and submodules must not be imported on top level in this module, # and should be import...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/launcher/debuggee.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. import atexit import ctypes import os import signal import struct import subprocess import sys import threading from debugpy import launcher from debugpy.common impo...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/adapter/clients.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. from __future__ import annotations import atexit import os import sys import debugpy from debugpy import adapter, common, launcher from debugpy.common import json, ...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/adapter/launchers.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. import os import subprocess import sys from debugpy import adapter, common from debugpy.common import log, messaging, sockets from debugpy.adapter import components,...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/adapter/__init__.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. from __future__ import annotations import typing if typing.TYPE_CHECKING: __all__: list[str] __all__ = [] access_token = None """Access token used to authentic...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/adapter/components.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. import functools from debugpy.common import json, log, messaging, util ACCEPT_CONNECTIONS_TIMEOUT = 10 class ComponentNotAvailable(Exception): def __init__(s...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/adapter/__main__.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. import argparse import atexit import codecs import locale import os import sys # WARNING: debugpy and submodules must not be imported on top level in this module, # ...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/adapter/servers.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. from __future__ import annotations import os import subprocess import sys import threading import time import debugpy from debugpy import adapter from debugpy.commo...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/adapter/sessions.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. import itertools import os import signal import threading import time from debugpy import common from debugpy.common import log, util from debugpy.adapter import com...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/common/util.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. import inspect import os import sys def evaluate(code, path=__file__, mode="eval"): # Setting file path here to avoid breaking here if users have set # "bre...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/common/stacks.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. """Provides facilities to dump all stacks of all threads in the process. """ import os import sys import time import threading import traceback from debugpy.common ...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/common/log.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. import atexit import contextlib import functools import inspect import io import os import platform import sys import threading import traceback import debugpy from ...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/common/timestamp.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. """Provides monotonic timestamps with a resetable zero. """ import time __all__ = ["current", "reset"] def current(): return time.monotonic() - timestamp_zero...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/common/__init__.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. from __future__ import annotations import os import typing if typing.TYPE_CHECKING: __all__: list[str] __all__ = [] # The lower time bound for assuming that th...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/common/sockets.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. import socket import sys import threading from debugpy.common import log from debugpy.common.util import hide_thread_from_debugger def create_server(host, port=0, ...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/common/json.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. """Improved JSON serialization. """ import builtins import json import numbers import operator JsonDecoder = json.JSONDecoder class JsonEncoder(json.JSONEncoder)...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/common/messaging.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. """An implementation of the session and presentation layers as used in the Debug Adapter Protocol (DAP): channels and their lifetime, JSON messages, requests, respons...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/common/singleton.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. import functools import threading class Singleton(object): """A base class for a class of a singleton object. For any derived class T, the first invocation...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/server/attach_pid_injected.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. """Script injected into the debuggee process during attach-to-PID.""" import os __file__ = os.path.abspath(__file__) _debugpy_dir = os.path.dirname(os.path.dirname...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/server/__init__.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. # "force_pydevd" must be imported first to ensure (via side effects) # that the debugpy-vendored copy of pydevd gets used. import debugpy._vendored.force_pydevd # no...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/server/api.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. import codecs import os import pydevd import socket import sys import threading import debugpy from debugpy import adapter from debugpy.common import json, log, sock...
omniverse-code/kit/exts/omni.kit.debug.python/debugpy/server/cli.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. import json import os import re import sys from importlib.util import find_spec # debugpy.__main__ should have preloaded pydevd properly before importing this module...
omniverse-code/kit/exts/omni.kit.debug.python/PACKAGE-LICENSES/omni.kit.debug.python-LICENSE.md
Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. NVIDIA CORPORATION and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software and related docume...
omniverse-code/kit/exts/omni.kit.debug.python/config/extension.toml
[package] version = "0.2.0" title = "A debugger for Python" description="Uses debugpy which implements the Debug Adapter Protocol" authors = ["NVIDIA"] repository = "" category = "Internal" keywords = ["kit"] readme = "docs/README.md" changelog="docs/CHANGELOG.md" [dependencies] "omni.kit.pip_archive" = {} [[python....
omniverse-code/kit/exts/omni.kit.debug.python/omni/kit/debug/python.py
import sys import carb.tokens import carb.settings import omni.ext import omni.kit.pipapi # Try import to allow documentation build without debugpy try: import debugpy except ModuleNotFoundError: pass def _print(msg): print(f"[omni.kit.debug.python] {msg}") def wait_for_client(): _print("Waiting fo...
omniverse-code/kit/exts/omni.kit.debug.python/docs/CHANGELOG.md
# CHANGELOG ## [0.2.0] - 2022-09-28 - Prebundle debugpy ## [0.1.0] - 2020-02-22 - Initial commit
omniverse-code/kit/exts/omni.kit.debug.python/docs/README.md
# Debug Utils ## omni.kit.debug.python Python debugger support.
omniverse-code/kit/exts/omni.kit.debug.python/docs/index.rst
omni.kit.debug.python ########################### .. toctree:: :maxdepth: 1 CHANGELOG Python API Reference ********************* .. automodule:: omni.kit.debug.python :platform: Windows-x86_64, Linux-x86_64 :members: :undoc-members: :imported-members:
omniverse-code/kit/exts/omni.kit.manipulator.tool.snap/docs/index.rst
omni.kit.manipulator.tool.snap ################################### Extension that provides snap functionality to transform manipulator as well as a registry for external snap tools. .. toctree:: :maxdepth: 1 README CHANGELOG .. automodule:: omni.kit.manipulator.tool.snap :platform: Windows-x86_64, Li...
omniverse-code/kit/exts/omni.activity.core/PACKAGE-LICENSES/omni.activity.core-LICENSE.md
Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. NVIDIA CORPORATION and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software and related docume...
omniverse-code/kit/exts/omni.activity.core/config/extension.toml
[package] title = "Omni Activity Core" category = "Telemetry" version = "1.0.1" description = "The activity and the progress processor" authors = ["NVIDIA"] keywords = ["activity"] [[python.module]] name = "omni.activity.core" [[native.plugin]] path = "bin/*.plugin"
omniverse-code/kit/exts/omni.activity.core/omni/activity/core/_activity.pyi
from __future__ import annotations import omni.activity.core._activity import typing import omni.core._core __all__ = [ "EventType", "IActivity", "IEvent", "INode", "began", "disable", "enable", "ended", "get_instance", "progress", "updated" ] class EventType(): """ ...
omniverse-code/kit/exts/omni.activity.core/omni/activity/core/__init__.py
## Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. ## ## NVIDIA CORPORATION and its licensors retain all intellectual property ## and proprietary rights in and to this software, related documentation ## and any modifications thereto. Any use, reproduction, disclosure or ## distribution of this software a...
omniverse-code/kit/exts/omni.activity.core/omni/activity/core/tests/__init__.py
## Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. ## ## NVIDIA CORPORATION and its licensors retain all intellectual property ## and proprietary rights in and to this software, related documentation ## and any modifications thereto. Any use, reproduction, disclosure or ## distribution of this software a...
omniverse-code/kit/exts/omni.activity.core/omni/activity/core/tests/test_activity.py
## Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. ## ## NVIDIA CORPORATION and its licensors retain all intellectual property ## and proprietary rights in and to this software, related documentation ## and any modifications thereto. Any use, reproduction, disclosure or ## distribution of this software a...
omniverse-code/kit/exts/omni.hydra.index/omni/hydra/index/__init__.py
omniverse-code/kit/exts/omni.hydra.index/omni/hydra/index/tests/__init__.py
from .nvindex_render_test import *
omniverse-code/kit/exts/omni.hydra.index/omni/hydra/index/tests/nvindex_render_test.py
#!/usr/bin/env python3 import omni.kit.commands import omni.kit.test import omni.usd from omni.rtx.tests import RtxTest, testSettings, postLoadTestSettings from omni.rtx.tests.test_common import set_transform_helper, wait_for_update from omni.kit.test_helpers_gfx.compare_utils import ComparisonMetric from pxr import ...
omniverse-code/kit/exts/omni.kit.compatibility_checker/PACKAGE-LICENSES/omni.kit.compatibility_checker-LICENSE.md
Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. NVIDIA CORPORATION and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software and related docume...
omniverse-code/kit/exts/omni.kit.compatibility_checker/config/extension.toml
[package] version = "0.1.0" title = "Kit Compatibility Checker" category = "Internal" [dependencies] "omni.appwindow" = { } "omni.gpu_foundation" = { } "omni.kit.notification_manager" = { optional=true } "omni.kit.window.viewport" = { optional=true } "omni.kit.renderer.core" = { optional=true } [[python.module]] name...
omniverse-code/kit/exts/omni.kit.compatibility_checker/omni/kit/compatibility_checker/__init__.py
from .scripts.extension import *
omniverse-code/kit/exts/omni.kit.compatibility_checker/omni/kit/compatibility_checker/scripts/extension.py
import asyncio import importlib import fnmatch import carb import carb.settings import omni.appwindow import omni.ext import omni.gpu_foundation_factory import omni.kit.app import omni.kit.renderer.bind RENDERER_ENABLED_SETTINGS_PATH = "/renderer/enabled" CHECKER_SETTINGS_PATH = "exts/omni.kit.compatibility_checker/...
omniverse-code/kit/exts/omni.kit.compatibility_checker/omni/kit/compatibility_checker/tests/test_compatibility_checker.py
import inspect import pathlib import carb import carb.settings import carb.tokens import omni.kit.app import omni.kit.test import omni.kit.compatibility_checker class CompatibilityCheckerTest(omni.kit.test.AsyncTestCase): async def setUp(self): self._settings = carb.settings.acquire_settings_interface()...
omniverse-code/kit/exts/omni.kit.compatibility_checker/omni/kit/compatibility_checker/tests/__init__.py
from .test_compatibility_checker import *
omniverse-code/kit/exts/omni.kit.documentation.ui.style/PACKAGE-LICENSES/omni.kit.documentation.ui.style-LICENSE.md
Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. NVIDIA CORPORATION and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software and related docume...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/config/extension.toml
[package] version = "1.0.3" authors = ["NVIDIA"] title = "Omni.UI Style Documentation" description="The interactive documentation for omni.ui style" readme = "docs/README.md" repository = "" category = "Documentation" keywords = ["ui", "style", "docs", "documentation"] changelog="docs/CHANGELOG.md" preview_image = "da...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/omni/kit/documentation/ui/style/ui_style_docs_window.py
# Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software an...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/omni/kit/documentation/ui/style/ui_style_docs_extension.py
# Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software an...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/omni/kit/documentation/ui/style/__init__.py
# Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software an...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/docs/styling.md
# The Style Sheet Syntax omni.ui Style Sheet rules are almost identical to those of HTML CSS. It applies to the style of all omni ui elements. Style sheets consist of a sequence of style rules. A style rule is made up of a selector and a declaration. The selector specifies which widgets are affected by the rule. The ...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/docs/widgets.md
# Widgets ## Label Labels are used everywhere in omni.ui. They are text only objects. Here is a list of styles you can customize on Label: > color (color): the color of the text > font_size (float): the size of the text > margin (float): the distance between the label and the parent widget defined boundary > margin_w...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/docs/sliders.md
# Fields and Sliders ## Common Styling for Fields and Sliders Here is a list of common style you can customize on Fields and Sliders: > background_color (color): the background color of the field or slider > border_color (color): the border color if the field or slider background has a border > border_radius (float): ...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/docs/fonts.md
# Fonts ## Font style It's possible to set different font types with the style. The style key 'font' should point to the font file, which allows packaging of the font to the extension. We support both TTF and OTF formats. All text-based widgets support custom fonts. ```execute 200 with ui.VStack(): ui.Label("Omni...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/docs/containers.md
# Container widgets Container widgets are used for grouping items. It's possible to add children to the container with Python's `with` statement. It's not possible to reparent items. Instead, it's necessary to remove the item and recreate a similar item under another parent. ## Stack We have three main components: VSt...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/docs/shapes.md
# Shapes Shapes enable you to build custom widgets with specific looks. There are many shapes you can stylize: Rectangle, Circle, Ellipse, Triangle and FreeShapes of FreeRectangle, FreeCircle, FreeEllipse, FreeTriangle. In most cases those shapes will fit into the widget size which is defined by the parent widget they ...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/docs/buttons.md
# Buttons and Images ## Common Styling for Buttons and Images Here is a list of common style you can customize on Buttons and Images: > border_color (color): the border color if the button or image background has a border > border_radius (float): the border radius if the user wants to round the button or image > borde...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/docs/CHANGELOG.md
# Changelog The documentation for omni.ui style ## [1.0.3] - 2022-10-20 ### Fixed - Fixed font session crash ### Added - The extension to the doc system ## [1.0.2] - 2022-07-20 ### Added - Order in Stack and use of content_clipping section - ToolButton section ## [1.0.1] - 2022-07-20 ### Changed - Added help menu A...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/docs/overview.md
# Overview OmniUI style allows users to build customized widgets, make these widgets visually pleasant and functionally indicative with user interactions. Each widget has its own style to be tweaked with based on their use cases and behaviors, while they also follow the same syntax rules. The container widgets provid...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/docs/window.md
# Window Widgets ## MainWindow The MainWindow represents the main window for an application. There should only be one MainWindow in each application. Here is a list of styles you can customize on MainWindow: > background_color (color): the background color of the main window. > margin_height (float): the height dist...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/docs/shades.md
# Shades Shades are used to have multiple named color palettes with the ability for runtime switch. For example, one App could have several ui themes users can switch during using the App. The shade can be defined with the following code: ```python cl.shade(cl("#FF6600"), red=cl("#0000FF"), green=cl("#66FF00")) `...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/docs/line.md
# Lines and Curves ## Common Style of Lines and Curves Here is a list of common style you can customize on all the Lines and Curves: > color (color): the color of the line or curve > border_width (float): the thickness of the line or curve ## Line Line is the simplest shape that represents a straight line. It has two...
omniverse-code/kit/exts/omni.kit.documentation.ui.style/docs/README.md
# The documentation for omni.ui style The interactive documentation for omni.ui style
omniverse-code/kit/exts/omni.kit.documentation.ui.style/docs/units.md
# Length Units The Framework UI offers several different units for expressing length: Pixel, Percent and Fraction. There is no restriction on where certain units should be used. ## Pixel Pixel is the size in pixels and scaled with the HiDPI scale factor. Pixel is the default unit. If a number is not specified to be a ...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial23.rst
.. _ogn_tutorial_cpu_gpu_extended: Tutorial 23 - Extended Attributes On The GPU ============================================ Extended attributes are no different from other types of attributes with respect to where their memory will be located. The difference is that there is a slightly different API for accessing th...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial3.rst
.. _ogn_tutorial_abi: Tutorial 3 - ABI Override Node ============================== Although the .ogn format creates an easy-to-use interface to the ABI of the OmniGraph node and the associated data model, there may be cases where you want to override the ABI to perform special processing. OgnTutorialABI.ogn -------...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial18.rst
.. _ogn_tutorial_state: Tutorial 18 - Node With Internal State ====================================== This node illustrates how you can use internal state information, so long as you inform OmniGraph that you are doing so in order for it to make more intelligent execution scheduling decisions. The advantage of using...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial17.rst
.. _ogn_tutorial_state_attributes_py: Tutorial 17 - Python State Attributes Node ========================================== This node illustrates how you can use state attributes. These are attributes that are not meant to be connected to other nodes as they maintain a node's internal state, persistent from one evalu...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial28.rst
.. _ogn_tutorial_simple_ogn_compute_vectorized_node: Tutorial 28 - Node with simple OGN computeVectorized ==================================================== This tutorial demonstrates how to compose nodes that implements a very simple computeVectorized function. It shows how to access the data, using the different ...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial7.rst
.. _ogn_tutorial_roleData: Tutorial 7 - Role-Based Data Node ================================= The role-based data node creates one input attribute and one output attribute of each of the role-based type. A role-based type is defined as data with an underlying simple data type, with an interpretation of that simple ...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial29.rst
.. _ogn_tutorial_simple_abi_compute_vectorized_node: Tutorial 29 - Node with simple ABI computeVectorized ==================================================== This tutorial demonstrates how to compose nodes that implements a very simple computeVectorized function using directly ABIs. It shows how to access the data, ...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial8.rst
.. _ogn_tutorial_cudaData: Tutorial 8 - GPU Data Node ========================== The GPU data node creates various attributes for use in a CUDA-based GPU compute. Several representative types are used, though the list of potential attribute types is not exhaustive. See :ref:`ogn_attribute_types` for the full list. ...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial21.rst
.. _ogn_tutorial_bundle_add_attributes: Tutorial 21 - Adding Bundled Attributes ======================================= Sometimes instead of simply copying data from an input or input bundle into an output bundle you might want to construct a bundle from some other criteria. For example a bundle construction node cou...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial26.rst
.. _ogn_tutorial_generic_math_node: Tutorial 26 - Generic Math Node ================================ This tutorial demonstrates how to compose nodes that perform mathematical operations in python using numpy. Using numpy has the advantage that it is api-compatible to cuNumeric. As demonstrated in the Extended Attribu...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial2.rst
.. _ogn_tutorial_simpleData: Tutorial 2 - Simple Data Node ============================= The simple data node creates one input attribute and one output attribute of each of the simple types, where "simple" refers to data types that have a single component and are not arrays. (e.g. "float" is simple, "float[3]" is n...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial11.rst
.. _ogn_tutorial_complexData_py: Tutorial 11 - Complex Data Node in Python ========================================= This node fills on the remainder of the (CPU for now) data types available through Python. It combines the progressive introduction in C++ of :ref:`ogn_tutorial_tupleData`, :ref:`ogn_tutorial_arrayDat...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial6.rst
.. _ogn_tutorial_tupleArrays: Tutorial 6 - Array of Tuples ============================ Arrays and tuples can be combined to create common attribute types such as **float[3][]**, and array of 3 floats. This node takes two arrays of float[3]s and generates an output array consisting of the element-wise dot products. ...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial1.rst
.. _ogn_tutorial_empty: Tutorial 1 - Trivial Node ========================= The simplest possible node is one that implements only the mandatory fields in a node. These are the "version" and "description" fields. The existence of the file *OgnTutorialEmpty.svg* will automatically install this icon into the build dir...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial4.rst
.. _ogn_tutorial_tupleData: Tutorial 4 - Tuple Data Node ============================ Tuple data, also referred to as fixed array data, consists of multiple elements of a simple type. For example *float[3]* or *double[4]*. This node creates one input attribute and one output attribute of each of the simple data types...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial22.rst
.. _ogn_tutorial_cpu_gpu_bundles: Tutorial 22 - Bundles On The GPU ================================ Bundles are not exactly data themselves, they are a representation of a collection of attributes whose composition is determined at runtime. As such, they will always live on the CPU. However the attributes they are en...
omniverse-code/kit/exts/omni.graph.docs/docs/tutorials/tutorial9.rst
.. _ogn_tutorial_cpuGpuData: Tutorial 9 - Runtime CPU/GPU Decision ===================================== The CPU/GPU data node creates various attributes for use in a CUDA-based GPU compute or a CPU-based compute, where the decision of which to use is made at runtime rather than compile time. A few representative ty...