7#ifndef PXR_USD_USD_SKEL_INBETWEEN_SHAPE_H
8#define PXR_USD_USD_SKEL_INBETWEEN_SHAPE_H
11#include "pxr/usd/usdSkel/api.h"
13#include "pxr/usd/usd/attribute.h"
16PXR_NAMESPACE_OPEN_SCOPE
121 explicit operator bool()
const {
126 return _attr == o._attr;
130 return !(*
this == o);
140 static bool _IsValidInbetweenName(
const std::string& name,
145 static bool _IsNamespaced(
const TfToken& name);
154 static TfToken _MakeNamespaced(
const TfToken& name,
bool quiet=
false);
156 static const TfToken& _GetNamespacePrefix();
158 static const TfToken& _GetNormalOffsetsSuffix();
182PXR_NAMESPACE_CLOSE_SCOPE
Token for efficient comparison, assignment, and hashing of known strings.
Scenegraph object for authoring and retrieving numeric, string, and array valued data,...
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
Describes a target blend shape, possibly containing inbetween shapes.
Schema wrapper for UsdAttribute for authoring and introspecting attributes that serve as inbetween sh...
UsdSkelInbetweenShape()
Default constructor returns an invalid inbetween shape.
USDSKEL_API UsdAttribute GetNormalOffsetsAttr() const
Returns a valid normal offsets attribute if the shape has normal offsets.
USDSKEL_API bool GetOffsets(VtVec3fArray *offsets) const
Get the point offsets corresponding to this 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 SetNormalOffsets(const VtVec3fArray &offsets) const
Set the normal offsets authored for this shape.
USDSKEL_API bool HasAuthoredWeight() const
Has a weight value been explicitly authored on 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...
USDSKEL_API bool SetOffsets(const VtVec3fArray &offsets) const
Set the point offsets corresponding to this shape.
bool IsDefined() const
Return true if the wrapped UsdAttribute::IsDefined(), and in addition the attribute is identified as ...
USDSKEL_API bool GetNormalOffsets(VtVec3fArray *offsets) const
Get the normal offsets authored for this shape.
UsdAttribute const & GetAttr() const
Explicit UsdAttribute extractor.
USDSKEL_API bool GetWeight(float *weight) const
Return the location at which the shape is applied.
USDSKEL_API UsdSkelInbetweenShape(const UsdAttribute &attr)
Speculative constructor that will produce a valid UsdSkelInbetweenShape when attr already represents ...
USDSKEL_API bool SetWeight(float weight) const
Set the location at which the shape is applied.
Provides a container which may hold any type, and provides introspection and iteration over array typ...