HDK
|
#include "pxr/pxr.h"
#include "pxr/usd/sdf/api.h"
#include "pxr/usd/sdf/assetPath.h"
#include "pxr/usd/sdf/declareHandles.h"
#include "pxr/usd/sdf/listOp.h"
#include "pxr/usd/sdf/opaqueValue.h"
#include "pxr/usd/sdf/pathExpression.h"
#include "pxr/usd/sdf/timeCode.h"
#include "pxr/usd/sdf/valueTypeName.h"
#include "pxr/base/arch/demangle.h"
#include "pxr/base/arch/inttypes.h"
#include "pxr/base/arch/pragmas.h"
#include "pxr/base/gf/half.h"
#include "pxr/base/gf/matrix2d.h"
#include "pxr/base/gf/matrix3d.h"
#include "pxr/base/gf/matrix4d.h"
#include "pxr/base/gf/quatd.h"
#include "pxr/base/gf/quatf.h"
#include "pxr/base/gf/quath.h"
#include "pxr/base/gf/vec2d.h"
#include "pxr/base/gf/vec2f.h"
#include "pxr/base/gf/vec2h.h"
#include "pxr/base/gf/vec2i.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/vec3h.h"
#include "pxr/base/gf/vec3i.h"
#include "pxr/base/gf/vec4d.h"
#include "pxr/base/gf/vec4f.h"
#include "pxr/base/gf/vec4h.h"
#include "pxr/base/gf/vec4i.h"
#include "pxr/base/tf/enum.h"
#include "pxr/base/tf/preprocessorUtilsLite.h"
#include "pxr/base/tf/staticTokens.h"
#include "pxr/base/tf/token.h"
#include "pxr/base/tf/type.h"
#include "pxr/base/vt/array.h"
#include "pxr/base/vt/dictionary.h"
#include "pxr/base/vt/value.h"
#include <iosfwd>
#include <list>
#include <map>
#include <stdint.h>
#include <string>
#include <typeinfo>
#include <vector>
Go to the source code of this file.
Classes | |
struct | SdfValueTypeTraits< T > |
struct | SdfValueTypeTraits< char[N]> |
class | SdfUnregisteredValue |
class | Sdf_ValueTypeNamesType |
struct | Sdf_ValueTypeNamesType::_Init |
class | SdfValueBlock |
struct | SdfHumanReadableValue |
Typedefs | |
typedef std::map< std::string, std::string > | SdfVariantSelectionMap |
A map of reference variant set names to variants in those sets. More... | |
typedef std::map< std::string, std::vector< std::string > > | SdfVariantsMap |
A map of variant set names to list of variants in those sets. More... | |
typedef std::map< SdfPath, SdfPath > | SdfRelocatesMap |
A map of source SdfPaths to target SdfPaths for relocation. More... | |
typedef std::map< double, VtValue > | SdfTimeSampleMap |
A map from sample times to sample values. More... | |
typedef std::map< std::string, SdfVariantSetSpecHandle > | SdfVariantSetSpecHandleMap |
Variables | |
ARCH_PRAGMA_PUSH ARCH_PRAGMA_MACRO_TOO_FEW_ARGUMENTS ARCH_PRAGMA_POP typedef std::map< std::string, VtValue > | SdfMapperParametersMap |
A map of mapper parameter names to parameter values. More... | |
SDF_API TfStaticData< const Sdf_ValueTypeNamesType, Sdf_ValueTypeNamesType::_Init > | SdfValueTypeNames |
Basic Sdf data types
Definition in file types.h.
#define _SDF_ANGULAR_UNITS |
#define _SDF_DECLARE_UNIT_ENUM | ( | elem | ) |
#define _SDF_DECLARE_UNIT_ENUMERANT | ( | tag, | |
elem | |||
) | TF_PP_CAT(Sdf ## tag ## Unit, _SDF_UNIT_TAG(elem)), |
#define _SDF_DIMENSIONED_VALUE_TYPES |
#define _SDF_DIMENSIONLESS_UNITS |
#define _SDF_FOR_EACH_UNITS | ( | macro, | |
args | |||
) | _SDF_FOR_EACH_UNITS_IMPL(macro, TF_PP_EAT_PARENS(args)) |
#define _SDF_FOR_EACH_UNITS_IMPL | ( | macro, | |
... | |||
) | TF_PP_FOR_EACH(macro, __VA_ARGS__) |
#define _SDF_LENGTH_UNITS |
#define _SDF_SCALAR_VALUE_TYPES |
#define _SDF_UNIT_NAME | ( | tup | ) | TF_PP_TUPLE_ELEM(1, tup) |
#define _SDF_UNIT_SCALE | ( | tup | ) | TF_PP_TUPLE_ELEM(2, tup) |
#define _SDF_UNIT_TAG | ( | tup | ) | TF_PP_TUPLE_ELEM(0, tup) |
#define _SDF_UNITS |
#define _SDF_UNITSLIST_CATEGORY | ( | tup | ) | TF_PP_TUPLE_ELEM(0, tup) |
#define _SDF_UNITSLIST_ENUM | ( | elem | ) |
#define _SDF_UNITSLIST_TUPLES | ( | tup | ) | TF_PP_TUPLE_ELEM(1, tup) |
#define SDF_DECLARE_VALUE_TYPE_TRAITS | ( | unused, | |
elem | |||
) |
#define SDF_VALUE_CPP_ARRAY_TYPE | ( | tup | ) | VtArray<TF_PP_TUPLE_ELEM(2, tup)> |
#define SDF_VALUE_CPP_TYPE | ( | tup | ) | TF_PP_TUPLE_ELEM(2, tup) |
#define SDF_VALUE_ROLE_NAME_TOKENS |
#define SDF_VALUE_TYPES _SDF_SCALAR_VALUE_TYPES _SDF_DIMENSIONED_VALUE_TYPES |
typedef std::map<SdfPath, SdfPath> SdfRelocatesMap |
typedef std::map<double, VtValue> SdfTimeSampleMap |
typedef std::map<std::string, std::string> SdfVariantSelectionMap |
typedef std::map<std::string, SdfVariantSetSpecHandle> SdfVariantSetSpecHandleMap |
typedef std::map<std::string, std::vector<std::string> > SdfVariantsMap |
enum SdfAuthoringError |
An enum for TfError codes related to authoring operations.
SdfAuthoringError:
Enumerator | |
---|---|
SdfAuthoringErrorUnrecognizedFields | |
SdfAuthoringErrorUnrecognizedSpecType |
enum SdfPermission |
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:
Enumerator | |
---|---|
SdfPermissionPublic | |
SdfPermissionPrivate | |
SdfNumPermissions |
enum SdfSpecifier |
An enum that identifies the possible specifiers for an SdfPrimSpec. The SdfSpecifier enum is registered as a TfEnum for converting to and from std::string
.
SdfSpecifier:
Enumerator | |
---|---|
SdfSpecifierDef | |
SdfSpecifierOver | |
SdfSpecifierClass | |
SdfNumSpecifiers |
enum SdfSpecType |
An enum that specifies the type of an object. Objects are entities that have fields and are addressable by path.
enum SdfVariability |
An enum that identifies variability types for attributes. Variability indicates whether the attribute may vary over time and value coordinates, and if its value comes through authoring or or from its owner.
SdfVariability:
Enumerator | |
---|---|
SdfVariabilityVarying | |
SdfVariabilityUniform | |
SdfNumVariabilities |
SDF_API size_t hash_value | ( | const SdfHumanReadableValue & | hrval | ) |
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& 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_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 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.
Converts from one unit of measure to another. The fromUnit and toUnit units must be of the same type (for example, both of type SdfLengthUnit).
Gets the show default unit for the given /a typeName.
Gets the show default unit for the given /a unit.
SDF_API const std::string& SdfGetNameForUnit | ( | const TfEnum & | unit | ) |
Gets the name for a given /a unit.
Return role name for typeName
. Return empty token if typeName
has no associated role name.
Given an sdf valueType name, produce TfType if the type name specifies a valid sdf value type.
SDF_API const TfEnum& SdfGetUnitFromName | ( | const std::string & | name | ) |
Gets a unit for the given /a name.
SDF_API SdfValueTypeName SdfGetValueTypeNameForValue | ( | VtValue const & | value | ) |
Given a value, produce the sdf valueType name. If you provide a value that does not return true for SdfValueHasValidType, the return value is unspecified.
|
inline |
SDF_API const std::string& SdfUnitCategory | ( | const TfEnum & | unit | ) |
Gets the unit category for a given /a unit.
Given a value, returns if there is a valid corresponding valueType.
TF_DECLARE_PUBLIC_TOKENS | ( | SdfValueRoleNames | , |
SDF_API | , | ||
SDF_VALUE_ROLE_NAME_TOKENS | |||
) |
TF_PP_SEQ_FOR_EACH | ( | SDF_DECLARE_VALUE_TYPE_TRAITS | , |
~ | , | ||
SDF_VALUE_TYPES | |||
) |
SDF_API std::ostream& VtStreamOut | ( | const SdfVariantSelectionMap & | , |
std::ostream & | |||
) |
ARCH_PRAGMA_PUSH ARCH_PRAGMA_MACRO_TOO_FEW_ARGUMENTS ARCH_PRAGMA_POP typedef std::map<std::string, VtValue> SdfMapperParametersMap |
SDF_API TfStaticData<const Sdf_ValueTypeNamesType, Sdf_ValueTypeNamesType::_Init> SdfValueTypeNames |