24 #ifndef PXR_IMAGING_HD_RETAINED_SCENE_INDEX_H 25 #define PXR_IMAGING_HD_RETAINED_SCENE_INDEX_H 29 #include "pxr/usd/sdf/pathTable.h" 31 #include "pxr/imaging/hd/sceneIndex.h" 33 PXR_NAMESPACE_OPEN_SCOPE
48 static HdRetainedSceneIndexRefPtr
New() {
58 HdContainerDataSourceHandle dataSource;
61 using AddedPrimEntries = std::vector<AddedPrimEntry>;
67 virtual void AddPrims(
const AddedPrimEntries &entries);
100 _PrimEntryTable _entries;
104 PXR_NAMESPACE_CLOSE_SCOPE
106 #endif // PXR_IMAGING_HD_RETAINED_SCENE_INDEX_H SdfPathVector GetChildPrimPaths(const SdfPath &primPath) const override
Returns the paths of all scene index prims located immediately below primPath.
virtual void AddPrims(const AddedPrimEntries &entries)
Add a prim to the retained scene index.
HdSceneIndexPrim GetPrim(const SdfPath &primPath) const override
Returns a pair of (prim type, datasource) for the object at primPath.
Concrete scene container which can be externally populated and dirtied.
Small struct representing a 'prim' in the Hydra scene index.
Token for efficient comparison, assignment, and hashing of known strings.
Abstract interface to scene data.
virtual void RemovePrims(const HdSceneIndexObserver::RemovedPrimEntries &entries)
Removes a prim subtree from the retained scene index.
A path value used to locate objects in layers or scenegraphs.
static HdRetainedSceneIndexRefPtr New()
Creates a new retained scene index.
#define TF_DECLARE_REF_PTRS(type)
Define standard ref pointer types.
virtual void DirtyPrims(const HdSceneIndexObserver::DirtiedPrimEntries &entries)
Invalidates prim data in the retained scene index.