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"
32PXR_NAMESPACE_OPEN_SCOPE
78 HdSelectionSharedPtr _ComputeSelection();
80 HdSceneIndexBaseRefPtr _sceneIndex;
83 HdSelectionSharedPtr _selection;
84 SdfPathSet _dirtiedPrims;
87PXR_NAMESPACE_CLOSE_SCOPE
Abstract interface to scene data.
Queries each prim of the given scene index for the HdSelectionsSchema to compute a HdSelection.
HDX_API void PrimsAdded(const HdSceneIndexBase &sender, const AddedPrimEntries &entries) override
A notification indicating prims have been added to the scene.
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 SetSceneIndex(HdSceneIndexBaseRefPtr const &sceneIndex)
Set which scene index to query for selection.
HDX_API void PrimsDirtied(const HdSceneIndexBase &sender, const DirtiedPrimEntries &entries) override
A notification indicating prim datasources have been invalidated.
HDX_API HdSelectionSharedPtr GetSelection()
Get the result of querying the scene index for the selection as HdSelection.
HDX_API void PrimsRemoved(const HdSceneIndexBase &sender, const RemovedPrimEntries &entries) override
A notification indicating prims have been removed from the scene.
HDX_API void PrimsRenamed(const HdSceneIndexBase &sender, const RenamedPrimEntries &entries) override
A notification indicating prims (and their descendants) have been renamed or reparented.