7#ifndef PXR_IMAGING_HDSI_BACK_PLATE_SCENE_INDEX_H
8#define PXR_IMAGING_HDSI_BACK_PLATE_SCENE_INDEX_H
10#include "pxr/imaging/hdsi/api.h"
11#include "pxr/imaging/hd/sceneIndex.h"
12#include "pxr/imaging/hd/filteringSceneIndex.h"
14#include <unordered_set>
16PXR_NAMESPACE_OPEN_SCOPE
34 static HdsiBackPlateSceneIndexRefPtr
35 New(
const HdSceneIndexBaseRefPtr &inputSceneIndex);
61 const HdSceneIndexBaseRefPtr &inputSceneIndex);
65 _RemoveBackPlateChildren(
67 SdfPathSet *
const removedBackPlatePrims);
69 _AddBackPlateChildren(
71 SdfPathSet *
const addedBackPlatePrims);
73 _DirtyBackPlateChildren(
76 dirtiedBackPlatePrims);
79 _GetMeshOrMaterialSiPrim(
80 const SdfPath &plateInstancePath,
81 const TfToken &plateChildType)
const;
85 const SdfPath &platePath)
const;
87 using _BackPlates = std::unordered_set<TfToken,TfToken::HashFunctor>;
88 using _CameraToBackPlatesMap = std::map<SdfPath, _BackPlates>;
92 _CameraToBackPlatesMap _cameraToBackPlates;
95PXR_NAMESPACE_CLOSE_SCOPE
Abstract interface to scene data.
The back plate scene index converts back plate prims into mesh and material prims that align with the...
HDSI_API HdSceneIndexPrim GetPrim(const SdfPath &primPath) const override final
Returns a pair of (prim type, datasource).
HDSI_API SdfPathVector GetChildPrimPaths(const SdfPath &primPath) const override final
Returns the paths of all scene index prims located immediately below primPath.
A path value used to locate objects in layers or scenegraphs.
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_WEAK_AND_REF_PTRS(type)
Define standard weak, ref, and vector pointer types.
Small struct representing a 'prim' in the Hydra scene index.