24 #ifndef PXR_IMAGING_HD_SCENE_INDEX_H
25 #define PXR_IMAGING_HD_SCENE_INDEX_H
30 #include <unordered_map>
80 void AddObserver(
const HdSceneIndexObserverPtr &observer);
117 GetPrim(primPath).dataSource, locator);
161 using _ObserverSet = std::set<HdSceneIndexObserverPtr>;
162 _ObserverSet _observers;
206 using _NamedInstanceMap =
207 std::unordered_map<std::string, HdSceneIndexBasePtr>;
209 _NamedInstanceMap _namedInstances;
214 #endif // PXR_IMAGING_HD_SCENE_INDEX_H
HD_API void _SendPrimsRemoved(const HdSceneIndexObserver::RemovedPrimEntries &entries)
HD_API void RegisterNamedSceneIndex(const std::string &name, HdSceneIndexBasePtr instance)
HD_API void _SendPrimsDirtied(const HdSceneIndexObserver::DirtiedPrimEntries &entries)
GLuint const GLchar * name
virtual HdDataSourceBaseHandle Get(const TfToken &name)=0
HD_API ~HdSceneIndexBase() override
virtual SdfPathVector GetChildPrimPaths(const SdfPath &primPath) const =0
HD_API void RemoveObserver(const HdSceneIndexObserverPtr &observer)
HdContainerDataSourceHandle dataSource
GLsizei const GLchar *const * string
HD_API void AddObserver(const HdSceneIndexObserverPtr &observer)
HdDataSourceBaseHandle GetDataSource(const SdfPath &primPath, const HdDataSourceLocator &locator) const
std::vector< class SdfPath > SdfPathVector
A vector of SdfPaths.
HD_API void _SendPrimsAdded(const HdSceneIndexObserver::AddedPrimEntries &entries)
virtual HdSceneIndexPrim GetPrim(const SdfPath &primPath) const =0
HD_API HdSceneIndexBaseRefPtr GetNamedSceneIndex(const std::string &name)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
static HdSceneIndexNameRegistry & GetInstance()
#define PXR_NAMESPACE_CLOSE_SCOPE
HD_API bool _IsObserved() const
HD_API std::vector< std::string > GetRegisteredNames()