|
#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(r, 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(r, unused, elem) |
|
#define | SDF_VALUE_ROLE_NAME_TOKENS |
|
|
enum | SdfSpecType {
SdfSpecTypeUnknown = 0
, SdfSpecTypeAttribute
, SdfSpecTypeConnection
, SdfSpecTypeExpression
,
SdfSpecTypeMapper
, SdfSpecTypeMapperArg
, SdfSpecTypePrim
, SdfSpecTypePseudoRoot
,
SdfSpecTypeRelationship
, SdfSpecTypeRelationshipTarget
, SdfSpecTypeVariant
, SdfSpecTypeVariantSet
,
SdfNumSpecTypes
} |
| An enum that specifies the type of an object. More...
|
|
enum | SdfSpecifier { SdfSpecifierDef
, SdfSpecifierOver
, SdfSpecifierClass
, SdfNumSpecifiers
} |
| An enum that identifies the possible specifiers for an SdfPrimSpec. More...
|
|
enum | SdfPermission { SdfPermissionPublic
, SdfPermissionPrivate
, SdfNumPermissions
} |
| An enum that defines permission levels. More...
|
|
enum | SdfVariability { SdfVariabilityVarying
, SdfVariabilityUniform
, SdfNumVariabilities
} |
| An enum that identifies variability types for attributes. More...
|
|
enum | SdfAuthoringError { SdfAuthoringErrorUnrecognizedFields
, SdfAuthoringErrorUnrecognizedSpecType
} |
| An enum for TfError codes related to authoring operations. More...
|
|
|
bool | SdfIsDefiningSpecifier (SdfSpecifier spec) |
| Returns true if the specifier defines a prim.
|
|
SDF_API TfEnum | SdfDefaultUnit (TfToken const &typeName) |
| Gets the show default unit for the given /a typeName.
|
|
SDF_API const TfEnum & | SdfDefaultUnit (const TfEnum &unit) |
| Gets the show default unit for the given /a unit.
|
|
SDF_API const std::string & | SdfUnitCategory (const TfEnum &unit) |
| Gets the unit category for a given /a unit.
|
|
SDF_API double | SdfConvertUnit (const TfEnum &fromUnit, const TfEnum &toUnit) |
| Converts from one unit of measure to another.
|
|
SDF_API const std::string & | SdfGetNameForUnit (const TfEnum &unit) |
| Gets the name for a given /a unit.
|
|
SDF_API const TfEnum & | SdfGetUnitFromName (const std::string &name) |
| Gets a unit for the given /a name.
|
|
SDF_API bool | SdfValueHasValidType (VtValue const &value) |
| Given a value, returns if there is a valid corresponding valueType.
|
|
SDF_API TfType | SdfGetTypeForValueTypeName (TfToken const &name) |
| Given an sdf valueType name, produce TfType if the type name specifies a valid sdf value type.
|
|
SDF_API SdfValueTypeName | SdfGetValueTypeNameForValue (VtValue const &value) |
| Given a value, produce the sdf valueType name.
|
|
SDF_API TfToken | SdfGetRoleNameForValueTypeName (TfToken const &typeName) |
| Return role name for typeName .
|
|
| BOOST_PP_SEQ_FOR_EACH (SDF_DECLARE_VALUE_TYPE_TRAITS, ~, SDF_VALUE_TYPES) |
|
SDF_API bool | SdfConvertToValidMetadataDictionary (VtDictionary *dict, std::string *errMsg) |
| Convert dict to a valid metadata dictionary for scene description.
|
|
| 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.
|
|
SDF_API std::ostream & | operator<< (std::ostream &out, const SdfRelocatesMap &reloMap) |
| Writes the string representation of SdfRelocatesMap to out.
|
|
SDF_API std::ostream & | operator<< (std::ostream &out, const SdfTimeSampleMap &sampleMap) |
| Writes the string representation of SdfTimeSampleMap to out.
|
|
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.
|
|
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.
SDF_API bool SdfConvertToValidMetadataDictionary |
( |
VtDictionary * |
dict, |
|
|
std::string * |
errMsg |
|
) |
| |
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.