18#ifndef PXR_IMAGING_HD_NURBS_CURVES_SCHEMA_H
19#define PXR_IMAGING_HD_NURBS_CURVES_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
25#include "pxr/imaging/hd/schema.h"
30PXR_NAMESPACE_OPEN_SCOPE
35#define HD_NURBS_CURVES_SCHEMA_TOKENS \
43 HD_NURBS_CURVES_SCHEMA_TOKENS);
48class HdNurbsCurvesSchema :
public HdSchema
54 HdNurbsCurvesSchema(HdContainerDataSourceHandle container)
63 static HdNurbsCurvesSchema GetFromParent(
64 const HdContainerDataSourceHandle &fromParentContainer);
75 HdIntArrayDataSourceHandle GetCurveVertexCounts()
const;
78 HdIntArrayDataSourceHandle GetOrder()
const;
81 HdDoubleArrayDataSourceHandle GetKnots()
const;
84 HdVec2dArrayDataSourceHandle GetRanges()
const;
94 static const TfToken &GetSchemaToken();
114 static HdContainerDataSourceHandle
116 const HdIntArrayDataSourceHandle &curveVertexCounts,
117 const HdIntArrayDataSourceHandle &order,
118 const HdDoubleArrayDataSourceHandle &knots,
119 const HdVec2dArrayDataSourceHandle &ranges
133 const HdIntArrayDataSourceHandle &curveVertexCounts);
136 const HdIntArrayDataSourceHandle &order);
139 const HdDoubleArrayDataSourceHandle &knots);
142 const HdVec2dArrayDataSourceHandle &ranges);
146 HdContainerDataSourceHandle
Build();
149 HdIntArrayDataSourceHandle _curveVertexCounts;
150 HdIntArrayDataSourceHandle _order;
151 HdDoubleArrayDataSourceHandle _knots;
152 HdVec2dArrayDataSourceHandle _ranges;
159PXR_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.