This document is for a version of USD that is under development. See this page for the current release.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
field.h
1//
2// Copyright 2018 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_FIELD_H
8#define PXR_IMAGING_HD_FIELD_H
9
10#include "pxr/pxr.h"
11#include "pxr/imaging/hd/api.h"
12#include "pxr/imaging/hd/version.h"
13#include "pxr/imaging/hd/bprim.h"
14
15#include <vector>
16
17PXR_NAMESPACE_OPEN_SCOPE
18
19#define HD_FIELD_TOKENS \
20 (filePath) \
21 (fieldName)
22
23TF_DECLARE_PUBLIC_TOKENS(HdFieldTokens, HD_API, HD_FIELD_TOKENS);
24
25class HdSceneDelegate;
26using HdFieldPtrConstVector = std::vector<class HdField const *>;
27
33class HdField : public HdBprim
34{
35public:
36 HD_API
37 HdField(SdfPath const & id);
38 HD_API
39 ~HdField() override;
40
41 // Change tracking for HdField
42 enum DirtyBits : HdDirtyBits {
43 Clean = 0,
44 DirtyTransform = 1 << 0,
45 DirtyParams = 1 << 1,
46 AllDirty = (DirtyTransform
47 |DirtyParams)
48 };
49};
50
51PXR_NAMESPACE_CLOSE_SCOPE
52
53#endif // PXR_IMAGING_HD_FIELD_H
Bprim (buffer prim) is a base class of managing a blob of data that is used to communicate between th...
Definition: bprim.h:40
Hydra schema for a USD field primitive.
Definition: field.h:34
Adapter class providing data exchange with the client scene graph.
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:81