24 #ifndef PXR_IMAGING_HD_SCENE_INDEX_H
25 #define PXR_IMAGING_HD_SCENE_INDEX_H
30 #include <unordered_map>
84 void AddObserver(
const HdSceneIndexObserverPtr &observer);
121 GetPrim(primPath).dataSource, locator);
134 const HdDataSourceBaseHandle &
args);
231 const HdDataSourceBaseHandle &
args);
234 void _RemoveExpiredObservers();
241 using _Observers = std::vector<HdSceneIndexObserverPtr>;
242 _Observers _observers;
248 bool _shouldRemoveExpiredObservers;
300 using _NamedInstanceMap =
301 std::unordered_map<std::string, HdSceneIndexBasePtr>;
303 _NamedInstanceMap _namedInstances;
308 #endif // PXR_IMAGING_HD_SCENE_INDEX_H
HD_API void SetDisplayName(const std::string &n)
HD_API void _SendPrimsRemoved(const HdSceneIndexObserver::RemovedPrimEntries &entries)
HD_API void RegisterNamedSceneIndex(const std::string &name, HdSceneIndexBasePtr instance)
HD_API void SystemMessage(const TfToken &messageType, const HdDataSourceBaseHandle &args)
GLsizei const GLchar *const * string
static HD_API HdSceneIndexNameRegistry & GetInstance()
HD_API void _SendPrimsRenamed(const HdSceneIndexObserver::RenamedPrimEntries &entries)
HD_API void _SendPrimsDirtied(const HdSceneIndexObserver::DirtiedPrimEntries &entries)
virtual HD_API void _SystemMessage(const TfToken &messageType, const HdDataSourceBaseHandle &args)
virtual HdDataSourceBaseHandle Get(const TfToken &name)=0
HD_API ~HdSceneIndexBase() override
virtual SdfPathVector GetChildPrimPaths(const SdfPath &primPath) const =0
HD_API std::string GetDisplayName() const
HD_API void RemoveObserver(const HdSceneIndexObserverPtr &observer)
HdContainerDataSourceHandle dataSource
HD_API void AddObserver(const HdSceneIndexObserverPtr &observer)
HD_API TfTokenVector GetTags() const
HD_API HdSceneIndexBase()
std::vector< TfToken > TfTokenVector
Convenience types.
HdDataSourceBaseHandle GetDataSource(const SdfPath &primPath, const HdDataSourceLocator &locator) const
GLuint const GLchar * name
HD_API void AddTag(const TfToken &tag)
std::vector< class SdfPath > SdfPathVector
A vector of SdfPaths.
HD_API void _SendPrimsAdded(const HdSceneIndexObserver::AddedPrimEntries &entries)
HD_API void RemoveTag(const TfToken &tag)
virtual HdSceneIndexPrim GetPrim(const SdfPath &primPath) const =0
HD_API HdSceneIndexBaseRefPtr GetNamedSceneIndex(const std::string &name)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
**If you just want to fire and args
HD_API bool _IsObserved() const
HD_API bool HasTag(const TfToken &tag) const
HD_API std::vector< std::string > GetRegisteredNames()