Loading...
Searching...
No Matches
animationSchema.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_ANIMATION_SCHEMA_H
19#define PXR_USD_IMAGING_USD_SKEL_IMAGING_ANIMATION_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_ANIMATION_SCHEMA_TOKENS \
36 (skelAnimation) \
37 (joints) \
38 (translations) \
39 (rotations) \
40 (scales) \
41 (blendShapes) \
42 (blendShapeWeights) \
43
44TF_DECLARE_PUBLIC_TOKENS(UsdSkelImagingAnimationSchemaTokens, USDSKELIMAGING_API,
45 USD_SKEL_IMAGING_ANIMATION_SCHEMA_TOKENS);
46
47//-----------------------------------------------------------------------------
48
49// Corresponds to UsdSkelAnimation.
50//
51
52class UsdSkelImagingAnimationSchema : public HdSchema
53{
54public:
57
58 UsdSkelImagingAnimationSchema(HdContainerDataSourceHandle container)
59 : HdSchema(container) {}
60
66 USDSKELIMAGING_API
67 static UsdSkelImagingAnimationSchema GetFromParent(
68 const HdContainerDataSourceHandle &fromParentContainer);
69
71
72// --(BEGIN CUSTOM CODE: Schema Methods)--
73// --(END CUSTOM CODE: Schema Methods)--
74
77
78 USDSKELIMAGING_API
79 HdTokenArrayDataSourceHandle GetJoints() const;
80
81 USDSKELIMAGING_API
82 HdVec3fArrayDataSourceHandle GetTranslations() const;
83
84 USDSKELIMAGING_API
85 HdQuatfArrayDataSourceHandle GetRotations() const;
86
87 USDSKELIMAGING_API
88 HdVec3hArrayDataSourceHandle GetScales() const;
89
90 USDSKELIMAGING_API
91 HdTokenArrayDataSourceHandle GetBlendShapes() const;
92
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 &GetJointsLocator();
125
127 USDSKELIMAGING_API
128 static const HdDataSourceLocator &GetTranslationsLocator();
129
131 USDSKELIMAGING_API
132 static const HdDataSourceLocator &GetRotationsLocator();
133
135 USDSKELIMAGING_API
136 static const HdDataSourceLocator &GetScalesLocator();
137
139 USDSKELIMAGING_API
140 static const HdDataSourceLocator &GetBlendShapesLocator();
141
143 USDSKELIMAGING_API
144 static const HdDataSourceLocator &GetBlendShapeWeightsLocator();
146
149
157 USDSKELIMAGING_API
158 static HdContainerDataSourceHandle
159 BuildRetained(
160 const HdTokenArrayDataSourceHandle &joints,
161 const HdVec3fArrayDataSourceHandle &translations,
162 const HdQuatfArrayDataSourceHandle &rotations,
163 const HdVec3hArrayDataSourceHandle &scales,
164 const HdTokenArrayDataSourceHandle &blendShapes,
165 const HdFloatArrayDataSourceHandle &blendShapeWeights
166 );
167
175 {
176 public:
177 USDSKELIMAGING_API
178 Builder &SetJoints(
179 const HdTokenArrayDataSourceHandle &joints);
180 USDSKELIMAGING_API
181 Builder &SetTranslations(
182 const HdVec3fArrayDataSourceHandle &translations);
183 USDSKELIMAGING_API
184 Builder &SetRotations(
185 const HdQuatfArrayDataSourceHandle &rotations);
186 USDSKELIMAGING_API
187 Builder &SetScales(
188 const HdVec3hArrayDataSourceHandle &scales);
189 USDSKELIMAGING_API
190 Builder &SetBlendShapes(
191 const HdTokenArrayDataSourceHandle &blendShapes);
192 USDSKELIMAGING_API
193 Builder &SetBlendShapeWeights(
194 const HdFloatArrayDataSourceHandle &blendShapeWeights);
195
197 USDSKELIMAGING_API
198 HdContainerDataSourceHandle Build();
199
200 private:
201 HdTokenArrayDataSourceHandle _joints;
202 HdVec3fArrayDataSourceHandle _translations;
203 HdQuatfArrayDataSourceHandle _rotations;
204 HdVec3hArrayDataSourceHandle _scales;
205 HdTokenArrayDataSourceHandle _blendShapes;
206 HdFloatArrayDataSourceHandle _blendShapeWeights;
207
208 };
209
211};
212
213PXR_NAMESPACE_CLOSE_SCOPE
214
215#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