Loading...
Searching...
No Matches
materialPrimvarTransferSceneIndex.h
1//
2// Copyright 2022 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6#ifndef PXR_IMAGING_HDSI_MATERIAL_PRIMVAR_TRANSFER_SCENE_INDEX_H
7#define PXR_IMAGING_HDSI_MATERIAL_PRIMVAR_TRANSFER_SCENE_INDEX_H
8
9#include "pxr/imaging/hdsi/api.h"
10#include "pxr/imaging/hd/filteringSceneIndex.h"
11
12#include "pxr/pxr.h"
13
14PXR_NAMESPACE_OPEN_SCOPE
15
17
34{
35public:
36 HDSI_API
37 static HdsiMaterialPrimvarTransferSceneIndexRefPtr
38 New(const HdSceneIndexBaseRefPtr& inputSceneIndex);
39
40public: // HdSceneIndex overrides
41 HDSI_API
42 HdSceneIndexPrim GetPrim(const SdfPath& primPath) const override;
43
44 HDSI_API
45 SdfPathVector GetChildPrimPaths(const SdfPath& primPath) const override;
46
47protected: // HdSingleInputFilteringSceneIndexBase overrides
48 void _PrimsAdded(
49 const HdSceneIndexBase& sender,
50 const HdSceneIndexObserver::AddedPrimEntries& entries) override;
51 void _PrimsRemoved(
52 const HdSceneIndexBase& sender,
53 const HdSceneIndexObserver::RemovedPrimEntries& entries) override;
54 void _PrimsDirtied(
55 const HdSceneIndexBase& sender,
56 const HdSceneIndexObserver::DirtiedPrimEntries& entries) override;
57
58private:
60 const HdSceneIndexBaseRefPtr& inputSceneIndex);
62};
63
64PXR_NAMESPACE_CLOSE_SCOPE
65
66#endif
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.
Transfers primvars present on the locally bound material.
HDSI_API HdSceneIndexPrim GetPrim(const SdfPath &primPath) const override
Returns a pair of (prim type, datasource).
HDSI_API SdfPathVector GetChildPrimPaths(const SdfPath &primPath) const override
Returns the paths of all scene index prims located immediately below primPath.
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
#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