Loading...
Searching...
No Matches
systemChangeProcessor.h
Go to the documentation of this file.
1//
2// Copyright 2025 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_EXEC_EXEC_SYSTEM_CHANGE_PROCESSOR_H
8#define PXR_EXEC_EXEC_SYSTEM_CHANGE_PROCESSOR_H
9
11
12#include "pxr/pxr.h"
13
14#include "pxr/exec/exec/api.h"
15#include "pxr/exec/exec/system.h"
16
17#include "pxr/base/tf/token.h"
18
19#include <memory>
20
21PXR_NAMESPACE_OPEN_SCOPE
22
31{
32public:
33 EXEC_API
34 explicit _ChangeProcessor(ExecSystem *system);
35
36 EXEC_API
38
43 EXEC_API
44 void DidResync(const SdfPath &path);
45
52 EXEC_API
54 const SdfPath &path,
55 const TfTokenVector &changedFields);
56
57private:
58 // Processes accumulated state from changes before the processor goes out of
59 // scope.
60 //
61 void _PostProcessChanges();
62
63private:
64 ExecSystem *const _system;
65
66 // State accumulated over a round of change processing.
67 struct _State;
68 std::unique_ptr<_State> _state;
69};
70
71PXR_NAMESPACE_CLOSE_SCOPE
72
73#endif
Public API to deliver scene changes from ExecSystem derived classes.
EXEC_API void DidResync(const SdfPath &path)
Notifies the ExecSystem that a scene object has been resynced.
EXEC_API void DidChangeInfoOnly(const SdfPath &path, const TfTokenVector &changedFields)
Notifies the ExecSystem that a scene object's fields have changed, but the object has not been resync...
Base implementation of a system to procedurally compute values based on scene description and computa...
Definition: system.h:44
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440