Loading...
Searching...
No Matches
nurbsCurvesSchema.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_CURVES_SCHEMA_H
19#define PXR_IMAGING_HD_NURBS_CURVES_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_CURVES_SCHEMA_TOKENS \
36 (nurbsCurves) \
37 (curveVertexCounts) \
38 (order) \
39 (knots) \
40 (ranges) \
41
42TF_DECLARE_PUBLIC_TOKENS(HdNurbsCurvesSchemaTokens, HD_API,
43 HD_NURBS_CURVES_SCHEMA_TOKENS);
44
45//-----------------------------------------------------------------------------
46
47
50class HdNurbsCurvesSchema : public HdSchema
51{
52public:
55
56 HdNurbsCurvesSchema(HdContainerDataSourceHandle container)
57 : HdSchema(container) {}
58
64 HD_API
65 static HdNurbsCurvesSchema 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 GetCurveVertexCounts() const;
78
79 HD_API
80 HdIntArrayDataSourceHandle GetOrder() const;
81
82 HD_API
83 HdDoubleArrayDataSourceHandle GetKnots() const;
84
85 HD_API
86 HdVec2dArrayDataSourceHandle GetRanges() const;
87
89
92
95 HD_API
96 static const TfToken &GetSchemaToken();
97
100 HD_API
101 static const HdDataSourceLocator &GetDefaultLocator();
102
104
107
115 HD_API
116 static HdContainerDataSourceHandle
117 BuildRetained(
118 const HdIntArrayDataSourceHandle &curveVertexCounts,
119 const HdIntArrayDataSourceHandle &order,
120 const HdDoubleArrayDataSourceHandle &knots,
121 const HdVec2dArrayDataSourceHandle &ranges
122 );
123
131 {
132 public:
133 HD_API
134 Builder &SetCurveVertexCounts(
135 const HdIntArrayDataSourceHandle &curveVertexCounts);
136 HD_API
137 Builder &SetOrder(
138 const HdIntArrayDataSourceHandle &order);
139 HD_API
140 Builder &SetKnots(
141 const HdDoubleArrayDataSourceHandle &knots);
142 HD_API
143 Builder &SetRanges(
144 const HdVec2dArrayDataSourceHandle &ranges);
145
147 HD_API
148 HdContainerDataSourceHandle Build();
149
150 private:
151 HdIntArrayDataSourceHandle _curveVertexCounts;
152 HdIntArrayDataSourceHandle _order;
153 HdDoubleArrayDataSourceHandle _knots;
154 HdVec2dArrayDataSourceHandle _ranges;
155
156 };
157
159};
160
161PXR_NAMESPACE_CLOSE_SCOPE
162
163#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:92