All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
coordSys.h
1//
2// Copyright 2019 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_COORD_SYS_H
8#define PXR_IMAGING_HD_COORD_SYS_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/sprim.h"
14
15PXR_NAMESPACE_OPEN_SCOPE
16
39class HdCoordSys : public HdSprim
40{
41public:
42 HD_API
43 HdCoordSys(SdfPath const & id);
44 HD_API
45 ~HdCoordSys() override;
46
47 // Change tracking for HdCoordSys
48 enum DirtyBits : HdDirtyBits {
49 Clean = 0,
50 DirtyName = 1 << 0,
51 DirtyTransform = 1 << 1,
52 AllDirty = (DirtyTransform
53 |DirtyName)
54 };
55
60 TfToken GetName() const { return _name; }
61
62 HD_API
63 void Sync(HdSceneDelegate *sceneDelegate,
64 HdRenderParam *renderParam,
65 HdDirtyBits *dirtyBits) override;
66
67 HD_API
68 HdDirtyBits GetInitialDirtyBitsMask() const override;
69
70private:
71 TfToken _name;
72};
73
74PXR_NAMESPACE_CLOSE_SCOPE
75
76#endif // PXR_IMAGING_HD_COORD_SYS_H
HdCoordSys representes a coordinate system as a Hydra state prim.
Definition: coordSys.h:40
HD_API void Sync(HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override
Synchronizes state from the delegate to this object.
TfToken GetName() const
Returns the name bound to this coordinate system.
Definition: coordSys.h:60
HD_API HdDirtyBits GetInitialDirtyBitsMask() const override
Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of thi...
The HdRenderParam is an opaque (to core Hydra) handle, to an object that is obtained from the render ...
Adapter class providing data exchange with the client scene graph.
Sprim (state prim) is a base class of managing state for non-drawable scene entity (e....
Definition: sprim.h:35
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