18#ifndef PXR_IMAGING_HD_NURBS_PATCH_SCHEMA_H
19#define PXR_IMAGING_HD_NURBS_PATCH_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
26#include "pxr/imaging/hd/schema.h"
31PXR_NAMESPACE_OPEN_SCOPE
36#define HD_NURBS_PATCH_SCHEMA_TOKENS \
58 HD_NURBS_PATCH_SCHEMA_TOKENS);
63class HdNurbsPatchSchema :
public HdSchema
69 HdNurbsPatchSchema(HdContainerDataSourceHandle container)
78 static HdNurbsPatchSchema GetFromParent(
79 const HdContainerDataSourceHandle &fromParentContainer);
90 HdIntDataSourceHandle GetUVertexCount()
const;
93 HdIntDataSourceHandle GetVVertexCount()
const;
96 HdIntDataSourceHandle GetUOrder()
const;
99 HdIntDataSourceHandle GetVOrder()
const;
102 HdDoubleArrayDataSourceHandle GetUKnots()
const;
105 HdDoubleArrayDataSourceHandle GetVKnots()
const;
108 HdTokenDataSourceHandle GetUForm()
const;
111 HdTokenDataSourceHandle GetVForm()
const;
114 HdVec2dDataSourceHandle GetURange()
const;
117 HdVec2dDataSourceHandle GetVRange()
const;
120 HdNurbsPatchTrimCurveSchema GetTrimCurve()
const;
123 HdTokenDataSourceHandle GetOrientation()
const;
126 HdBoolDataSourceHandle GetDoubleSided()
const;
136 static const TfToken &GetSchemaToken();
156 static HdContainerDataSourceHandle
158 const HdIntDataSourceHandle &uVertexCount,
159 const HdIntDataSourceHandle &vVertexCount,
160 const HdIntDataSourceHandle &uOrder,
161 const HdIntDataSourceHandle &vOrder,
162 const HdDoubleArrayDataSourceHandle &uKnots,
163 const HdDoubleArrayDataSourceHandle &vKnots,
164 const HdTokenDataSourceHandle &uForm,
165 const HdTokenDataSourceHandle &vForm,
166 const HdVec2dDataSourceHandle &uRange,
167 const HdVec2dDataSourceHandle &vRange,
168 const HdContainerDataSourceHandle &trimCurve,
169 const HdTokenDataSourceHandle &orientation,
170 const HdBoolDataSourceHandle &doubleSided
184 const HdIntDataSourceHandle &uVertexCount);
187 const HdIntDataSourceHandle &vVertexCount);
190 const HdIntDataSourceHandle &uOrder);
193 const HdIntDataSourceHandle &vOrder);
196 const HdDoubleArrayDataSourceHandle &uKnots);
199 const HdDoubleArrayDataSourceHandle &vKnots);
202 const HdTokenDataSourceHandle &uForm);
205 const HdTokenDataSourceHandle &vForm);
208 const HdVec2dDataSourceHandle &uRange);
211 const HdVec2dDataSourceHandle &vRange);
214 const HdContainerDataSourceHandle &trimCurve);
217 const HdTokenDataSourceHandle &orientation);
220 const HdBoolDataSourceHandle &doubleSided);
224 HdContainerDataSourceHandle
Build();
227 HdIntDataSourceHandle _uVertexCount;
228 HdIntDataSourceHandle _vVertexCount;
229 HdIntDataSourceHandle _uOrder;
230 HdIntDataSourceHandle _vOrder;
231 HdDoubleArrayDataSourceHandle _uKnots;
232 HdDoubleArrayDataSourceHandle _vKnots;
233 HdTokenDataSourceHandle _uForm;
234 HdTokenDataSourceHandle _vForm;
235 HdVec2dDataSourceHandle _uRange;
236 HdVec2dDataSourceHandle _vRange;
237 HdContainerDataSourceHandle _trimCurve;
238 HdTokenDataSourceHandle _orientation;
239 HdBoolDataSourceHandle _doubleSided;
251 static HdTokenDataSourceHandle BuildFormDataSource(
261 static HdTokenDataSourceHandle BuildOrientationDataSource(
267PXR_NAMESPACE_CLOSE_SCOPE
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...
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.