7#ifndef PXR_USD_IMAGING_USD_IMAGING_REROOTING_SCENE_INDEX_H
8#define PXR_USD_IMAGING_USD_IMAGING_REROOTING_SCENE_INDEX_H
10#include "pxr/usdImaging/usdImaging/api.h"
12#include "pxr/imaging/hd/filteringSceneIndex.h"
14PXR_NAMESPACE_OPEN_SCOPE
35 static UsdImagingRerootingSceneIndexRefPtr New(
36 HdSceneIndexBaseRefPtr
const &inputScene,
40 return TfCreateRefPtr(
42 inputScene, srcPrefix, dstPrefix));
54 HdSceneIndexBaseRefPtr
const &inputScene,
81 const SdfPathVector _dstPrefixes;
83 const bool _srcEqualsDst;
85 const bool _srcPrefixIsRoot;
88PXR_NAMESPACE_CLOSE_SCOPE
Abstract interface to scene data.
A path value used to locate objects in layers or scenegraphs.
Drops all prims not under srcPrefix and moves those under srcPrefix to dstPrefix.
USDIMAGING_API SdfPathVector GetChildPrimPaths(const SdfPath &primPath) const override
Returns the paths of all scene index prims located immediately below primPath.
USDIMAGING_API HdSceneIndexPrim GetPrim(const SdfPath &primPath) const override
Returns a pair of (prim type, datasource).
#define TF_DECLARE_REF_PTRS(type)
Define standard ref pointer types.
Small struct representing a 'prim' in the Hydra scene index.