Loading...
Searching...
No Matches
inbetweenShapeSchema.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_INBETWEEN_SHAPE_SCHEMA_H
19#define PXR_USD_IMAGING_USD_SKEL_IMAGING_INBETWEEN_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// --(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_INBETWEEN_SHAPE_SCHEMA_TOKENS \
36 (weight) \
37 (offsets) \
38 (normalOffsets) \
39
40TF_DECLARE_PUBLIC_TOKENS(UsdSkelImagingInbetweenShapeSchemaTokens, USDSKELIMAGING_API,
41 USD_SKEL_IMAGING_INBETWEEN_SHAPE_SCHEMA_TOKENS);
42
43//-----------------------------------------------------------------------------
44
45// Corresponds to UsdSkelInbetweenShape. Each instance corresponds to a group
46// of attributes on a UsdSkelBlendShape that share a prefix inbetweens:NAME.
47//
48
49class UsdSkelImagingInbetweenShapeSchema : public HdSchema
50{
51public:
54
55 UsdSkelImagingInbetweenShapeSchema(HdContainerDataSourceHandle container)
56 : HdSchema(container) {}
57
59
60// --(BEGIN CUSTOM CODE: Schema Methods)--
61// --(END CUSTOM CODE: Schema Methods)--
62
65
67 USDSKELIMAGING_API
68 HdFloatDataSourceHandle GetWeight() const;
69
70 USDSKELIMAGING_API
71 HdVec3fArrayDataSourceHandle GetOffsets() const;
72
73 USDSKELIMAGING_API
74 HdVec3fArrayDataSourceHandle GetNormalOffsets() const;
75
77
80
88 USDSKELIMAGING_API
89 static HdContainerDataSourceHandle
90 BuildRetained(
91 const HdFloatDataSourceHandle &weight,
92 const HdVec3fArrayDataSourceHandle &offsets,
93 const HdVec3fArrayDataSourceHandle &normalOffsets
94 );
95
103 {
104 public:
105 USDSKELIMAGING_API
106 Builder &SetWeight(
107 const HdFloatDataSourceHandle &weight);
108 USDSKELIMAGING_API
109 Builder &SetOffsets(
110 const HdVec3fArrayDataSourceHandle &offsets);
111 USDSKELIMAGING_API
112 Builder &SetNormalOffsets(
113 const HdVec3fArrayDataSourceHandle &normalOffsets);
114
116 USDSKELIMAGING_API
117 HdContainerDataSourceHandle Build();
118
119 private:
120 HdFloatDataSourceHandle _weight;
121 HdVec3fArrayDataSourceHandle _offsets;
122 HdVec3fArrayDataSourceHandle _normalOffsets;
123
124 };
125
127};
128
129PXR_NAMESPACE_CLOSE_SCOPE
130
131#endif
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition: schema.h:26
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