24#ifndef PXR_USD_IMAGING_USDVIEWQ_HYDRA_OBSERVER_H
25#define PXR_USD_IMAGING_USDVIEWQ_HYDRA_OBSERVER_H
27#include "pxr/imaging/hd/sceneIndex.h"
28#include "pxr/usdImaging/usdviewq/api.h"
31PXR_NAMESPACE_OPEN_SCOPE
68 using IndexList = std::vector<size_t> ;
94 const IndexList &inputIndices);
129 using NoticeEntryVector = std::vector<NoticeEntry>;
147 bool _Target(
const HdSceneIndexBaseRefPtr &sceneIndex);
155 const AddedPrimEntries &entries)
override;
160 const RemovedPrimEntries &entries)
override;
165 const DirtiedPrimEntries &entries)
override;
170 const RenamedPrimEntries &entries)
override;
173 NoticeEntryVector notices;
176 HdSceneIndexBaseRefPtr _sceneIndex;
180PXR_NAMESPACE_CLOSE_SCOPE
Abstract interface to scene data.
A path value used to locate objects in layers or scenegraphs.
Abstracts pieces necessary for implementing a Hydra Scene Browser in a manner convenient for exposing...
USDVIEWQ_API bool HasPendingNotices()
Returns true if there are pending scene change notices.
USDVIEWQ_API NoticeEntryVector GetPendingNotices()
Returns (and clears) any accumulated scene change notices.
USDVIEWQ_API std::vector< std::string > GetInputDisplayNames(const IndexList &inputIndices)
Starting from the currently targeted HdSceneIndex, each value in the inputIndices is treated as an in...
USDVIEWQ_API SdfPathVector GetChildPrimPaths(const SdfPath &primPath)
Returns the paths of the immediate children of the specified primPath for the actively observer scene...
USDVIEWQ_API bool TargetToInputSceneIndex(const IndexList &inputIndices)
Starting from the currently targeted HdSceneIndex, each value in the inputIndices is treated as an in...
USDVIEWQ_API bool TargetToNamedSceneIndex(const std::string &name)
Target this observer to a scene index with the given name previously registered via HdSceneIndexNameR...
USDVIEWQ_API std::string GetDisplayName()
Returns the display name of the actively targeted scene index.
static USDVIEWQ_API std::vector< std::string > GetRegisteredSceneIndexNames()
Returns the names of scene indices previously registered with HdSceneIndexNameRegistry.
USDVIEWQ_API void ClearPendingNotices()
Clears any accumulated scene change notices.
USDVIEWQ_API HdSceneIndexPrim GetPrim(const SdfPath &primPath)
Returns the prim type and data source for the specified primPath for the actively observer scene inde...
Small struct representing a 'prim' in the Hydra scene index.
Aggregate of HdSceneIndexObserver entry types for easier binding to python.