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
52{
53public:
56
57 UsdSkelImagingInbetweenShapeSchema(HdContainerDataSourceHandle container)
58 : HdSchema(container) {}
59
61
62// --(BEGIN CUSTOM CODE: Schema Methods)--
63// --(END CUSTOM CODE: Schema Methods)--
64
67
69 USDSKELIMAGING_API
70 HdFloatDataSourceHandle GetWeight() const;
71
72 USDSKELIMAGING_API
73 HdVec3fArrayDataSourceHandle GetOffsets() const;
74
75 USDSKELIMAGING_API
76 HdVec3fArrayDataSourceHandle GetNormalOffsets() const;
77
79
82
90 USDSKELIMAGING_API
91 static HdContainerDataSourceHandle
93 const HdFloatDataSourceHandle &weight,
94 const HdVec3fArrayDataSourceHandle &offsets,
95 const HdVec3fArrayDataSourceHandle &normalOffsets
96 );
97
105 {
106 public:
107 USDSKELIMAGING_API
108 Builder &SetWeight(
109 const HdFloatDataSourceHandle &weight);
110 USDSKELIMAGING_API
111 Builder &SetOffsets(
112 const HdVec3fArrayDataSourceHandle &offsets);
113 USDSKELIMAGING_API
114 Builder &SetNormalOffsets(
115 const HdVec3fArrayDataSourceHandle &normalOffsets);
116
118 USDSKELIMAGING_API
119 HdContainerDataSourceHandle Build();
120
121 private:
122 HdFloatDataSourceHandle _weight;
123 HdVec3fArrayDataSourceHandle _offsets;
124 HdVec3fArrayDataSourceHandle _normalOffsets;
125
126 };
127
129};
130
131PXR_NAMESPACE_CLOSE_SCOPE
132
133#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.
Corresponds to UsdSkelInbetweenShape.
USDSKELIMAGING_API HdFloatDataSourceHandle GetWeight() const
Corresponds to Usd attribute metadata.
static USDSKELIMAGING_API HdContainerDataSourceHandle BuildRetained(const HdFloatDataSourceHandle &weight, const HdVec3fArrayDataSourceHandle &offsets, const HdVec3fArrayDataSourceHandle &normalOffsets)
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92