Loading...
Searching...
No Matches
geomSubsetSchema.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_GEOM_SUBSET_SCHEMA_H
19#define PXR_IMAGING_HD_GEOM_SUBSET_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_GEOM_SUBSET_SCHEMA_TOKENS \
36 (geomSubset) \
37 (type) \
38 (indices) \
39 (typeFaceSet) \
40 (typePointSet) \
41 (typeCurveSet) \
42
43TF_DECLARE_PUBLIC_TOKENS(HdGeomSubsetSchemaTokens, HD_API,
44 HD_GEOM_SUBSET_SCHEMA_TOKENS);
45
46//-----------------------------------------------------------------------------
47
48
51class HdGeomSubsetSchema : public HdSchema
52{
53public:
56
57 HdGeomSubsetSchema(HdContainerDataSourceHandle container)
58 : HdSchema(container) {}
59
65 HD_API
66 static HdGeomSubsetSchema GetFromParent(
67 const HdContainerDataSourceHandle &fromParentContainer);
68
70
71// --(BEGIN CUSTOM CODE: Schema Methods)--
72// --(END CUSTOM CODE: Schema Methods)--
73
76
77 HD_API
78 HdTokenDataSourceHandle GetType() const;
79
80 HD_API
81 HdIntArrayDataSourceHandle GetIndices() const;
82
84
87
90 HD_API
91 static const TfToken &GetSchemaToken();
92
95 HD_API
96 static const HdDataSourceLocator &GetDefaultLocator();
97
99
102
110 HD_API
111 static HdContainerDataSourceHandle
112 BuildRetained(
113 const HdTokenDataSourceHandle &type,
114 const HdIntArrayDataSourceHandle &indices
115 );
116
124 {
125 public:
126 HD_API
127 Builder &SetType(
128 const HdTokenDataSourceHandle &type);
129 HD_API
130 Builder &SetIndices(
131 const HdIntArrayDataSourceHandle &indices);
132
134 HD_API
135 HdContainerDataSourceHandle Build();
136
137 private:
138 HdTokenDataSourceHandle _type;
139 HdIntArrayDataSourceHandle _indices;
140
141 };
142
150 HD_API
151 static HdTokenDataSourceHandle BuildTypeDataSource(
152 const TfToken &type);
153
155};
156
157PXR_NAMESPACE_CLOSE_SCOPE
158
159#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