24#ifndef PXR_IMAGING_HD_MERGING_SCENE_H
25#define PXR_IMAGING_HD_MERGING_SCENE_H
28#include "pxr/imaging/hd/filteringSceneIndex.h"
30PXR_NAMESPACE_OPEN_SCOPE
46 static HdMergingSceneIndexRefPtr New() {
56 const HdSceneIndexBaseRefPtr &inputScene,
57 const SdfPath &activeInputSceneRoot);
60 void RemoveInputScene(
const HdSceneIndexBaseRefPtr &sceneIndex);
91 friend class _Observer;
101 const AddedPrimEntries &entries)
override;
105 const RemovedPrimEntries &entries)
override;
109 const DirtiedPrimEntries &entries)
override;
113 const RenamedPrimEntries &entries)
override;
123 HdSceneIndexBaseRefPtr sceneIndex;
126 _InputEntry(
const HdSceneIndexBaseRefPtr &sceneIndex,
128 : sceneIndex(sceneIndex)
129 , sceneRoot(sceneRoot)
134 using _InputEntries = std::vector<_InputEntry>;
136 _InputEntries _inputs;
140PXR_NAMESPACE_CLOSE_SCOPE
An abstract base class for scene indexes that have one or more input scene indexes which serve as a b...
Merges multiple scenes together.
HD_API HdSceneIndexPrim GetPrim(const SdfPath &primPath) const override
Returns a pair of (prim type, datasource) for the object at primPath.
HD_API std::vector< HdSceneIndexBaseRefPtr > GetInputScenes() const override
satisfying HdFilteringSceneIndex
HD_API void AddInputScene(const HdSceneIndexBaseRefPtr &inputScene, const SdfPath &activeInputSceneRoot)
Adds a scene with activeInputSceneRoot specifying the shallowest path at which prims should be consid...
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.
#define TF_DECLARE_REF_PTRS(type)
Define standard ref pointer types.
Small struct representing a 'prim' in the Hydra scene index.