|
#define | _SDF_LENGTH_UNITS |
|
#define | _SDF_ANGULAR_UNITS |
|
#define | _SDF_DIMENSIONLESS_UNITS |
|
#define | _SDF_UNITS |
|
#define | _SDF_UNIT_TAG(tup) TF_PP_TUPLE_ELEM(0, tup) |
|
#define | _SDF_UNIT_NAME(tup) TF_PP_TUPLE_ELEM(1, tup) |
|
#define | _SDF_UNIT_SCALE(tup) TF_PP_TUPLE_ELEM(2, tup) |
|
#define | _SDF_UNITSLIST_CATEGORY(tup) TF_PP_TUPLE_ELEM(0, tup) |
|
#define | _SDF_UNITSLIST_TUPLES(tup) TF_PP_TUPLE_ELEM(1, tup) |
|
#define | _SDF_UNITSLIST_ENUM(elem) |
|
#define | _SDF_DECLARE_UNIT_ENUMERANT(tag, elem) TF_PP_CAT(Sdf ## tag ## Unit, _SDF_UNIT_TAG(elem)), |
|
#define | _SDF_DECLARE_UNIT_ENUM(elem) |
|
#define | _SDF_FOR_EACH_UNITS_IMPL(macro,...) TF_PP_FOR_EACH(macro, __VA_ARGS__) |
|
#define | _SDF_FOR_EACH_UNITS(macro, args) _SDF_FOR_EACH_UNITS_IMPL(macro, TF_PP_EAT_PARENS(args)) |
|
#define | _SDF_SCALAR_VALUE_TYPES |
|
#define | _SDF_DIMENSIONED_VALUE_TYPES |
|
#define | SDF_VALUE_TYPES _SDF_SCALAR_VALUE_TYPES _SDF_DIMENSIONED_VALUE_TYPES |
|
#define | SDF_VALUE_CPP_TYPE(tup) TF_PP_TUPLE_ELEM(2, tup) |
|
#define | SDF_VALUE_CPP_ARRAY_TYPE(tup) VtArray<TF_PP_TUPLE_ELEM(2, tup)> |
|
#define | SDF_DECLARE_VALUE_TYPE_TRAITS(unused, elem) |
|
#define | SDF_VALUE_ROLE_NAME_TOKENS |
|
|
bool | SdfIsDefiningSpecifier (SdfSpecifier spec) |
| Returns true if the specifier defines a prim. More...
|
|
SDF_API TfEnum | SdfDefaultUnit (TfToken const &typeName) |
| Gets the show default unit for the given /a typeName. More...
|
|
SDF_API const TfEnum & | SdfDefaultUnit (const TfEnum &unit) |
| Gets the show default unit for the given /a unit. More...
|
|
SDF_API const std::string & | SdfUnitCategory (const TfEnum &unit) |
| Gets the unit category for a given /a unit. More...
|
|
SDF_API double | SdfConvertUnit (const TfEnum &fromUnit, const TfEnum &toUnit) |
|
SDF_API const std::string & | SdfGetNameForUnit (const TfEnum &unit) |
| Gets the name for a given /a unit. More...
|
|
SDF_API const TfEnum & | SdfGetUnitFromName (const std::string &name) |
| Gets a unit for the given /a name. More...
|
|
SDF_API bool | SdfValueHasValidType (VtValue const &value) |
| Given a value, returns if there is a valid corresponding valueType. More...
|
|
SDF_API TfType | SdfGetTypeForValueTypeName (TfToken const &name) |
|
SDF_API SdfValueTypeName | SdfGetValueTypeNameForValue (VtValue const &value) |
|
SDF_API TfToken | SdfGetRoleNameForValueTypeName (TfToken const &typeName) |
|
| TF_PP_SEQ_FOR_EACH (SDF_DECLARE_VALUE_TYPE_TRAITS,~, SDF_VALUE_TYPES) |
|
SDF_API bool | SdfConvertToValidMetadataDictionary (VtDictionary *dict, std::string *errMsg) |
|
| TF_DECLARE_PUBLIC_TOKENS (SdfValueRoleNames, SDF_API, SDF_VALUE_ROLE_NAME_TOKENS) |
|
| SDF_DECLARE_HANDLES (SdfLayer) |
|
| SDF_DECLARE_HANDLES (SdfAttributeSpec) |
|
| SDF_DECLARE_HANDLES (SdfPrimSpec) |
|
| SDF_DECLARE_HANDLES (SdfPropertySpec) |
|
| SDF_DECLARE_HANDLES (SdfSpec) |
|
| SDF_DECLARE_HANDLES (SdfRelationshipSpec) |
|
| SDF_DECLARE_HANDLES (SdfVariantSetSpec) |
|
| SDF_DECLARE_HANDLES (SdfVariantSpec) |
|
SDF_API std::ostream & | operator<< (std::ostream &out, const SdfSpecifier &spec) |
| Writes the string representation of SdfSpecifier to out. More...
|
|
SDF_API std::ostream & | operator<< (std::ostream &out, const SdfRelocatesMap &reloMap) |
| Writes the string representation of SdfRelocatesMap to out. More...
|
|
SDF_API std::ostream & | operator<< (std::ostream &out, const SdfTimeSampleMap &sampleMap) |
| Writes the string representation of SdfTimeSampleMap to out. More...
|
|
SDF_API std::ostream & | VtStreamOut (const SdfVariantSelectionMap &, std::ostream &) |
|
SDF_API std::ostream & | operator<< (std::ostream &out, const SdfUnregisteredValue &value) |
| Writes the string representation of SdfUnregisteredValue to out. More...
|
|
SDF_API std::ostream & | operator<< (std::ostream &, SdfValueBlock const &) |
|
SDF_API std::ostream & | operator<< (std::ostream &out, const SdfHumanReadableValue &hrval) |
|
SDF_API size_t | hash_value (const SdfHumanReadableValue &hrval) |
|
Basic Sdf data types
Definition in file types.h.
An enum that defines permission levels.
Permissions control which layers may refer to or express opinions about a prim. Opinions expressed about a prim, or relationships to that prim, by layers that are not allowed permission to access the prim will be ignored.
SdfPermission:
-
SdfPermissionPublic. Public prims can be referred to by anything. (Available to any client.)
-
SdfPermissionPrivate. Private prims can be referred to only within the local layer stack, and not across references or inherits. (Not available to clients.)
-
SdfNumPermission. Internal sentinel value.
Enumerator |
---|
SdfPermissionPublic |
|
SdfPermissionPrivate |
|
SdfNumPermissions |
|
Definition at line 149 of file types.h.
Convert dict
to a valid metadata dictionary for scene description. Valid metadata dictionaries have values that are any of SDF_VALUE_TYPES (or VtArrays of those), plus VtDictionary with values of those types (or similarly nested VtDictionaries).
Certain conversions are performed in an attempt to produce a valid metadata dictionary. For example:
Convert std::vector<VtValue> to VtArray<T> where T is the type of the first element in the vector. Fail conversion for empty vectors where a concrete type cannot be inferred.
Convert python sequences to VtArray<T> where T is the type of the first element in the python sequence, when converted to VtValue, if that T is an SDF_VALUE_TYPE). Fail conversion for empty sequences where a concrete type cannot be inferred.
If any values cannot be converted to valid SDF_VALUE_TYPES, omit those elements and add a message to errMsg
indicating which values were omitted.