18#ifndef PXR_USD_IMAGING_USD_SKEL_IMAGING_RESOLVED_SKELETON_SCHEMA_H
19#define PXR_USD_IMAGING_USD_SKEL_IMAGING_RESOLVED_SKELETON_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_RESOLVED_SKELETON_SCHEMA_TOKENS \
37 (skelLocalToCommonSpace) \
38 (skinningTransforms) \
44 USD_SKEL_IMAGING_RESOLVED_SKELETON_SCHEMA_TOKENS);
70 const HdContainerDataSourceHandle &fromParentContainer);
162 static HdContainerDataSourceHandle
164 const HdMatrixDataSourceHandle &skelLocalToCommonSpace,
165 const HdMatrix4fArrayDataSourceHandle &skinningTransforms,
166 const HdTokenArrayDataSourceHandle &blendShapes,
167 const HdFloatArrayDataSourceHandle &blendShapeWeights,
168 const HdVec2iArrayDataSourceHandle &blendShapeRanges
181 Builder &SetSkelLocalToCommonSpace(
182 const HdMatrixDataSourceHandle &skelLocalToCommonSpace);
184 Builder &SetSkinningTransforms(
185 const HdMatrix4fArrayDataSourceHandle &skinningTransforms);
188 const HdTokenArrayDataSourceHandle &blendShapes);
191 const HdFloatArrayDataSourceHandle &blendShapeWeights);
194 const HdVec2iArrayDataSourceHandle &blendShapeRanges);
198 HdContainerDataSourceHandle
Build();
201 HdMatrixDataSourceHandle _skelLocalToCommonSpace;
202 HdMatrix4fArrayDataSourceHandle _skinningTransforms;
203 HdTokenArrayDataSourceHandle _blendShapes;
204 HdFloatArrayDataSourceHandle _blendShapeWeights;
205 HdVec2iArrayDataSourceHandle _blendShapeRanges;
212PXR_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.
Resolved data for a skeleton and the targeted skelAnim.
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 & GetSkinningTransformsLocator()
Prim-level relative data source locator to locate skinningTransforms.
static USDSKELIMAGING_API UsdSkelImagingResolvedSkeletonSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
Retrieves a container data source with the schema's default name token "resolvedSkeleton" from the pa...
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 const HdDataSourceLocator & GetSkelLocalToCommonSpaceLocator()
Prim-level relative data source locator to locate skelLocalToCommonSpace.
USDSKELIMAGING_API HdMatrix4fArrayDataSourceHandle GetSkinningTransforms() const
Passed to the extComputations.
static USDSKELIMAGING_API HdContainerDataSourceHandle BuildRetained(const HdMatrixDataSourceHandle &skelLocalToCommonSpace, const HdMatrix4fArrayDataSourceHandle &skinningTransforms, const HdTokenArrayDataSourceHandle &blendShapes, const HdFloatArrayDataSourceHandle &blendShapeWeights, const HdVec2iArrayDataSourceHandle &blendShapeRanges)
USDSKELIMAGING_API HdTokenArrayDataSourceHandle GetBlendShapes() const
Just forwarded from the skelAnim's blendShapes.
static USDSKELIMAGING_API const HdDataSourceLocator & GetBlendShapeRangesLocator()
Prim-level relative data source locator to locate blendShapeRanges.
USDSKELIMAGING_API HdVec2iArrayDataSourceHandle GetBlendShapeRanges() const
Ranges for concatenated blendShapes/Weights.
static USDSKELIMAGING_API const HdDataSourceLocator & GetDefaultLocator()
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container represent...
USDSKELIMAGING_API HdMatrixDataSourceHandle GetSkelLocalToCommonSpace() const
Transform to go from the local space if the skeleton prim to common space (as defined by UsdSkelImagi...
USDSKELIMAGING_API HdFloatArrayDataSourceHandle GetBlendShapeWeights() const
Just forwarded from the skelAnim's blendShapeWeights.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.