7#ifndef PXR_IMAGING_HD_MERGING_SCENE_H
8#define PXR_IMAGING_HD_MERGING_SCENE_H
11#include "pxr/imaging/hd/filteringSceneIndex.h"
13PXR_NAMESPACE_OPEN_SCOPE
29 static HdMergingSceneIndexRefPtr New() {
39 const HdSceneIndexBaseRefPtr &inputScene,
40 const SdfPath &activeInputSceneRoot);
43 void RemoveInputScene(
const HdSceneIndexBaseRefPtr &sceneIndex);
74 friend class _Observer;
84 const AddedPrimEntries &entries)
override;
88 const RemovedPrimEntries &entries)
override;
92 const DirtiedPrimEntries &entries)
override;
96 const RenamedPrimEntries &entries)
override;
106 HdSceneIndexBaseRefPtr sceneIndex;
109 _InputEntry(
const HdSceneIndexBaseRefPtr &sceneIndex,
111 : sceneIndex(sceneIndex)
112 , sceneRoot(sceneRoot)
117 using _InputEntries = std::vector<_InputEntry>;
119 _InputEntries _inputs;
123PXR_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.