Loading...
Searching...
No Matches
primOriginSchema.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_PRIM_ORIGIN_SCHEMA_H
19#define PXR_IMAGING_HD_PRIM_ORIGIN_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_PRIM_ORIGIN_SCHEMA_TOKENS \
36 (primOrigin) \
37 (scenePath) \
38
39TF_DECLARE_PUBLIC_TOKENS(HdPrimOriginSchemaTokens, HD_API,
40 HD_PRIM_ORIGIN_SCHEMA_TOKENS);
41
42//-----------------------------------------------------------------------------
43
44
47class HdPrimOriginSchema : public HdSchema
48{
49public:
52
53 HdPrimOriginSchema(HdContainerDataSourceHandle container)
54 : HdSchema(container) {}
55
61 HD_API
62 static HdPrimOriginSchema GetFromParent(
63 const HdContainerDataSourceHandle &fromParentContainer);
64
66
67// --(BEGIN CUSTOM CODE: Schema Methods)--
70 class OriginPath {
71 public:
72 OriginPath(const SdfPath &path)
73 : _path(path)
74 {
75 }
76
77 const SdfPath &GetPath() const { return _path; }
78
79 bool operator==(const OriginPath &other) const {
80 return _path == other._path;
81 }
82
83 private:
84 HD_API
85 friend std::ostream &operator <<(std::ostream &stream,
86 OriginPath const &p);
87
88 SdfPath _path;
89 };
90
92
95 HD_API SdfPath GetOriginPath(const TfToken &name) const;
96
97// --(END CUSTOM CODE: Schema Methods)--
98
101
103
106
109 HD_API
110 static const TfToken &GetSchemaToken();
111
114 HD_API
115 static const HdDataSourceLocator &GetDefaultLocator();
116
118
127
130 HD_API
131 static const HdDataSourceLocator &GetScenePathLocator();
133
136
138};
139
140PXR_NAMESPACE_CLOSE_SCOPE
141
142#endif
Represents an object that can identify the location of a data source.
Wraps an SdfPath so that it is not affected by the prefixing scene index.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition: schema.h:26
A datasource representing a concretely-typed sampled value.
Definition: dataSource.h:193
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
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92