HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 //
7 ////////////////////////////////////////////////////////////////////////
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 
21 /// \file
22 
24 
25 #include "pxr/imaging/hd/schema.h"
26 
27 // --(BEGIN CUSTOM CODE: Includes)--
28 // --(END CUSTOM CODE: Includes)--
29 
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 
40 TF_DECLARE_PUBLIC_TOKENS(UsdSkelImagingInbetweenShapeSchemaTokens, USDSKELIMAGING_API,
42 
43 //-----------------------------------------------------------------------------
44 
45 
46 /// \class UsdSkelImagingInbetweenShapeSchema
47 ///
48 /// Corresponds to UsdSkelInbetweenShape. Each instance corresponds to a group
49 /// of attributes on a UsdSkelBlendShape that share a prefix inbetweens:NAME.
50 ///
52 {
53 public:
54  /// \name Schema retrieval
55  /// @{
56 
57  UsdSkelImagingInbetweenShapeSchema(HdContainerDataSourceHandle container)
58  : HdSchema(container) {}
59 
60  /// @}
61 
62 // --(BEGIN CUSTOM CODE: Schema Methods)--
63 // --(END CUSTOM CODE: Schema Methods)--
64 
65  /// \name Member accessor
66  /// @{
67 
68  /// Corresponds to Usd attribute metadata
71 
74 
77 
78  /// @}
79 
80  /// \name Schema construction
81  /// @{
82 
83  /// \deprecated Use Builder instead.
84  ///
85  /// Builds a container data source which includes the provided child data
86  /// sources. Parameters with nullptr values are excluded. This is a
87  /// low-level interface. For cases in which it's desired to define
88  /// the container with a sparse set of child fields, the Builder class
89  /// is often more convenient and readable.
91  static HdContainerDataSourceHandle
93  const HdFloatDataSourceHandle &weight,
95  const HdVec3fArrayDataSourceHandle &normalOffsets
96  );
97 
98  /// \class UsdSkelImagingInbetweenShapeSchema::Builder
99  ///
100  /// Utility class for setting sparse sets of child data source fields to be
101  /// filled as arguments into BuildRetained. Because all setter methods
102  /// return a reference to the instance, this can be used in the "builder
103  /// pattern" form.
104  class Builder
105  {
106  public:
109  const HdFloatDataSourceHandle &weight);
115  const HdVec3fArrayDataSourceHandle &normalOffsets);
116 
117  /// Returns a container data source containing the members set thus far.
119  HdContainerDataSourceHandle Build();
120 
121  private:
122  HdFloatDataSourceHandle _weight;
124  HdVec3fArrayDataSourceHandle _normalOffsets;
125 
126  };
127 
128  /// @}
129 };
130 
132 
133 #endif
HdFloatDataSource::Handle HdFloatDataSourceHandle
#define USD_SKEL_IMAGING_INBETWEEN_SHAPE_SCHEMA_TOKENS
#define PXR_NAMESPACE_OPEN_SCOPE
Definition: pxr.h:73
GLuint GLsizei const GLuint const GLintptr * offsets
Definition: glcorearb.h:2621
USDSKELIMAGING_API Builder & SetWeight(const HdFloatDataSourceHandle &weight)
USDSKELIMAGING_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
USDSKELIMAGING_API HdVec3fArrayDataSourceHandle GetNormalOffsets() const
Corresponds to Usd attribute metadata.
UsdSkelImagingInbetweenShapeSchema(HdContainerDataSourceHandle container)
HdVec3fArrayDataSource::Handle HdVec3fArrayDataSourceHandle
USDSKELIMAGING_API HdVec3fArrayDataSourceHandle GetOffsets() const
Corresponds to Usd attribute metadata.
#define USDSKELIMAGING_API
Definition: api.h:23
static USDSKELIMAGING_API HdContainerDataSourceHandle BuildRetained(const HdFloatDataSourceHandle &weight, const HdVec3fArrayDataSourceHandle &offsets, const HdVec3fArrayDataSourceHandle &normalOffsets)
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
TF_DECLARE_PUBLIC_TOKENS(UsdSkelImagingInbetweenShapeSchemaTokens, USDSKELIMAGING_API, USD_SKEL_IMAGING_INBETWEEN_SHAPE_SCHEMA_TOKENS)
USDSKELIMAGING_API Builder & SetOffsets(const HdVec3fArrayDataSourceHandle &offsets)
USDSKELIMAGING_API Builder & SetNormalOffsets(const HdVec3fArrayDataSourceHandle &normalOffsets)
USDSKELIMAGING_API HdFloatDataSourceHandle GetWeight() const
Corresponds to Usd attribute metadata.