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"
33PXR_NAMESPACE_OPEN_SCOPE
49 static HdRetainedSceneIndexRefPtr
New() {
59 HdContainerDataSourceHandle dataSource;
62 using AddedPrimEntries = std::vector<AddedPrimEntry>;
69 virtual void AddPrims(
const AddedPrimEntries &entries);
107 _PrimEntryTable _entries;
111PXR_NAMESPACE_CLOSE_SCOPE
Concrete scene container which can be externally populated and dirtied.
static HD_API HdRetainedSceneIndexRefPtr New()
Creates a new retained scene index.
HD_API HdSceneIndexPrim GetPrim(const SdfPath &primPath) const override
Returns a pair of (prim type, datasource) for the object at primPath.
virtual HD_API void AddPrims(const AddedPrimEntries &entries)
Add a prim to the retained scene index.
virtual HD_API void RemovePrims(const HdSceneIndexObserver::RemovedPrimEntries &entries)
Removes a prim subtree from the retained scene index.
virtual HD_API void DirtyPrims(const HdSceneIndexObserver::DirtiedPrimEntries &entries)
Invalidates prim data in the retained scene index.
HD_API SdfPathVector GetChildPrimPaths(const SdfPath &primPath) const override
Returns the paths of all scene index prims located immediately below primPath.
Abstract interface to scene data.
A path value used to locate objects in layers or scenegraphs.
A mapping from SdfPath to MappedType, somewhat similar to map<SdfPath, MappedType> and TfHashMap<SdfP...
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_REF_PTRS(type)
Define standard ref pointer types.
Small struct representing a 'prim' in the Hydra scene index.