![]() |
|
Collaboration diagram for Value Specifiers:Functions | |
| template<typename ResultType > | |
| ValueSpecifier | Computation (const TfToken &computationName) |
| See Computation(). | |
| template<typename ResultType > | |
| ValueSpecifier | IncomingConnections (const TfToken &computationName) |
| See IncomingConnections(). | |
| template<typename ResultType > | |
| ValueSpecifier | Metadata (const TfToken &metadataKey) |
| See Metadata(). | |
| template<typename ResultType > | |
| ValueSpecifier | Connections (const TfToken &computationName) |
| See Connections(). | |
| template<typename ResultType > | |
| ValueSpecifier | TargetedObjects (const TfToken &computationName) |
After a Relationship() accessor, requests input values from the computation computationName of type ResultType on the objects targeted by the relationship. | |
| Computation (const TfToken &computationName) | |
Requests an input value from the computation computationName of type ResultType. | |
| Metadata (const TfToken &metadataKey) | |
Requests an input value from the metadata field indicated by metadataKey, of type ResultType. | |
| Constant (ValueType &&constantValue) | |
Requests a constant input value of type ValueType. | |
| Constant (const ValueType &constantValue) | |
| NamespaceAncestor (const TfToken &computationName) | |
On a prim computation, requests an input value from the computation computationName of type ResultType on the nearest namespace ancestor prim. | |
| template<typename ResultType > | |
| auto | Connections (const TfToken &computationName) |
As a direct input to an attribute computation or after an Attribute() accessor, requests input values from the computation computationName of type ResultType on the objects targeted by the attribute's connections. | |
| template<typename ResultType > | |
| auto | IncomingConnections (const TfToken &computationName) |
On any provider, requests input values from the computation computationName of type ResultType on the attributes that own any attribute connections that target the provider object. | |
A value specifier is an element of an input registration that identifies the value that is requested from a given computation provider.
Each computation input registration must contain exactly one value specifier. A value specifier comes after a sequence of zero or more object accessors, which determine the provider. A value specifier may be followed by one or more input options.
|
inline |
See Computation().
Definition at line 500 of file computationBuilders.h.
|
inline |
Requests an input value from the computation computationName of type ResultType.
The default input name is computationName; use InputName to specify a different input name.
Definition at line 877 of file computationBuilders.h.
|
inline |
See Connections().
Definition at line 572 of file computationBuilders.h.
| auto Connections | ( | const TfToken & | computationName | ) |
As a direct input to an attribute computation or after an Attribute() accessor, requests input values from the computation computationName of type ResultType on the objects targeted by the attribute's connections.
The default input name is computationName; use InputName to specify a different input name.
Definition at line 1235 of file computationBuilders.h.
|
inline |
Definition at line 1059 of file computationBuilders.h.
|
inline |
Requests a constant input value of type ValueType.
Constant(value) must be followed by .InputName(name).This kind of input isn't necessarily useful when used with a self-contained computation definition. But it becomes useful for more complicated registrations, where one piece of code registers a callback that configures its evaluation-time behavior based on an input value and a separate piece of code registers a constant input that selects the desired behavior.
This can happen:
All computation input value types, including value types used to provide constant inputs, must be known to the execution system. All types that can be used to author attribute and metadata values in USD are known to exec by default. User-defined types must be registered by calling ExecTypeRegistry::RegisterType.
This simple example shows the mechanics of using a constant input, without being suggestive of how it might be useful.
This example demonstrate how more complicated registration code might make use of constant inputs to configure the behavior of a callback at evaluation time.
Definition at line 1043 of file computationBuilders.h.
|
inline |
Definition at line 515 of file computationBuilders.h.
| auto IncomingConnections | ( | const TfToken & | computationName | ) |
On any provider, requests input values from the computation computationName of type ResultType on the attributes that own any attribute connections that target the provider object.
When this input parameter produces multiple input values, there is no deterministic ordering.
The default input name is computationName; use InputName to specify a different input name.
Definition at line 1286 of file computationBuilders.h.
|
inline |
See Metadata().
Definition at line 528 of file computationBuilders.h.
Requests an input value from the metadata field indicated by metadataKey, of type ResultType.
The default input name is metadataKey; use InputName to specify a different input name.
Definition at line 919 of file computationBuilders.h.
|
inline |
On a prim computation, requests an input value from the computation computationName of type ResultType on the nearest namespace ancestor prim.
The default input name is computationName; use InputName to specify a different input name.
Definition at line 1124 of file computationBuilders.h.
|
inline |
After a Relationship() accessor, requests input values from the computation computationName of type ResultType on the objects targeted by the relationship.
Relationship forwarding is applied, so if the relationship targets another relationship, the targets are transitively expanded, resulting in the ultimately targeted, non-relationship objects.
The default input name is computationName; use InputName to specify a different input name.
Definition at line 636 of file computationBuilders.h.