24 #ifndef USDSKEL_GENERATED_BLENDSHAPE_H 25 #define USDSKEL_GENERATED_BLENDSHAPE_H 30 #include "pxr/usd/usdSkel/api.h" 31 #include "pxr/usd/usd/typed.h" 37 #include "pxr/usd/usdSkel/inbetweenShape.h" 39 #include "pxr/base/vt/value.h" 46 #include "pxr/base/tf/type.h" 48 PXR_NAMESPACE_OPEN_SCOPE
112 Get(
const UsdStagePtr &stage,
const SdfPath &path);
151 static const TfType &_GetStaticTfType();
153 static bool _IsTypedSchema();
157 const TfType &_GetTfType()
const override;
300 std::string* reason=
nullptr);
303 std::vector<UsdSkelInbetweenShape>
304 _MakeInbetweens(
const std::vector<UsdProperty>& props)
const;
307 PXR_NAMESPACE_CLOSE_SCOPE
USDSKEL_API std::vector< UsdSkelInbetweenShape > GetAuthoredInbetweens() const
Like GetInbetweens(), but exclude inbetwens that have no authored scene / description.
Describes a target blend shape, possibly containing inbetween shapes.
static USDSKEL_API const TfTokenVector & GetSchemaAttributeNames(bool includeInherited=true)
Return a vector of names of all pre-declared attributes for this schema class and all its ancestor cl...
USDSKEL_API UsdAttribute GetNormalOffsetsAttr() const
Required property.
UsdSkelBlendShape(const UsdSchemaBase &schemaObj)
Construct a UsdSkelBlendShape on the prim held by schemaObj .
UsdSkelBlendShape(const UsdPrim &prim=UsdPrim())
Construct a UsdSkelBlendShape on UsdPrim prim .
Scenegraph object for authoring and retrieving numeric, string, and array valued data,...
USDSKEL_API UsdAttribute CreateNormalOffsetsAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetNormalOffsetsAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
USDSKEL_API UsdSchemaKind _GetSchemaKind() const override
Returns the kind of schema this class belongs to.
UsdSchemaKind
An enum representing which kind of schema a given schema class belongs to.
Token for efficient comparison, assignment, and hashing of known strings.
static USDSKEL_API UsdSkelBlendShape Define(const UsdStagePtr &stage, const SdfPath &path)
Attempt to ensure a UsdPrim adhering to this schema at path is defined (according to UsdPrim::IsDefin...
Represents a range of contiguous elements.
Represents a concrete typed schema.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
The base class for all typed schemas (those that can impart a typeName to a UsdPrim),...
static USDSKEL_API UsdSkelBlendShape Get(const UsdStagePtr &stage, const SdfPath &path)
Return a UsdSkelBlendShape holding the prim adhering to this schema at path on stage.
std::vector< TfToken > TfTokenVector
Convenience types.
USDSKEL_API UsdSkelInbetweenShape GetInbetween(const TfToken &name) const
Return the Inbetween corresponding to the attribute named name, which will be valid if an Inbetween a...
A path value used to locate objects in layers or scenegraphs.
static USDSKEL_API bool ValidatePointIndices(TfSpan< const int > indices, size_t numPoints, std::string *reason=nullptr)
Validates a set of point indices for a given point count.
Contains an asset path and an optional resolved path.
USDSKEL_API UsdSkelInbetweenShape CreateInbetween(const TfToken &name) const
Author scene description to create an attribute on this prim that will be recognized as an Inbetween ...
TfType represents a dynamic runtime type.
Singleton registry that provides access to schema type information and the prim definitions for regis...
USDSKEL_API std::vector< UsdSkelInbetweenShape > GetInbetweens() const
Return valid UsdSkelInbetweenShape objects for all defined Inbetweens on this prim.
virtual USDSKEL_API ~UsdSkelBlendShape()
Destructor.
USDSKEL_API UsdAttribute GetOffsetsAttr() const
Required property.
The base class for all schema types in Usd.
Schema wrapper for UsdAttribute for authoring and introspecting attributes that serve as inbetween sh...
USDSKEL_API UsdAttribute CreatePointIndicesAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetPointIndicesAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
USDSKEL_API UsdAttribute GetPointIndicesAttr() const
Optional property.
USDSKEL_API UsdAttribute CreateOffsetsAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetOffsetsAttr(), and also Create vs Get Property Methods for when to use Get vs Create.
Provides a container which may hold any type, and provides introspection and iteration over array typ...
static const UsdSchemaKind schemaKind
Compile time constant representing what kind of schema this class is.
USDSKEL_API bool HasInbetween(const TfToken &name) const
Return true if there is a defined Inbetween named name on this prim.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...