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) \
43 USD_SKEL_IMAGING_RESOLVED_SKELETON_SCHEMA_TOKENS);
69 const HdContainerDataSourceHandle &fromParentContainer);
153 static HdContainerDataSourceHandle
155 const HdMatrixDataSourceHandle &skelLocalToCommonSpace,
156 const HdMatrix4fArrayDataSourceHandle &skinningTransforms,
157 const HdTokenArrayDataSourceHandle &blendShapes,
158 const HdFloatArrayDataSourceHandle &blendShapeWeights
171 Builder &SetSkelLocalToCommonSpace(
172 const HdMatrixDataSourceHandle &skelLocalToCommonSpace);
174 Builder &SetSkinningTransforms(
175 const HdMatrix4fArrayDataSourceHandle &skinningTransforms);
178 const HdTokenArrayDataSourceHandle &blendShapes);
181 const HdFloatArrayDataSourceHandle &blendShapeWeights);
185 HdContainerDataSourceHandle
Build();
188 HdMatrixDataSourceHandle _skelLocalToCommonSpace;
189 HdMatrix4fArrayDataSourceHandle _skinningTransforms;
190 HdTokenArrayDataSourceHandle _blendShapes;
191 HdFloatArrayDataSourceHandle _blendShapeWeights;
198PXR_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.
USDSKELIMAGING_API HdTokenArrayDataSourceHandle GetBlendShapes() const
Just forwarded from the skelAnim's blendShapes.
static USDSKELIMAGING_API HdContainerDataSourceHandle BuildRetained(const HdMatrixDataSourceHandle &skelLocalToCommonSpace, const HdMatrix4fArrayDataSourceHandle &skinningTransforms, const HdTokenArrayDataSourceHandle &blendShapes, const HdFloatArrayDataSourceHandle &blendShapeWeights)
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.