OmniGraph Node omni.graph.test.TypeResolution

omni.graph.test.TypeResolution Properties

Name

Value

Version

1

Extension

omni.graph.test

Icon

ogn/icons/omni.graph.test.TypeResolution.svg

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Test Node: Attribute Type Resolution

__categories

internal:test

Generated Class Name

OgnTestTypeResolutionDatabase

Python Module

omni.graph.test

omni.graph.test.TypeResolution Description

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 type. The extra string output provides the resolution information to the test script for verification

omni.graph.test.TypeResolution Inputs

Name

Type

Default

Required?

Descripton

inputs:anyValueIn

any

None

Y

Input that can resolve to any type. Internally the node couples the types of inputs:anyValueIn -> outputs:anyValue. Meaning if one is resolved it will automatically resolve the other

omni.graph.test.TypeResolution Outputs

Name

Type

Default

Required?

Descripton

outputs:anyValue

any

None

Y

Output that can resolve to any type at all

outputs:arrayValue

[‘double[]’, ‘float[]’, ‘int64[]’, ‘int[]’, ‘uint64[]’, ‘uint[]’]

None

Y

Output that only resolves to one of the numeric array types.

outputs:mixedValue

[‘float’, ‘float[3]’, ‘float[3][]’, ‘float[]’]

None

Y

Output that can resolve to data of different shapes.

outputs:resolvedType

token[]

None

Y

Array of strings representing the output attribute’s type resolutions. The array items consist of comma-separated pairs of strings representing the output attribute name and the type to which it is currently resolved. e.g. if the attribute ‘foo’ is an integer there would be one entry in the array with the string ‘foo,int’

outputs:tupleArrayValue

[‘double[3][]’, ‘float[3][]’, ‘int[3][]’]

None

Y

Output that only resolves to one of the numeric tuple array types.

outputs:tupleValue

[‘double[3]’, ‘float[3]’, ‘int[3]’]

None

Y

Output that only resolves to one of the numeric tuple types.

outputs:value

[‘double’, ‘float’, ‘int’, ‘int64’, ‘uint’, ‘uint64’]

None

Y

Output that only resolves to one of the numeric types.