Loading...
Searching...
No Matches
nurbsPatchTrimCurveSchema.h
Go to the documentation of this file.
1//
2// Copyright 2023 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_IMAGING_HD_NURBS_PATCH_TRIM_CURVE_SCHEMA_H
19#define PXR_IMAGING_HD_NURBS_PATCH_TRIM_CURVE_SCHEMA_H
20
22
23#include "pxr/imaging/hd/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 HD_NURBS_PATCH_TRIM_CURVE_SCHEMA_TOKENS \
36 (trimCurve) \
37 (counts) \
38 (orders) \
39 (vertexCounts) \
40 (knots) \
41 (ranges) \
42 (points) \
43
44TF_DECLARE_PUBLIC_TOKENS(HdNurbsPatchTrimCurveSchemaTokens, HD_API,
45 HD_NURBS_PATCH_TRIM_CURVE_SCHEMA_TOKENS);
46
47//-----------------------------------------------------------------------------
48
49
50class HdNurbsPatchTrimCurveSchema : public HdSchema
51{
52public:
55
56 HdNurbsPatchTrimCurveSchema(HdContainerDataSourceHandle container)
57 : HdSchema(container) {}
58
64 HD_API
65 static HdNurbsPatchTrimCurveSchema GetFromParent(
66 const HdContainerDataSourceHandle &fromParentContainer);
67
69
70// --(BEGIN CUSTOM CODE: Schema Methods)--
71// --(END CUSTOM CODE: Schema Methods)--
72
75
76 HD_API
77 HdIntArrayDataSourceHandle GetCounts() const;
78
79 HD_API
80 HdIntArrayDataSourceHandle GetOrders() const;
81
82 HD_API
83 HdIntArrayDataSourceHandle GetVertexCounts() const;
84
85 HD_API
86 HdDoubleArrayDataSourceHandle GetKnots() const;
87
88 HD_API
89 HdVec2dArrayDataSourceHandle GetRanges() const;
90
91 HD_API
92 HdVec3dArrayDataSourceHandle GetPoints() const;
93
95
98
101 HD_API
102 static const TfToken &GetSchemaToken();
103
106 HD_API
107 static const HdDataSourceLocator &GetDefaultLocator();
108
110
113
121 HD_API
122 static HdContainerDataSourceHandle
123 BuildRetained(
124 const HdIntArrayDataSourceHandle &counts,
125 const HdIntArrayDataSourceHandle &orders,
126 const HdIntArrayDataSourceHandle &vertexCounts,
127 const HdDoubleArrayDataSourceHandle &knots,
128 const HdVec2dArrayDataSourceHandle &ranges,
129 const HdVec3dArrayDataSourceHandle &points
130 );
131
139 {
140 public:
141 HD_API
142 Builder &SetCounts(
143 const HdIntArrayDataSourceHandle &counts);
144 HD_API
145 Builder &SetOrders(
146 const HdIntArrayDataSourceHandle &orders);
147 HD_API
148 Builder &SetVertexCounts(
149 const HdIntArrayDataSourceHandle &vertexCounts);
150 HD_API
151 Builder &SetKnots(
152 const HdDoubleArrayDataSourceHandle &knots);
153 HD_API
154 Builder &SetRanges(
155 const HdVec2dArrayDataSourceHandle &ranges);
156 HD_API
157 Builder &SetPoints(
158 const HdVec3dArrayDataSourceHandle &points);
159
161 HD_API
162 HdContainerDataSourceHandle Build();
163
164 private:
165 HdIntArrayDataSourceHandle _counts;
166 HdIntArrayDataSourceHandle _orders;
167 HdIntArrayDataSourceHandle _vertexCounts;
168 HdDoubleArrayDataSourceHandle _knots;
169 HdVec2dArrayDataSourceHandle _ranges;
170 HdVec3dArrayDataSourceHandle _points;
171
172 };
173
175};
176
177PXR_NAMESPACE_CLOSE_SCOPE
178
179#endif
Represents an object that can identify the location of a data source.
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
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
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:81