file_path stringlengths 32 153 | content stringlengths 0 3.14M |
|---|---|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnSubtractDoubleCDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.SubtractDoubleC
Example node that subtracts 2 doubles from each other
"""
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnSubtractDoubleCDatabase(og.Databas... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnMultiply2IntArrayDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.Multiply2IntegerArrays
Compute the array 'output' as the element-wise products of the input arrays 'a' and 'b'. If either of the input arrays have
size 1 then that value will be multipled to every element of the other to form the output.
"""
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnRandomBundlePointsDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.RandomBundlePoints
Generate a bundle of 'bundleSize' arrays of 'pointCount' points at random locations within the bounding cube delineated by
the corner points 'minimum' and 'maximum'.
"""
import carb
import numpy
import carb
import omni.graph... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestAllDataTypesCarbDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestAllDataTypesCarb
This node is meant to exercise the data access for all available data types used by the Carbonite type configuration file.
It includes all other data types as well, as confirmation that non-overridden types retain their defa... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestConcurrencyDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestConcurrency
Test concurrency level during execution
"""
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestConcurrencyDatabase(og.Database):
"""Hel... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnBundlePropertiesDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.BundleProperties
Node that exposes properties of the bundle
"""
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnBundlePropertiesDatabase(og.Database):
"... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestBundleAttributeInterpolationDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestBundleAttributeInterpolation
Test node that exposes attribute interpolation through ConstBundlePrims interface.
"""
import carb
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnComposeDouble3CDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.ComposeDouble3C
Example node that takes in the components of three doubles and outputs a double3
"""
import carb
import numpy
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
cla... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestDynamicAttributeMemoryDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestDynamicAttributeMemory
Test node that exercises various memory locations for dynamic attributes. Add a dynamic input attribute named 'array' with
type 'int[]' and a dynamic output attribute named 'array' with type 'int[]' to exercise the nod... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestScatterDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestScatter
Test node to test out the effects of vectorization. Scatters the results of gathered compute back to FC
"""
import carb
import numpy
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.too... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestWriteVariablePyDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestWriteVariablePy
Node that test writes a value to a variable in python
"""
from typing import Any
import carb
import sys
import traceback
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.og... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestDynamicAttributeRawDataDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestDynamicAttributeRawData
Node that tests the APIs for accessing and mutating the dynamic attributes
"""
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnT... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestUsdCastingDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestUsdCasting
This node is meant to exercise special bundle member casting used by USD types. It just copies members of the input bundle
to the output bundle when any of the recognized USD casting types are found.
"""
import carb
import carb
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestCategoryDefinitionsDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestCategoryDefinitions
Test node that tests custom category definitions
"""
import carb
import sys
import traceback
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTes... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestAllDataTypesPodDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestAllDataTypesPod
This node is meant to exercise the data access for all available data types used by the POD type configuration file. It includes
all other data types as well, to confirm that non-overridden types retain their default types.
"... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnRandomPointsGpuDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.RandomPointsGpu
Generate an array of the specified number of points at random locations within the bounding cube. This is the same node as
OgnRandomPoints.ogn, except the memory is stored on the GPU.
"""
import carb
import numpy
import omni.gr... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestExecutionTaskDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestExecutionTask
Test whether node was executed within execution framework task
"""
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestExecutionTaskDataba... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestTypeResolutionDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TypeResolution
Test node, explicitly constructed to make the attribute type resolution mechanism testable. It has output attributes with
union and any types whose type will be resolved at runtime when they are connected to inputs with a fixed ty... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestGracefulShutdownDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestGracefulShutdown
Test node that exercises the internal state in such a way that if the extension shuts down before the state can be released
on the nodes it will produce an error. Test scripts can use this to verify that the extension does n... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestCppKeywordsDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestCppKeywords
Test that attributes named for C++ keywords produce valid code
"""
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnTestCppKeywordsDatabase(og.Database):... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestAddAnyTypeAnyMemoryDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestAddAnyTypeAnyMemory
Test node that sum 2 runtime attributes that live either on the cpu or the gpu
"""
from typing import Any
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.o... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestDeformerDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestDeformer
Test deformer node that applies a sine wave to a mesh. Set up for Realm processing in the compute(), and will not compute
if connected to upstream node of same type with multiplier set to zero - for testing of dynamic scheduling
"... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnPerturbPointsPyDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.PerturbPointsPy
Randomly modify positions on a set of points
"""
import carb
import numpy
import sys
import traceback
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnPe... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnBundleConsumerDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.BundleConsumer
Node that consumes bundle from producer for change tracking
"""
import carb
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
class OgnBundleConsumerDat... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnPerturbBundlePointsDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.PerturbBundlePoints
Randomly modify positions on all points attributes within a bundle
"""
import carb
import numpy
import carb
import omni.graph.core as og
import omni.graph.core._omni_graph_core as _og
import omni.graph.tools.ogn as ogn
c... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestSchedulingHintsListDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestSchedulingHintsList
Test node for scheduling hints specified by a list. Note that the scheduling hints do not correspond to what the node actually
does, they are just for testing.
"""
import carb
import sys
import traceback
import omni.gra... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/OgnTestIsolateDatabase.py | """Support for simplified access to data on nodes of type omni.graph.test.TestIsolate
Test isolate scheduling on nodes. Currently this scheduling status is only used for nodes that have the "usd-write" scheduling
hint, i.e. write to the USD stage; for this specific test node the "usd-write" hint is a bit of a misnomer... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestOptionalExtended.py | """Test node exercising the 'optional' flag on extended attributes"""
import omni.graph.core as og
class OgnTestOptionalExtended:
@staticmethod
def compute(db) -> bool:
"""Moves the 'other' input to the 'other' output if both of the optional attributes are not resolved,
sets the 'other' output... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleToTarget.cpp | // Copyright (c) 2023, 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.graph.test/omni/graph/test/ogn/nodes/OgnTestIsolate.cpp | // Copyright (c) 2023 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... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestDynamicAttributeRawData.ogn | {
"TestDynamicAttributeRawData": {
"version": 1,
"description": "Node that tests the APIs for accessing and mutating the dynamic attributes",
"uiName": "Test Node: Exercise Dynamic Attributes",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "interna... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnRandomPointsGpu.ogn | {
"RandomPointsGpu": {
"version": 1,
"description": [
"Generate an array of the specified number of points at random locations within the bounding cube.",
"This is the same node as OgnRandomPoints.ogn, except the memory is stored on the GPU."
],
"memoryType": ... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestSerial.cpp | // Copyright (c) 2023 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... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestConcurrency.ogn | {
"TestConcurrency": {
"version": 1,
"description": "Test concurrency level during execution",
"uiName": "Test Node: Concurrency Level",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"exclude": ["tests", "usd", "docs"],
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAddAnyTypeAnyMemory.ogn | {
"TestAddAnyTypeAnyMemory": {
"version": 1,
"description": ["Test node that sum 2 runtime attributes that live either on the cpu or the gpu"],
"uiName": "Test Node: add 2 runtime attribute on the cpu or the gpu (C++)",
"icon": {
"path": "TestNodeIcon.svg"
},
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnExecInputEnabledTest.ogn | {
"ExecInputEnabledTest": {
"version": 1,
"description": [ "Tests exec input is enabled" ],
"uiName": "ExecInputEnabledTest",
"language": "python",
"icon": {
"path": "TestNodeIcon.svg"
},
"exclude": ["usd", "docs"],
"categories": "internal:... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestConcurrency.cpp | // 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 and... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestDynamicAttributeRawData.cpp | // Copyright (c) 2023 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.graph.test/omni/graph/test/ogn/nodes/OgnTestAllDataTypes.ogn | {
"TestAllDataTypes": {
"version": 1,
"description": [
"This node is meant to exercise data access for all available data types, including all",
"legal combinations of tuples, arrays, and bundle members. This node definition is a duplicate of",
"OgnTestAllDataType... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestDynamicAttributeMemory.py | """Test node exercising retrieval of dynamic attribute array values from various memory locations.
Add an input attribute named "array" of type "int[]", another named "simple" of type "double", and output attributes
with matching names and types to pass data through using the dynamic attribute get() and set() methods.
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestSubtract.ogn | {
"TestSubtract": {
"version": 1,
"description": ["Example node subtracting a value from a vector, written in Python"],
"language": "python",
"uiName": "Test Node: Subtract (Python)",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnExecInputEnabledTest.py | """
This node's compute checks that its input attrib is properly enabled.
"""
import omni.graph.core as og
class OgnExecInputEnabledTest:
@staticmethod
def compute(db) -> bool:
if (
db.inputs.execInA == og.ExecutionAttributeState.ENABLED
and db.inputs.execInB == og.ExecutionAt... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnPerturbPoints.ogn | {
"PerturbPoints": {
"version": 1,
"description": "Randomly modify positions on a set of points",
"uiName": "Test Node: Randomly Perturb Points",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"scheduling": ["threadsafe"],
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestCategoryDefinitions.py | """Node that tests custom category assignment through extraction of the current category"""
import omni.graph.tools.ogn as ogn
class OgnTestCategoryDefinitions:
"""Extract the assigned category definition of a node type"""
@staticmethod
def compute(db) -> bool:
"""Compute only extracts the catego... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleConsumerPy.ogn | {
"BundleConsumerPy": {
"version": 1,
"description": "Node that consumes bundle from producer for change tracking",
"language": "Python",
"categories": "internal:test",
"exclude": [ "usd", "docs" ],
"uiName": "Test Node: Bundle Properties",
"icon": {
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestWriteVariablePy.py | """
Test node for writing variables
"""
import omni.graph.core as og
class OgnTestWriteVariablePy:
"""Python version of OgnWriteVariable"""
@staticmethod
def compute(db) -> bool:
"""Write the given variable"""
try:
db.set_variable(db.inputs.variableName, db.inputs.value.value)... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnPerturbBundlePoints.ogn | {
"PerturbBundlePoints": {
"version": 1,
"description": "Randomly modify positions on all points attributes within a bundle",
"uiName": "Test Node: Randomly Perturb Bundled Points",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestSchedulingHintsList.py | """Empty test node used for checking scheduling hints"""
class OgnTestSchedulingHintsList:
@staticmethod
def compute(db) -> bool:
return True
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestExecutionTask.ogn | {
"TestExecutionTask": {
"version": 1,
"description": "Test whether node was executed within execution framework task",
"uiName": "Test Node: Execution Task",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"exclude": ["tests... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnComputeErrorPy.ogn | {
"ComputeErrorPy": {
"description": [
"Generates a customizable error during its compute(), for testing",
"purposes. Python version."
],
"metadata" : {
"uiName": "Generate compute error (Python)"
},
"language": "Python",
"icon": {
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestScatter.ogn | {
"TestScatter" : {
"description": ["Test node to test out the effects of vectorization. Scatters the results of gathered compute back to FC"],
"version": 1,
"uiName": "Test Node: Scatter",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:t... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAllDataTypesCarb.ogn | {
"TestAllDataTypesCarb": {
"version": 1,
"description": [
"This node is meant to exercise the data access for all available data types used by the Carbonite type",
"configuration file. It includes all other data types as well, as confirmation that non-overridden",
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestScatter.cpp | // Copyright (c) 2019-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 softwa... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAllDataTypesPy.py | """
This node is meant to exercise data access for all available data types, including all",
legal combinations of tuples, arrays, and bundle members. The test section here is intentionally",
omitted so that the regression test script can programmatically generate tests for all known types,",
reducing the change of uni... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnRandomPointsPy.ogn | {
"RandomPointsPy": {
"version": 1,
"description": "Generate an array of the specified number of points at random locations within the bounding cube",
"language": "Python",
"uiName": "Python Test Node: Generate Random Points",
"icon": {
"path": "TestNodeIcon.svg"
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestGather.cpp | // Copyright (c) 2019-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 softwa... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAllowedTokens.py | """
Implementation of an OmniGraph node that contains attributes with the allowedTokens metadata
"""
import omni.graph.tools.ogn as ogn
class OgnTestAllowedTokens:
@staticmethod
def compute(db):
allowed_simple = db.attributes.inputs.simpleTokens.get_metadata(ogn.MetadataKeys.ALLOWED_TOKENS).split(",")... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnPerturbPoints.cpp | // Copyright (c) 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.graph.test/omni/graph/test/ogn/nodes/OgnTestNanInfPy.py | """
This node is meant to exercise data access for nan and inf values for all types in which they are valid
"""
class OgnTestNanInfPy:
@staticmethod
def compute(db) -> bool:
"""Copy the input to the output of the same name to verify assignment works"""
db.outputs.a_colord3_inf = db.inputs.a_c... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestBundleAttributeInterpolation.ogn | {
"TestBundleAttributeInterpolation": {
"version": 1,
"description": [
"Test node that exposes attribute interpolation through ConstBundlePrims interface."
],
"categories": "internal:test",
"scheduling": ["threadsafe"],
"exclude": ["tests", "usd", "docs"],... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnMultiply2IntArray.ogn | {
"Multiply2IntegerArrays": {
"description": ["Compute the array 'output' as the element-wise products of the input arrays 'a' and 'b'. ",
"If either of the input arrays have size 1 then that value will be multipled to every element ",
"of the other to form th... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleConsumerPy.py | """
This node is designed to consume input bundle and test bundle change tracking.
"""
class OgnBundleConsumerPy:
@staticmethod
def compute(db) -> bool:
with db.inputs.bundle.changes() as bundle_changes:
if bundle_changes:
db.outputs.bundle = db.inputs.bundle
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestExecutionTask.cpp | // 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 an... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnRandomPointsGpu.cpp | // Copyright (c) 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.graph.test/omni/graph/test/ogn/nodes/OgnBundleChildConsumerPy.py | """
This node is designed to consume shallow copied child from the bundle child
producer.
"""
class OgnBundleChildConsumerPy:
@staticmethod
def compute(db) -> bool:
input_bundle = db.inputs.bundle
db.outputs.numChildren = input_bundle.bundle.get_child_bundle_count()
surfaces_bundle = ... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAllDataTypesCarb.cpp | // Copyright (c) 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.graph.test/omni/graph/test/ogn/nodes/OgnNodeDatabasePy.ogn | {
"NodeDatabasePy": {
"version": 1,
"description": "Node that caches database id",
"language": "Python",
"categories": "internal:test",
"exclude": [ "usd", "docs" ],
"uiName": "Test Node: Node Database",
"icon": {
"path": "TestNodeIcon.svg"
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/TestCategoryDefinitions.json | {
"categoryDefinitions": {
"$description": "Special category definition, only used for test nodes",
"internal:categoryTest": "Category created only for testing category definitions"
}
} |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnMultiply2IntArray.cpp | // 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 an... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAllDataTypes.cpp | // Copyright (c) 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.graph.test/omni/graph/test/ogn/nodes/OgnTestSchedulingHintsString.cpp | // Copyright (c) 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.graph.test/omni/graph/test/ogn/nodes/OgnTestGather.ogn | {
"TestGather" : {
"description": ["Test node to test out the effects of vectorization."],
"version": 1,
"uiName": "Test Node: Gather",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"exclude": ["tests", "usd", "docs"],
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestCyclesSerial.ogn | {
"TestCyclesSerial": {
"version": 1,
"description": [
"Test node for checking cyclical behavior. Has a bunch of bool attributes from the get-go",
"for convenience (i.e. so that a bunch of attributes don't need to be added at runtime for",
"testing purposes). Sche... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAllDataTypesPod.cpp | // Copyright (c) 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.graph.test/omni/graph/test/ogn/nodes/OgnSubtractDoubleC.ogn | {
"SubtractDoubleC": {
"version": 1,
"description": ["Example node that subtracts 2 doubles from each other"],
"uiName": "Test Node: Subtract Double (C++)",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
"scheduling": ["thre... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnPerturbPointsGpu.cpp | // Copyright (c) 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.graph.test/omni/graph/test/ogn/nodes/OgnPerturbPointsPy.py | """
This is the implementation of the OGN node defined in OgnPerturbPoints.ogn
"""
from contextlib import suppress
import numpy as np
class OgnPerturbPointsPy:
"""
Perturb an array of points by random amounts within a proscribed limit
"""
@staticmethod
def compute(db) -> bool:
"""Compute... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestSchedulingHintsString.ogn | {
"TestSchedulingHintsString": {
"description": [
"Test node for scheduling hints specified by a string.",
"Note that the scheduling hints do not correspond to what the node actually does, they are just for testing."
],
"version": 1,
"icon": {
"pat... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnPerturbPointsPy.ogn | {
"PerturbPointsPy": {
"version": 1,
"description": "Randomly modify positions on a set of points",
"language": "Python",
"uiName": "Python Test Node: Randomly Perturb Points",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:test",
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestNanInf.ogn | {
"TestNanInf": {
"version": 1,
"description": "Test node that exercises specification of NaN and Inf numbers, tuples, and arrays",
"uiName": "Test Node: Exercise NaN and Inf",
"icon": {
"path": "TestNodeIcon.svg"
},
"exclude": ["usd", "docs"],
"ca... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnPerturbBundlePoints.cpp | // Copyright (c) 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.graph.test/omni/graph/test/ogn/nodes/OgnTestTupleArrays.py | """
Test node multiplying tuple arrays by a constant
"""
import numpy as np
class OgnTestTupleArrays:
"""Exercise a sample of complex data types through a Python OmniGraph node"""
@staticmethod
def compute(db) -> bool:
"""Multiply every value in a tuple array by a constant."""
multiplier... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleConsumer.ogn | {
"BundleConsumer": {
"version": 1,
"description": "Node that consumes bundle from producer for change tracking",
"categories": "internal:test",
"exclude": [ "usd", "docs" ],
"uiName": "Test Node: Bundle Properties",
"icon": {
"path": "TestNodeIcon.svg"
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleToTarget.ogn | {
"BundleToTarget": {
"version": 1,
"description": "Node that tests if bundle and target can be connected when read from USD file.",
"categories": "internal:test",
"exclude": [ "usd", "docs" ],
"uiName": "Test Node: Bundle To Target Connection",
"icon": {
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestCppKeywords.cpp | // Copyright (c) 2022-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 softwa... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestCyclesSerial.cpp | // Copyright (c) 2023, 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... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestUsdCasting.ogn | {
"TestUsdCasting": {
"version": 1,
"description": [
"This node is meant to exercise special bundle member casting used by USD types. It just copies members",
"of the input bundle to the output bundle when any of the recognized USD casting types are found."
],
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnRandomPoints.ogn | {
"RandomPoints": {
"version": 1,
"description": "Generate an array of the specified number of points at random locations within the bounding cube",
"uiName": "Test Node: Generate Random Points",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "inter... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnComputeErrorPy.py | """
This node generates compute() errors for testing purposes.
"""
import omni.graph.core as og
class OgnComputeErrorPy:
@staticmethod
def initialize(graph_context, node):
attr = node.get_attribute("inputs:deprecatedInInit")
# We would not normally deprecate an attribute this way. It would be... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestCyclesParallel.cpp | // Copyright (c) 2023, 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... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleProducer.cpp | // Copyright (c) 2023, 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.graph.test/omni/graph/test/ogn/nodes/OgnTestCategoryDefinitions.ogn | {
"TestCategoryDefinitions": {
"version": 1,
"categoryDefinitions": "TestCategoryDefinitions.json",
"icon": {
"path": "TestNodeIcon.svg"
},
"categories": "internal:categoryTest",
"exclude": ["usd", "docs"],
"language": "python",
"descriptio... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestDataModel.ogn | {
"TestDataModel": {
"version": 1,
"description": "Helper node that allows to test that core features of datamodel are working as expected (CoW, DataStealing, ...)",
"uiName": "Test Node: Exercise DataModel features",
"icon": {
"path": "TestNodeIcon.svg"
},
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnAdd2IntArray.cpp | // 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 an... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundlePropertiesPy.py | """
This node is designed to test bundle properties.
"""
class OgnBundlePropertiesPy:
@staticmethod
def compute(db) -> bool:
bundle_contents = db.inputs.bundle
db.outputs.valid = bundle_contents.valid
|
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnSubtractDoubleC.cpp | // Copyright (c) 2019-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 softwa... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnPerturbPointsGpu.ogn | {
"PerturbPointsGpu": {
"version": 1,
"description": "Randomly modify positions on a set of points. Same as OgnPerturbPoints.ogn, except written in CUDA.",
"uiName": "Test Node: Randomly Perturb Points - GPU",
"icon": {
"path": "TestNodeIcon.svg"
},
"categ... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestCyclesParallel.ogn | {
"TestCyclesParallel": {
"version": 1,
"description": [
"Test node for checking cyclical behavior. Has a bunch of bool attributes from the get-go",
"for convenience (i.e. so that a bunch of attributes don't need to be added at runtime for",
"testing purposes). Sc... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnAdd2IntArray.ogn | {
"Add2IntegerArrays": {
"description": ["Compute the array 'output' as the element-wise sums of the input arrays 'a' and 'b'. ",
"If either of the input arrays have size 1 then that value will be added to every element ",
"of the other to form the output."
... |
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestReadVariablePy.py | import omni.graph.core as og
class OgnTestReadVariablePy:
"""Python version of OgnWriteVariable"""
@staticmethod
def compute(db) -> bool:
"""Read the given variable and write it to the output"""
value = db.get_variable(db.inputs.variableName)
if value is not None:
db.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.