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() {
42 const HdSceneIndexBaseRefPtr &inputScene,
43 const SdfPath &activeInputSceneRoot);
46 void InsertInputScene(
48 const HdSceneIndexBaseRefPtr &inputScene,
49 const SdfPath &activeInputSceneRoot);
52 void RemoveInputScene(
const HdSceneIndexBaseRefPtr &sceneIndex);
83 friend class _Observer;
93 const AddedPrimEntries &entries)
override;
97 const RemovedPrimEntries &entries)
override;
101 const DirtiedPrimEntries &entries)
override;
105 const RenamedPrimEntries &entries)
override;
115 HdSceneIndexBaseRefPtr sceneIndex;
118 _InputEntry(
const HdSceneIndexBaseRefPtr &sceneIndex,
120 : sceneIndex(sceneIndex)
121 , sceneRoot(sceneRoot)
126 using _InputEntries = std::vector<_InputEntry>;
128 _InputEntries _inputs;
132PXR_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.