Loading...
Searching...
No Matches
blendShapeSchema.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_BLEND_SHAPE_SCHEMA_H
19#define PXR_USD_IMAGING_USD_SKEL_IMAGING_BLEND_SHAPE_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#include "pxr/imaging/hd/containerSchema.h"
29// --(END CUSTOM CODE: Includes)--
30
31PXR_NAMESPACE_OPEN_SCOPE
32
33// --(BEGIN CUSTOM CODE: Declares)--
36// --(END CUSTOM CODE: Declares)--
37
38#define USD_SKEL_IMAGING_BLEND_SHAPE_SCHEMA_TOKENS \
39 (skelBlendShape) \
40 (offsets) \
41 (normalOffsets) \
42 (pointIndices) \
43 (inbetweenShapes) \
44
45TF_DECLARE_PUBLIC_TOKENS(UsdSkelImagingBlendShapeSchemaTokens, USDSKELIMAGING_API,
46 USD_SKEL_IMAGING_BLEND_SHAPE_SCHEMA_TOKENS);
47
48//-----------------------------------------------------------------------------
49
50// Corresponds to UsdSkelBlendShape.
51//
52
53class UsdSkelImagingBlendShapeSchema : public HdSchema
54{
55public:
58
59 UsdSkelImagingBlendShapeSchema(HdContainerDataSourceHandle container)
60 : HdSchema(container) {}
61
67 USDSKELIMAGING_API
68 static UsdSkelImagingBlendShapeSchema GetFromParent(
69 const HdContainerDataSourceHandle &fromParentContainer);
70
72
73// --(BEGIN CUSTOM CODE: Schema Methods)--
74// --(END CUSTOM CODE: Schema Methods)--
75
78
79 USDSKELIMAGING_API
80 HdVec3fArrayDataSourceHandle GetOffsets() const;
81
82 USDSKELIMAGING_API
83 HdVec3fArrayDataSourceHandle GetNormalOffsets() const;
84
85 USDSKELIMAGING_API
86 HdIntArrayDataSourceHandle GetPointIndices() const;
87
88 USDSKELIMAGING_API
89 UsdSkelImagingInbetweenShapeContainerSchema GetInbetweenShapes() const;
90
92
95
98 USDSKELIMAGING_API
99 static const TfToken &GetSchemaToken();
100
103 USDSKELIMAGING_API
104 static const HdDataSourceLocator &GetDefaultLocator();
105
107
116
118 USDSKELIMAGING_API
119 static const HdDataSourceLocator &GetOffsetsLocator();
120
122 USDSKELIMAGING_API
123 static const HdDataSourceLocator &GetNormalOffsetsLocator();
124
126 USDSKELIMAGING_API
127 static const HdDataSourceLocator &GetPointIndicesLocator();
128
130 USDSKELIMAGING_API
131 static const HdDataSourceLocator &GetInbetweenShapesLocator();
133
136
144 USDSKELIMAGING_API
145 static HdContainerDataSourceHandle
146 BuildRetained(
147 const HdVec3fArrayDataSourceHandle &offsets,
148 const HdVec3fArrayDataSourceHandle &normalOffsets,
149 const HdIntArrayDataSourceHandle &pointIndices,
150 const HdContainerDataSourceHandle &inbetweenShapes
151 );
152
160 {
161 public:
162 USDSKELIMAGING_API
163 Builder &SetOffsets(
164 const HdVec3fArrayDataSourceHandle &offsets);
165 USDSKELIMAGING_API
166 Builder &SetNormalOffsets(
167 const HdVec3fArrayDataSourceHandle &normalOffsets);
168 USDSKELIMAGING_API
169 Builder &SetPointIndices(
170 const HdIntArrayDataSourceHandle &pointIndices);
171 USDSKELIMAGING_API
172 Builder &SetInbetweenShapes(
173 const HdContainerDataSourceHandle &inbetweenShapes);
174
176 USDSKELIMAGING_API
177 HdContainerDataSourceHandle Build();
178
179 private:
180 HdVec3fArrayDataSourceHandle _offsets;
181 HdVec3fArrayDataSourceHandle _normalOffsets;
182 HdIntArrayDataSourceHandle _pointIndices;
183 HdContainerDataSourceHandle _inbetweenShapes;
184
185 };
186
188};
189
190PXR_NAMESPACE_CLOSE_SCOPE
191
192#endif
Represents an object that can identify the location of a data source.
Template class for a schema backed by a container whose children have arbitrary names but an expected...
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