18#ifndef PXR_USD_IMAGING_USD_SKEL_IMAGING_ANIMATION_SCHEMA_H
19#define PXR_USD_IMAGING_USD_SKEL_IMAGING_ANIMATION_SCHEMA_H
23#include "pxr/usdImaging/usdSkelImaging/api.h"
25#include "pxr/imaging/hd/schema.h"
30PXR_NAMESPACE_OPEN_SCOPE
35#define USD_SKEL_IMAGING_ANIMATION_SCHEMA_TOKENS \
45 USD_SKEL_IMAGING_ANIMATION_SCHEMA_TOKENS);
70 const HdContainerDataSourceHandle &fromParentContainer);
81 HdTokenArrayDataSourceHandle GetJoints()
const;
84 HdVec3fArrayDataSourceHandle GetTranslations()
const;
87 HdQuatfArrayDataSourceHandle GetRotations()
const;
90 HdVec3hArrayDataSourceHandle GetScales()
const;
93 HdTokenArrayDataSourceHandle GetBlendShapes()
const;
96 HdFloatArrayDataSourceHandle GetBlendShapeWeights()
const;
160 static HdContainerDataSourceHandle
162 const HdTokenArrayDataSourceHandle &joints,
163 const HdVec3fArrayDataSourceHandle &translations,
164 const HdQuatfArrayDataSourceHandle &rotations,
165 const HdVec3hArrayDataSourceHandle &scales,
166 const HdTokenArrayDataSourceHandle &blendShapes,
167 const HdFloatArrayDataSourceHandle &blendShapeWeights
181 const HdTokenArrayDataSourceHandle &joints);
184 const HdVec3fArrayDataSourceHandle &translations);
187 const HdQuatfArrayDataSourceHandle &rotations);
190 const HdVec3hArrayDataSourceHandle &scales);
193 const HdTokenArrayDataSourceHandle &blendShapes);
196 const HdFloatArrayDataSourceHandle &blendShapeWeights);
200 HdContainerDataSourceHandle
Build();
203 HdTokenArrayDataSourceHandle _joints;
204 HdVec3fArrayDataSourceHandle _translations;
205 HdQuatfArrayDataSourceHandle _rotations;
206 HdVec3hArrayDataSourceHandle _scales;
207 HdTokenArrayDataSourceHandle _blendShapes;
208 HdFloatArrayDataSourceHandle _blendShapeWeights;
215PXR_NAMESPACE_CLOSE_SCOPE
Represents an object that can identify the location of a data source.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Token for efficient comparison, assignment, and hashing of known strings.
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
USDSKELIMAGING_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Corresponds to UsdSkelAnimation.
static USDSKELIMAGING_API HdContainerDataSourceHandle BuildRetained(const HdTokenArrayDataSourceHandle &joints, const HdVec3fArrayDataSourceHandle &translations, const HdQuatfArrayDataSourceHandle &rotations, const HdVec3hArrayDataSourceHandle &scales, const HdTokenArrayDataSourceHandle &blendShapes, const HdFloatArrayDataSourceHandle &blendShapeWeights)
static USDSKELIMAGING_API const TfToken & GetSchemaToken()
Returns a token where the container representing this schema is found in a container by default.
static USDSKELIMAGING_API const HdDataSourceLocator & GetBlendShapeWeightsLocator()
Prim-level relative data source locator to locate blendShapeWeights.
static USDSKELIMAGING_API const HdDataSourceLocator & GetBlendShapesLocator()
Prim-level relative data source locator to locate blendShapes.
static USDSKELIMAGING_API UsdSkelImagingAnimationSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
Retrieves a container data source with the schema's default name token "skelAnimation" from the paren...
static USDSKELIMAGING_API const HdDataSourceLocator & GetTranslationsLocator()
Prim-level relative data source locator to locate translations.
static USDSKELIMAGING_API const HdDataSourceLocator & GetRotationsLocator()
Prim-level relative data source locator to locate rotations.
static USDSKELIMAGING_API const HdDataSourceLocator & GetDefaultLocator()
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container represent...
static USDSKELIMAGING_API const HdDataSourceLocator & GetScalesLocator()
Prim-level relative data source locator to locate scales.
static USDSKELIMAGING_API const HdDataSourceLocator & GetJointsLocator()
Prim-level relative data source locator to locate joints.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.