Loading...
Searching...
No Matches
rileyEnergyFilterSchema.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 EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RILEY_ENERGY_FILTER_SCHEMA_H
9#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_RILEY_ENERGY_FILTER_SCHEMA_H
10
12
13#include "hdPrman/api.h"
14#include "hdPrman/rileySchemaTypeDefs.h"
16
17#include "pxr/imaging/hd/schema.h"
18#include "pxr/imaging/hd/version.h"
19
20PXR_NAMESPACE_OPEN_SCOPE
21
22#define HD_PRMAN_RILEY_ENERGY_FILTER_SCHEMA_TOKENS \
23 (rileyEnergyFilter) \
24 (energyFilter) \
25 (attributes) \
26
27TF_DECLARE_PUBLIC_TOKENS(HdPrmanRileyEnergyFilterSchemaTokens, HDPRMAN_API,
28 HD_PRMAN_RILEY_ENERGY_FILTER_SCHEMA_TOKENS);
29
30//-----------------------------------------------------------------------------
31
32class HdPrmanRileyEnergyFilterSchema : public HdSchema
33{
34public:
35 HdPrmanRileyEnergyFilterSchema(HdContainerDataSourceHandle container)
36 : HdSchema(container) {}
37
38 HDPRMAN_API
39 static HdPrmanRileyEnergyFilterSchema GetFromParent(
40 const HdContainerDataSourceHandle &fromParentContainer);
41
42 HDPRMAN_API
44#if HD_API_VERSION >= 66
45 const;
46#else
47 ;
48#endif
49
50 HDPRMAN_API
51 HdPrmanRileyParamListSchema GetAttributes()
52#if HD_API_VERSION >= 66
53 const;
54#else
55 ;
56#endif
57
58 HDPRMAN_API
59 static const TfToken &GetSchemaToken();
60
61 HDPRMAN_API
62 static const HdDataSourceLocator &GetDefaultLocator();
63
64 HDPRMAN_API
65 static const HdDataSourceLocator &GetEnergyFilterLocator();
66
67 HDPRMAN_API
68 static const HdDataSourceLocator &GetAttributesLocator();
69
70 HDPRMAN_API
71 static HdContainerDataSourceHandle
72 BuildRetained(
73 const HdVectorDataSourceHandle &energyFilter,
74 const HdContainerDataSourceHandle &attributes
75 );
76
77 class Builder
78 {
79 public:
80 HDPRMAN_API
81 Builder &SetEnergyFilter(
82 const HdVectorDataSourceHandle &energyFilter);
83 HDPRMAN_API
84 Builder &SetAttributes(
85 const HdContainerDataSourceHandle &attributes);
86
87 HDPRMAN_API
88 HdContainerDataSourceHandle Build();
89
90 private:
91 HdVectorDataSourceHandle _energyFilter;
92 HdContainerDataSourceHandle _attributes;
93 };
94};
95
96PXR_NAMESPACE_CLOSE_SCOPE
97
98#endif
Helper class for storing intermediate results when building a variable expression.
Represents an object that can identify the location of a data source.
Schema to describe RtParamList.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition schema.h:26
Template class wrapping a vector data source whose children are container data source conforming to a...
Token for efficient comparison, assignment, and hashing of known strings.
Definition token.h:71
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.