![]() |
|
A value specifier is an element of an input registration that identifies the value that is requested from a given computation provider. More...
Collaboration diagram for Value Specifiers:Functions | |
| template<typename ResultType > | |
| ValueSpecifier | Computation (const TfToken &computationName) |
| See Computation(). | |
| template<typename ResultType > | |
| ValueSpecifier | Metadata (const TfToken &metadataKey) |
| See Metadata(). | |
| template<typename ResultType > | |
| ValueSpecifier | ConnectionTargetedObjects (const TfToken &computationName) |
| See ConnectionTargetedObjects(). | |
| 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 | ConnectionTargetedObjects (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. | |
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 499 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 864 of file computationBuilders.h.
|
inline |
See ConnectionTargetedObjects().
Definition at line 559 of file computationBuilders.h.
| auto ConnectionTargetedObjects | ( | 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 1206 of file computationBuilders.h.
|
inline |
Definition at line 1034 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:
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 1018 of file computationBuilders.h.
|
inline |
See Metadata().
Definition at line 514 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 906 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 1099 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 623 of file computationBuilders.h.