Loading...
Searching...
No Matches
fieldSubtextureIdentifier.h
1//
2// Copyright 2020 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_IMAGING_HD_ST_FIELD_SUBTEXTURE_IDENTIFIER_H
8#define PXR_IMAGING_HD_ST_FIELD_SUBTEXTURE_IDENTIFIER_H
9
10#include "pxr/imaging/hdSt/subtextureIdentifier.h"
11
12PXR_NAMESPACE_OPEN_SCOPE
13
21{
22public:
27 HDST_API
29 TfToken const &fieldName,
30 int fieldIndex);
31
32 HDST_API
33 std::unique_ptr<HdStSubtextureIdentifier> Clone() const override;
34
35 HDST_API
37
38protected:
39 HDST_API
40 ID _Hash() const override;
41};
42
51{
52public:
62 HDST_API
64 TfToken const &fieldName,
65 int fieldIndex,
66 TfToken const &fieldPurpose);
67
68 HDST_API
69 std::unique_ptr<HdStSubtextureIdentifier> Clone() const override;
70
71 HDST_API
72 TfToken const &GetFieldPurpose() const { return _fieldPurpose; }
73
74 HDST_API
76
77protected:
78 HDST_API
79 ID _Hash() const override;
80
81private:
82 TfToken _fieldPurpose;
83};
84
85
86PXR_NAMESPACE_CLOSE_SCOPE
87
88#endif
Identifies the grid in a Field3DAsset file.
HDST_API HdStField3DAssetSubtextureIdentifier(TfToken const &fieldName, int fieldIndex, TfToken const &fieldPurpose)
C'tor.
Base class for information identifying a grid in a volume field file.
Identifies a grid in an OpenVDB file.
HDST_API HdStOpenVDBAssetSubtextureIdentifier(TfToken const &fieldName, int fieldIndex)
C'tor.
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71