Loading...
Searching...
No Matches
systemSchema.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_HDAR_SYSTEM_SCHEMA_H
19#define PXR_IMAGING_HDAR_SYSTEM_SCHEMA_H
20
22
23#include "pxr/imaging/hdar/api.h"
24
25#include "pxr/imaging/hd/schema.h"
26
27// --(BEGIN CUSTOM CODE: Includes)--
29// --(END CUSTOM CODE: Includes)--
30
31PXR_NAMESPACE_OPEN_SCOPE
32
33// --(BEGIN CUSTOM CODE: Declares)--
35// --(END CUSTOM CODE: Declares)--
36
37#define HDAR_SYSTEM_SCHEMA_TOKENS \
38 (assetResolution) \
39 (resolverContext) \
40
41TF_DECLARE_PUBLIC_TOKENS(HdarSystemSchemaTokens, HDAR_API,
42 HDAR_SYSTEM_SCHEMA_TOKENS);
43
44//-----------------------------------------------------------------------------
45
46// The HdarSystemSchema specifies a container that will hold "system" data
47// that is relevant to asset resolution.
48//
49
50class HdarSystemSchema : public HdSchema
51{
52public:
55
56 HdarSystemSchema(HdContainerDataSourceHandle container)
57 : HdSchema(container) {}
58
64 HDAR_API
65 static HdarSystemSchema GetFromParent(
66 const HdContainerDataSourceHandle &fromParentContainer);
67
69
70// --(BEGIN CUSTOM CODE: Schema Methods)--
71
79 HDAR_API
80 static HdContainerDataSourceHandle GetFromPath(
81 HdSceneIndexBaseRefPtr const &inputScene,
82 SdfPath const &fromPath,
83 SdfPath *foundAtPath);
84
85// --(END CUSTOM CODE: Schema Methods)--
86
89
90 HDAR_API
91 HdResolverContextDataSourceHandle GetResolverContext() const;
92
94
97
100 HDAR_API
101 static const TfToken &GetSchemaToken();
102
105 HDAR_API
106 static const HdDataSourceLocator &GetDefaultLocator();
107
109
112
120 HDAR_API
121 static HdContainerDataSourceHandle
122 BuildRetained(
123 const HdResolverContextDataSourceHandle &resolverContext
124 );
125
133 {
134 public:
135 HDAR_API
136 Builder &SetResolverContext(
137 const HdResolverContextDataSourceHandle &resolverContext);
138
140 HDAR_API
141 HdContainerDataSourceHandle Build();
142
143 private:
144 HdResolverContextDataSourceHandle _resolverContext;
145
146 };
147
149};
150
151PXR_NAMESPACE_CLOSE_SCOPE
152
153#endif
Represents an object that can identify the location of a data source.
Abstract interface to scene data.
Definition: sceneIndex.h:48
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition: schema.h:26
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
Definition: systemSchema.h:133
HDAR_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
Standard pointer typedefs.
#define TF_DECLARE_REF_PTRS(type)
Define standard ref pointer types.
Definition: declarePtrs.h:58
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:81