|
HDK
|
#include <shaderPropertyMetadata.h>
Friends | |
| class | SdrShaderProperty |
SdrShaderPropertyMetadata contains generic and named metadata for SdrShaderProperty.
Named metadata are key-value items that are standardized and documented for interchange. Named metadata items are defined to have certain types that expect certain encodings. The Has/Set/Get methods for named key-value items provide views into the requested metadata item's unpacked VtValues.
NOTE: This metadata is retrievable from SdrShaderProperty with SdrShaderProperty::GetMetadataObject
Definition at line 81 of file shaderPropertyMetadata.h.
| SDR_API SdrShaderPropertyMetadata::SdrShaderPropertyMetadata | ( | const SdrTokenMap & | legacyMetadata | ) |
Ingest metadata from the legacy SdrTokenMap structure.
For named metadata items, conversions to richer types from the SdrTokenMap values are attempted.
|
inline |
Ingest metadata from an initializer list for the legacy SdrTokenMap.
This helps provide automatic, implicit backwards compatibility for users that construct SdrTokenMap metadata via an initializer list in the SdrShaderProperty constructor.
Definition at line 96 of file shaderPropertyMetadata.h.
|
inlineexplicit |
Definition at line 100 of file shaderPropertyMetadata.h.
|
inlineexplicit |
Definition at line 103 of file shaderPropertyMetadata.h.
|
inline |
Definition at line 106 of file shaderPropertyMetadata.h.
Clear the metadata item for the given key if it exists.
| SDR_API bool SdrShaderPropertyMetadata::GetConnectable | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::GetDefaultInput | ( | ) | const |
| SDR_API std::string SdrShaderPropertyMetadata::GetHelp | ( | ) | const |
| SDR_API std::string SdrShaderPropertyMetadata::GetImplementationName | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::GetIsAssetIdentifier | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::GetIsDynamicArray | ( | ) | const |
|
inline |
Get all key-value items.
Definition at line 161 of file shaderPropertyMetadata.h.
|
inline |
Get all key-value items by-value.
Definition at line 164 of file shaderPropertyMetadata.h.
|
inline |
Convenience to get an item value as T.
If any value fails conversion or doesn't exist in the metadata, a default constructed value for T is returned.
Definition at line 144 of file shaderPropertyMetadata.h.
| SDR_API std::string SdrShaderPropertyMetadata::GetRenderType | ( | ) | const |
| SDR_API std::string SdrShaderPropertyMetadata::GetRole | ( | ) | const |
| SDR_API std::string SdrShaderPropertyMetadata::GetShownIf | ( | ) | const |
| SDR_API SdrTokenVec SdrShaderPropertyMetadata::GetValidConnectionTypes | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::HasColorspace | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::HasConnectable | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::HasDefaultInput | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::HasHelp | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::HasImplementationName | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::HasIsAssetIdentifier | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::HasIsDynamicArray | ( | ) | const |
Returns whether this metadata contains an item with the given key.
| SDR_API bool SdrShaderPropertyMetadata::HasLabel | ( | ) | const |
Named metadata
{@
| SDR_API bool SdrShaderPropertyMetadata::HasPage | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::HasRenderType | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::HasRole | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::HasSdrUsdDefinitionType | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::HasShownIf | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::HasTupleSize | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::HasValidConnectionTypes | ( | ) | const |
| SDR_API bool SdrShaderPropertyMetadata::HasWidget | ( | ) | const |
Set a key-value item for this metadata.
If the key-value item already exists, it will be overwritten by the provided arguments.
Issues a TF_CODING_ERROR if the value is empty or if the key is in "named metadata" and the value's contained type does not match the type registered by the named metadata item.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 125 of file shaderPropertyMetadata.h.
| SDR_API void SdrShaderPropertyMetadata::SetValidConnectionTypes | ( | const SdrTokenVec & | v | ) |
|
friend |
Definition at line 317 of file shaderPropertyMetadata.h.