Loading...
Searching...
No Matches
energyFilterSchema.h
Go to the documentation of this file.
1//
2// Copyright 2024 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7
8#ifndef PXR_IMAGING_HD_ENERGY_FILTER_SCHEMA_H
9#define PXR_IMAGING_HD_ENERGY_FILTER_SCHEMA_H
10
12
13#include "pxr/imaging/hd/api.h"
15
16#include "pxr/imaging/hd/schema.h"
17
18PXR_NAMESPACE_OPEN_SCOPE
19
20#define HD_ENERGY_FILTER_SCHEMA_TOKENS \
21 (energyFilter) \
22 (resource) \
23
24TF_DECLARE_PUBLIC_TOKENS(HdEnergyFilterSchemaTokens, HD_API,
25 HD_ENERGY_FILTER_SCHEMA_TOKENS);
26
27//-----------------------------------------------------------------------------
28
31class HdEnergyFilterSchema : public HdSchema
32{
33public:
36
37 HdEnergyFilterSchema(HdContainerDataSourceHandle container)
38 : HdSchema(container) {}
39
45 HD_API
46 static HdEnergyFilterSchema GetFromParent(
47 const HdContainerDataSourceHandle &fromParentContainer);
48
50
53
54 HD_API
55 HdMaterialNodeSchema GetResource() const;
56
58
61
62 HD_API
63 static const TfToken &GetSchemaToken();
64
65 HD_API
66 static const HdDataSourceLocator &GetDefaultLocator();
67
69
72
73 HD_API
74 static const HdDataSourceLocator &GetResourceLocator();
76
79
80 HD_API
81 static HdContainerDataSourceHandle
82 BuildRetained(
83 const HdContainerDataSourceHandle &resource
84 );
85
87 class Builder
88 {
89 public:
90 HD_API
91 Builder &SetResource(
92 const HdContainerDataSourceHandle &resource);
93
94 HD_API
95 HdContainerDataSourceHandle Build();
96
97 private:
98 HdContainerDataSourceHandle _resource;
99 };
100
102};
103
104PXR_NAMESPACE_CLOSE_SCOPE
105
106#endif
Helper class for storing intermediate results when building a variable expression.
Represents an object that can identify the location of a data source.
The MaterialNode schema is a container schema that defines a particular node in a material network.
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.