24 #ifndef PXR_USD_USD_SKEL_INBETWEEN_SHAPE_H
25 #define PXR_USD_USD_SKEL_INBETWEEN_SHAPE_H
28 #include "pxr/usd/usdSkel/api.h"
30 #include "pxr/usd/usd/attribute.h"
33 PXR_NAMESPACE_OPEN_SCOPE
87 bool SetOffsets(
const VtVec3fArray& offsets)
const;
138 explicit operator bool()
const {
143 return _attr == o._attr;
147 return !(*
this == o);
157 static bool _IsValidInbetweenName(
const std::string& name,
162 static bool _IsNamespaced(
const TfToken& name);
171 static TfToken _MakeNamespaced(
const TfToken& name,
bool quiet=
false);
173 static const TfToken& _GetNamespacePrefix();
175 static const TfToken& _GetNormalOffsetsSuffix();
199 PXR_NAMESPACE_CLOSE_SCOPE
201 #endif // PXR_USD_USD_SKEL_INBETWEEN_SHAPE_H
USDSKEL_API bool SetNormalOffsets(const VtVec3fArray &offsets) const
Set the normal offsets authored for this shape.
Describes a target blend shape, possibly containing inbetween shapes.
USDSKEL_API bool GetWeight(float *weight) const
Return the location at which the shape is applied.
UsdAttribute const & GetAttr() const
Explicit UsdAttribute extractor.
UsdSkelInbetweenShape()
Default constructor returns an invalid inbetween shape.
USDSKEL_API UsdAttribute CreateNormalOffsetsAttr(const VtValue &defaultValue=VtValue()) const
Returns the existing normal offsets attribute if the shape has normal offsets, or creates a new one...
USDSKEL_API bool GetOffsets(VtVec3fArray *offsets) const
Get the point offsets corresponding to this shape.
static USDSKEL_API bool IsInbetween(const UsdAttribute &attr)
Test whether a given UsdAttribute represents a valid Inbetween, which implies that creating a UsdSkel...
Scenegraph object for authoring and retrieving numeric, string, and array valued data, sampled over time.
Token for efficient comparison, assignment, and hashing of known strings.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
USDSKEL_API bool SetWeight(float weight) const
Set the location at which the shape is applied.
USDSKEL_API bool SetOffsets(const VtVec3fArray &offsets) const
Set the point offsets corresponding to this shape.
USDSKEL_API bool HasAuthoredWeight() const
Has a weight value been explicitly authored on this shape?
USDSKEL_API bool GetNormalOffsets(VtVec3fArray *offsets) const
Get the normal offsets authored for this shape.
USDSKEL_API UsdAttribute GetNormalOffsetsAttr() const
Returns a valid normal offsets attribute if the shape has normal offsets.
bool IsDefined() const
Return true if the wrapped UsdAttribute::IsDefined(), and in addition the attribute is identified as ...
Schema wrapper for UsdAttribute for authoring and introspecting attributes that serve as inbetween sh...
Provides a container which may hold any type, and provides introspection and iteration over array typ...