Loading...
Searching...
No Matches
categoriesSchema.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_CATEGORIES_SCHEMA_H
19#define PXR_IMAGING_HD_CATEGORIES_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_CATEGORIES_SCHEMA_TOKENS \
36 (categories) \
37
38TF_DECLARE_PUBLIC_TOKENS(HdCategoriesSchemaTokens, HD_API,
39 HD_CATEGORIES_SCHEMA_TOKENS);
40
41//-----------------------------------------------------------------------------
42
43
46class HdCategoriesSchema : public HdSchema
47{
48public:
51
52 HdCategoriesSchema(HdContainerDataSourceHandle container)
53 : HdSchema(container) {}
54
60 HD_API
61 static HdCategoriesSchema GetFromParent(
62 const HdContainerDataSourceHandle &fromParentContainer);
63
65
66// --(BEGIN CUSTOM CODE: Schema Methods)--
67 HD_API
68 VtArray<TfToken> GetIncludedCategoryNames();
69
70 HD_API
71 bool IsIncludedInCategory(const TfToken &categoryName);
72
73 HD_API
74 static HdContainerDataSourceHandle BuildRetained(
75 size_t includedNameCount,
76 const TfToken *includedNames,
77 size_t excludedNameCount,
78 const TfToken *excludedNames);
79
80// --(END CUSTOM CODE: Schema Methods)--
81
84
86
89
92 HD_API
93 static const TfToken &GetSchemaToken();
94
97 HD_API
98 static const HdDataSourceLocator &GetDefaultLocator();
99
101
104
106};
107
108PXR_NAMESPACE_CLOSE_SCOPE
109
110#endif
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
Represents an arbitrary dimensional rectangular container class.
Definition: array.h:213
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92