24 #ifndef PXR_IMAGING_HDX_SELECTION_SCENE_INDEX_OBSERVER_H 25 #define PXR_IMAGING_HDX_SELECTION_SCENE_INDEX_OBSERVER_H 28 #include "pxr/imaging/hdx/api.h" 29 #include "pxr/imaging/hd/selection.h" 30 #include "pxr/imaging/hd/sceneIndexObserver.h" 32 PXR_NAMESPACE_OPEN_SCOPE
73 HdSelectionSharedPtr _ComputeSelection();
75 HdSceneIndexBaseRefPtr _sceneIndex;
78 HdSelectionSharedPtr _selection;
79 SdfPathSet _dirtiedPrims;
82 PXR_NAMESPACE_CLOSE_SCOPE
Queries each prim of the given scene index for the HdSelectionsSchema to compute a HdSelection.
HDX_API void PrimsDirtied(const HdSceneIndexBase &sender, const DirtiedPrimEntries &entries) override
A notification indicating prim datasources have been invalidated.
HDX_API void SetSceneIndex(HdSceneIndexBaseRefPtr const &sceneIndex)
Set which scene index to query for selection.
HDX_API int GetVersion() const
Increased every time the selection in the scene index gets dirtied (or a difference scene index is se...
HDX_API void PrimsAdded(const HdSceneIndexBase &sender, const AddedPrimEntries &entries) override
A notification indicating prims have been added to the scene.
Abstract interface to scene data.
HDX_API void PrimsRemoved(const HdSceneIndexBase &sender, const RemovedPrimEntries &entries) override
A notification indicating prims have been removed from the scene.
HDX_API HdSelectionSharedPtr GetSelection()
Get the result of querying the scene index for the selection as HdSelection.