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
55{
56public:
59
60 UsdSkelImagingAnimationSchema(HdContainerDataSourceHandle container)
61 : HdSchema(container) {}
62
68 USDSKELIMAGING_API
70 const HdContainerDataSourceHandle &fromParentContainer);
71
73
74// --(BEGIN CUSTOM CODE: Schema Methods)--
75// --(END CUSTOM CODE: Schema Methods)--
76
79
80 USDSKELIMAGING_API
81 HdTokenArrayDataSourceHandle GetJoints() const;
82
83 USDSKELIMAGING_API
84 HdVec3fArrayDataSourceHandle GetTranslations() const;
85
86 USDSKELIMAGING_API
87 HdQuatfArrayDataSourceHandle GetRotations() const;
88
89 USDSKELIMAGING_API
90 HdVec3hArrayDataSourceHandle GetScales() const;
91
92 USDSKELIMAGING_API
93 HdTokenArrayDataSourceHandle GetBlendShapes() const;
94
95 USDSKELIMAGING_API
96 HdFloatArrayDataSourceHandle GetBlendShapeWeights() const;
97
99
102
105 USDSKELIMAGING_API
106 static const TfToken &GetSchemaToken();
107
110 USDSKELIMAGING_API
112
114
123
125 USDSKELIMAGING_API
127
129 USDSKELIMAGING_API
131
133 USDSKELIMAGING_API
135
137 USDSKELIMAGING_API
139
141 USDSKELIMAGING_API
143
145 USDSKELIMAGING_API
148
151
159 USDSKELIMAGING_API
160 static HdContainerDataSourceHandle
162 const HdTokenArrayDataSourceHandle &joints,
163 const HdVec3fArrayDataSourceHandle &translations,
164 const HdQuatfArrayDataSourceHandle &rotations,
165 const HdVec3hArrayDataSourceHandle &scales,
166 const HdTokenArrayDataSourceHandle &blendShapes,
167 const HdFloatArrayDataSourceHandle &blendShapeWeights
168 );
169
177 {
178 public:
179 USDSKELIMAGING_API
180 Builder &SetJoints(
181 const HdTokenArrayDataSourceHandle &joints);
182 USDSKELIMAGING_API
183 Builder &SetTranslations(
184 const HdVec3fArrayDataSourceHandle &translations);
185 USDSKELIMAGING_API
186 Builder &SetRotations(
187 const HdQuatfArrayDataSourceHandle &rotations);
188 USDSKELIMAGING_API
189 Builder &SetScales(
190 const HdVec3hArrayDataSourceHandle &scales);
191 USDSKELIMAGING_API
192 Builder &SetBlendShapes(
193 const HdTokenArrayDataSourceHandle &blendShapes);
194 USDSKELIMAGING_API
195 Builder &SetBlendShapeWeights(
196 const HdFloatArrayDataSourceHandle &blendShapeWeights);
197
199 USDSKELIMAGING_API
200 HdContainerDataSourceHandle Build();
201
202 private:
203 HdTokenArrayDataSourceHandle _joints;
204 HdVec3fArrayDataSourceHandle _translations;
205 HdQuatfArrayDataSourceHandle _rotations;
206 HdVec3hArrayDataSourceHandle _scales;
207 HdTokenArrayDataSourceHandle _blendShapes;
208 HdFloatArrayDataSourceHandle _blendShapeWeights;
209
210 };
211
213};
214
215PXR_NAMESPACE_CLOSE_SCOPE
216
217#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.
Corresponds to UsdSkelAnimation.
static USDSKELIMAGING_API HdContainerDataSourceHandle BuildRetained(const HdTokenArrayDataSourceHandle &joints, const HdVec3fArrayDataSourceHandle &translations, const HdQuatfArrayDataSourceHandle &rotations, const HdVec3hArrayDataSourceHandle &scales, const HdTokenArrayDataSourceHandle &blendShapes, const HdFloatArrayDataSourceHandle &blendShapeWeights)
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 & 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 UsdSkelImagingAnimationSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
Retrieves a container data source with the schema's default name token "skelAnimation" from the paren...
static USDSKELIMAGING_API const HdDataSourceLocator & GetTranslationsLocator()
Prim-level relative data source locator to locate translations.
static USDSKELIMAGING_API const HdDataSourceLocator & GetRotationsLocator()
Prim-level relative data source locator to locate rotations.
static USDSKELIMAGING_API const HdDataSourceLocator & GetDefaultLocator()
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container represent...
static USDSKELIMAGING_API const HdDataSourceLocator & GetScalesLocator()
Prim-level relative data source locator to locate scales.
static USDSKELIMAGING_API const HdDataSourceLocator & GetJointsLocator()
Prim-level relative data source locator to locate joints.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92