Loading...
Searching...
No Matches
resolvedSkeletonSchema.h
Go to the documentation of this file.
1//
2// Copyright 2025 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
8
9/* ************************************************************************** */
10/* ** ** */
11/* ** This file is generated by a script. ** */
12/* ** ** */
13/* ** Do not edit it directly (unless it is within a CUSTOM CODE section)! ** */
14/* ** Edit hdSchemaDefs.py instead to make changes. ** */
15/* ** ** */
16/* ************************************************************************** */
17
18#ifndef PXR_USD_IMAGING_USD_SKEL_IMAGING_RESOLVED_SKELETON_SCHEMA_H
19#define PXR_USD_IMAGING_USD_SKEL_IMAGING_RESOLVED_SKELETON_SCHEMA_H
20
22
23#include "pxr/usdImaging/usdSkelImaging/api.h"
24
25#include "pxr/imaging/hd/schema.h"
26
27// --(BEGIN CUSTOM CODE: Includes)--
28// --(END CUSTOM CODE: Includes)--
29
30PXR_NAMESPACE_OPEN_SCOPE
31
32// --(BEGIN CUSTOM CODE: Declares)--
33// --(END CUSTOM CODE: Declares)--
34
35#define USD_SKEL_IMAGING_RESOLVED_SKELETON_SCHEMA_TOKENS \
36 (resolvedSkeleton) \
37 (skelLocalToCommonSpace) \
38 (skinningTransforms) \
39 (blendShapes) \
40 (blendShapeWeights) \
41
42TF_DECLARE_PUBLIC_TOKENS(UsdSkelImagingResolvedSkeletonSchemaTokens, USDSKELIMAGING_API,
43 USD_SKEL_IMAGING_RESOLVED_SKELETON_SCHEMA_TOKENS);
44
45//-----------------------------------------------------------------------------
46
47
54{
55public:
58
59 UsdSkelImagingResolvedSkeletonSchema(HdContainerDataSourceHandle container)
60 : HdSchema(container) {}
61
67 USDSKELIMAGING_API
69 const HdContainerDataSourceHandle &fromParentContainer);
70
72
73// --(BEGIN CUSTOM CODE: Schema Methods)--
74// --(END CUSTOM CODE: Schema Methods)--
75
78
81 USDSKELIMAGING_API
82 HdMatrixDataSourceHandle GetSkelLocalToCommonSpace() const;
83
88 USDSKELIMAGING_API
89 HdMatrix4fArrayDataSourceHandle GetSkinningTransforms() const;
90
92 USDSKELIMAGING_API
93 HdTokenArrayDataSourceHandle GetBlendShapes() const;
94
96 USDSKELIMAGING_API
97 HdFloatArrayDataSourceHandle GetBlendShapeWeights() const;
98
100
103
106 USDSKELIMAGING_API
107 static const TfToken &GetSchemaToken();
108
111 USDSKELIMAGING_API
113
115
124
126 USDSKELIMAGING_API
128
130 USDSKELIMAGING_API
132
134 USDSKELIMAGING_API
136
138 USDSKELIMAGING_API
141
144
152 USDSKELIMAGING_API
153 static HdContainerDataSourceHandle
155 const HdMatrixDataSourceHandle &skelLocalToCommonSpace,
156 const HdMatrix4fArrayDataSourceHandle &skinningTransforms,
157 const HdTokenArrayDataSourceHandle &blendShapes,
158 const HdFloatArrayDataSourceHandle &blendShapeWeights
159 );
160
168 {
169 public:
170 USDSKELIMAGING_API
171 Builder &SetSkelLocalToCommonSpace(
172 const HdMatrixDataSourceHandle &skelLocalToCommonSpace);
173 USDSKELIMAGING_API
174 Builder &SetSkinningTransforms(
175 const HdMatrix4fArrayDataSourceHandle &skinningTransforms);
176 USDSKELIMAGING_API
177 Builder &SetBlendShapes(
178 const HdTokenArrayDataSourceHandle &blendShapes);
179 USDSKELIMAGING_API
180 Builder &SetBlendShapeWeights(
181 const HdFloatArrayDataSourceHandle &blendShapeWeights);
182
184 USDSKELIMAGING_API
185 HdContainerDataSourceHandle Build();
186
187 private:
188 HdMatrixDataSourceHandle _skelLocalToCommonSpace;
189 HdMatrix4fArrayDataSourceHandle _skinningTransforms;
190 HdTokenArrayDataSourceHandle _blendShapes;
191 HdFloatArrayDataSourceHandle _blendShapeWeights;
192
193 };
194
196};
197
198PXR_NAMESPACE_CLOSE_SCOPE
199
200#endif
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...
Definition: schema.h:26
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
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.
Definition: staticTokens.h:92