Loading...
Searching...
No Matches
materialBindingsResolvingSceneIndex.h
1//
2// Copyright 2023 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6#ifndef PXR_USD_IMAGING_USD_IMAGING_MATERIAL_BINDINGS_RESOLVING_SCENE_INDEX_H
7#define PXR_USD_IMAGING_USD_IMAGING_MATERIAL_BINDINGS_RESOLVING_SCENE_INDEX_H
8
9#include "pxr/pxr.h"
10#include "pxr/usdImaging/usdImaging/api.h"
11#include "pxr/imaging/hd/filteringSceneIndex.h"
12
13PXR_NAMESPACE_OPEN_SCOPE
14
16
25{
26public:
27 USDIMAGING_API
28 static UsdImagingMaterialBindingsResolvingSceneIndexRefPtr
29 New(const HdSceneIndexBaseRefPtr &inputSceneIndex,
30 const HdContainerDataSourceHandle &inputArgs);
31
32 USDIMAGING_API
34
35 USDIMAGING_API
36 HdSceneIndexPrim GetPrim(const SdfPath &primPath) const override;
37 USDIMAGING_API
38 SdfPathVector GetChildPrimPaths(const SdfPath &primPath) const override;
39
40protected:
42 const HdSceneIndexBaseRefPtr &inputSceneIndex,
43 const HdContainerDataSourceHandle &inputArgs);
44
45 void _PrimsAdded(
46 const HdSceneIndexBase &sender,
47 const HdSceneIndexObserver::AddedPrimEntries &entries) override;
48
49 void _PrimsRemoved(
50 const HdSceneIndexBase &sender,
51 const HdSceneIndexObserver::RemovedPrimEntries &entries) override;
52
53 void _PrimsDirtied(
54 const HdSceneIndexBase &sender,
55 const HdSceneIndexObserver::DirtiedPrimEntries &entries) override;
56};
57
58PXR_NAMESPACE_CLOSE_SCOPE
59
60#endif // PXR_USD_IMAGING_USD_IMAGING_GL_MATERIAL_BINDINGS_RESOLVING_SCENE_INDEX_H
Abstract interface to scene data.
Definition: sceneIndex.h:54
An abstract base class for a filtering scene index that observes a single input scene index.
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
Scene index that computes the resolved material binding for a given purpose from the flattened direct...
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.
Definition: declarePtrs.h:58
Small struct representing a 'prim' in the Hydra scene index.
Definition: sceneIndex.h:35