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
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 std::vector< UsdSkelInbetweenShape > GetInbetweens() const
Return valid UsdSkelInbetweenShape objects for all defined Inbetweens on this prim.
UsdSkelBlendShape(const UsdSchemaBase &schemaObj)
Construct a UsdSkelBlendShape on the prim held by schemaObj .
USDSKEL_API bool HasInbetween(const TfToken &name) const
Return true if there is a defined Inbetween named name on this prim.
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...
UsdSkelBlendShape(const UsdPrim &prim=UsdPrim())
Construct a UsdSkelBlendShape on UsdPrim prim .
USDSKEL_API UsdAttribute GetPointIndicesAttr() const
Optional property.
Scenegraph object for authoring and retrieving numeric, string, and array valued data, sampled over time.
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 UsdSkelInbetweenShape CreateInbetween(const TfToken &name) const
Author scene description to create an attribute on this prim that will be recognized as an Inbetween ...
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...
USDSKEL_API UsdAttribute GetNormalOffsetsAttr() const
Required property.
Represents a range of contiguous elements.
USDSKEL_API std::vector< UsdSkelInbetweenShape > GetAuthoredInbetweens() const
Like GetInbetweens(), but exclude inbetwens that have no authored scene / description.
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...
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), and therefore the base class for all instantiable and "IsA" schemas.
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.
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.
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...
Contains an asset path and an optional resolved path.
TfType represents a dynamic runtime type.
Singleton registry that provides access to schema type information and the prim definitions for regis...
virtual USDSKEL_API ~UsdSkelBlendShape()
Destructor.
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 GetOffsetsAttr() const
Required property.
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.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...