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"
11#include "pxr/imaging/hd/filteringSceneIndex.h"
12#include "pxr/usd/pcp/mapFunction.h"
13#include "pxr/usd/sdf/pathTable.h"
16PXR_NAMESPACE_OPEN_SCOPE
39 static UsdImagingRerootingSceneIndexRefPtr
New(
40 HdSceneIndexBaseRefPtr
const &inputScene,
47 return TfCreateRefPtr(
51 static UsdImagingRerootingSceneIndexRefPtr
New(
52 HdSceneIndexBaseRefPtr
const &inputScene,
55 return TfCreateRefPtr(
68 HdSceneIndexBaseRefPtr
const &inputScene,
92PXR_NAMESPACE_CLOSE_SCOPE
Abstract interface to scene data.
A function that maps values from one namespace (and time domain) to another.
static PCP_API PcpMapFunction Create(const PathMap &sourceToTargetMap, const SdfLayerOffset &offset)
Constructs a map function with the given arguments.
Represents a time offset and scale between layers.
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...
Applies a bijective namespace mapping, as represented by a PcpMapFunction, to the input namespace.
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).
static UsdImagingRerootingSceneIndexRefPtr New(HdSceneIndexBaseRefPtr const &inputScene, const SdfPath &srcPrefix, const SdfPath &dstPrefix)
A convenience method that maps between two provided paths.
#define TF_DECLARE_REF_PTRS(type)
Define standard ref pointer types.
Small struct representing a 'prim' in the Hydra scene index.