All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
basisCurvesSchema.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_BASIS_CURVES_SCHEMA_H
19#define PXR_IMAGING_HD_BASIS_CURVES_SCHEMA_H
20
22
23#include "pxr/imaging/hd/api.h"
25
26#include "pxr/imaging/hd/schema.h"
27
28// --(BEGIN CUSTOM CODE: Includes)--
29// --(END CUSTOM CODE: Includes)--
30
31PXR_NAMESPACE_OPEN_SCOPE
32
33// --(BEGIN CUSTOM CODE: Declares)--
34// --(END CUSTOM CODE: Declares)--
35
36#define HD_BASIS_CURVES_SCHEMA_TOKENS \
37 (basisCurves) \
38 (topology) \
39
40TF_DECLARE_PUBLIC_TOKENS(HdBasisCurvesSchemaTokens, HD_API,
41 HD_BASIS_CURVES_SCHEMA_TOKENS);
42
43//-----------------------------------------------------------------------------
44
45
46class HdBasisCurvesSchema : public HdSchema
47{
48public:
51
52 HdBasisCurvesSchema(HdContainerDataSourceHandle container)
53 : HdSchema(container) {}
54
60 HD_API
61 static HdBasisCurvesSchema GetFromParent(
62 const HdContainerDataSourceHandle &fromParentContainer);
63
65
66// --(BEGIN CUSTOM CODE: Schema Methods)--
67// --(END CUSTOM CODE: Schema Methods)--
68
71
72 HD_API
73 HdBasisCurvesTopologySchema GetTopology() const;
74
76
79
82 HD_API
83 static const TfToken &GetSchemaToken();
84
87 HD_API
88 static const HdDataSourceLocator &GetDefaultLocator();
89
91
100
102 HD_API
103 static const HdDataSourceLocator &GetTopologyLocator();
105
108
116 HD_API
117 static HdContainerDataSourceHandle
118 BuildRetained(
119 const HdContainerDataSourceHandle &topology
120 );
121
129 {
130 public:
131 HD_API
132 Builder &SetTopology(
133 const HdContainerDataSourceHandle &topology);
134
136 HD_API
137 HdContainerDataSourceHandle Build();
138
139 private:
140 HdContainerDataSourceHandle _topology;
141
142 };
143
145};
146
147PXR_NAMESPACE_CLOSE_SCOPE
148
149#endif
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.
Represents an object that can identify the location of a data source.
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