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 (skelLocalToWorld) \
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// Resolved data for a skeleton and the targeted skelAnim. Populated by the
48// skeleton resolving scene index.
49//
50
51class UsdSkelImagingResolvedSkeletonSchema : public HdSchema
52{
53public:
56
57 UsdSkelImagingResolvedSkeletonSchema(HdContainerDataSourceHandle container)
58 : HdSchema(container) {}
59
65 USDSKELIMAGING_API
66 static UsdSkelImagingResolvedSkeletonSchema GetFromParent(
67 const HdContainerDataSourceHandle &fromParentContainer);
68
70
71// --(BEGIN CUSTOM CODE: Schema Methods)--
72// --(END CUSTOM CODE: Schema Methods)--
73
76
78 USDSKELIMAGING_API
79 HdMatrixDataSourceHandle GetSkelLocalToWorld() const;
80
85 USDSKELIMAGING_API
86 HdMatrix4fArrayDataSourceHandle GetSkinningTransforms() const;
87
89 USDSKELIMAGING_API
90 HdTokenArrayDataSourceHandle GetBlendShapes() const;
91
93 USDSKELIMAGING_API
94 HdFloatArrayDataSourceHandle GetBlendShapeWeights() const;
95
97
100
103 USDSKELIMAGING_API
104 static const TfToken &GetSchemaToken();
105
108 USDSKELIMAGING_API
109 static const HdDataSourceLocator &GetDefaultLocator();
110
112
121
123 USDSKELIMAGING_API
124 static const HdDataSourceLocator &GetSkelLocalToWorldLocator();
125
127 USDSKELIMAGING_API
128 static const HdDataSourceLocator &GetSkinningTransformsLocator();
129
131 USDSKELIMAGING_API
132 static const HdDataSourceLocator &GetBlendShapesLocator();
133
135 USDSKELIMAGING_API
136 static const HdDataSourceLocator &GetBlendShapeWeightsLocator();
138
141
149 USDSKELIMAGING_API
150 static HdContainerDataSourceHandle
151 BuildRetained(
152 const HdMatrixDataSourceHandle &skelLocalToWorld,
153 const HdMatrix4fArrayDataSourceHandle &skinningTransforms,
154 const HdTokenArrayDataSourceHandle &blendShapes,
155 const HdFloatArrayDataSourceHandle &blendShapeWeights
156 );
157
165 {
166 public:
167 USDSKELIMAGING_API
168 Builder &SetSkelLocalToWorld(
169 const HdMatrixDataSourceHandle &skelLocalToWorld);
170 USDSKELIMAGING_API
171 Builder &SetSkinningTransforms(
172 const HdMatrix4fArrayDataSourceHandle &skinningTransforms);
173 USDSKELIMAGING_API
174 Builder &SetBlendShapes(
175 const HdTokenArrayDataSourceHandle &blendShapes);
176 USDSKELIMAGING_API
177 Builder &SetBlendShapeWeights(
178 const HdFloatArrayDataSourceHandle &blendShapeWeights);
179
181 USDSKELIMAGING_API
182 HdContainerDataSourceHandle Build();
183
184 private:
185 HdMatrixDataSourceHandle _skelLocalToWorld;
186 HdMatrix4fArrayDataSourceHandle _skinningTransforms;
187 HdTokenArrayDataSourceHandle _blendShapes;
188 HdFloatArrayDataSourceHandle _blendShapeWeights;
189
190 };
191
193};
194
195PXR_NAMESPACE_CLOSE_SCOPE
196
197#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.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:81