Loading...
Searching...
No Matches
primvarsSchema.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_PRIMVARS_SCHEMA_H
19#define PXR_IMAGING_HD_PRIMVARS_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_PRIMVARS_SCHEMA_TOKENS \
37 (primvars) \
38 (points) \
39 (normals) \
40 (widths) \
41
42TF_DECLARE_PUBLIC_TOKENS(HdPrimvarsSchemaTokens, HD_API,
43 HD_PRIMVARS_SCHEMA_TOKENS);
44
45//-----------------------------------------------------------------------------
46
47
50class HdPrimvarsSchema : public HdSchema
51{
52public:
55
56 HdPrimvarsSchema(HdContainerDataSourceHandle container)
57 : HdSchema(container) {}
58
64 HD_API
65 static HdPrimvarsSchema GetFromParent(
66 const HdContainerDataSourceHandle &fromParentContainer);
67
69
70// --(BEGIN CUSTOM CODE: Schema Methods)--
71// --(END CUSTOM CODE: Schema Methods)--
72
75
76 HD_API
77 TfTokenVector GetPrimvarNames() const;
78
79 HD_API
80 HdPrimvarSchema GetPrimvar(const TfToken &name) const;
81
83
86
89 HD_API
90 static const TfToken &GetSchemaToken();
91
94 HD_API
95 static const HdDataSourceLocator &GetDefaultLocator();
96
98
107
109 HD_API
110 static const HdDataSourceLocator &GetPointsLocator();
111
113 HD_API
114 static const HdDataSourceLocator &GetNormalsLocator();
115
117 HD_API
118 static const HdDataSourceLocator &GetWidthsLocator();
120
123 HD_API
124 static HdContainerDataSourceHandle
125 BuildRetained(
126 size_t count,
127 const TfToken *names,
128 const HdDataSourceBaseHandle *values);
129
131};
132
133PXR_NAMESPACE_CLOSE_SCOPE
134
135#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
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440