Loading...
Searching...
No Matches
extComputationDependencySceneIndex.h
1
2//
3// Copyright 2024 Pixar
4//
5// Licensed under the terms set forth in the LICENSE.txt file available at
6// https://openusd.org/license.
7//
8#ifndef PXR_IMAGING_HDSI_EXT_COMPUTATION_DEPENDENCY_SCENE_INDEX_H
9#define PXR_IMAGING_HDSI_EXT_COMPUTATION_DEPENDENCY_SCENE_INDEX_H
10
11#include "pxr/imaging/hdsi/api.h"
12#include "pxr/imaging/hd/filteringSceneIndex.h"
13
14PXR_NAMESPACE_OPEN_SCOPE
15
17
42{
43public:
44 HDSI_API
45 static HdsiExtComputationDependencySceneIndexRefPtr
46 New(const HdSceneIndexBaseRefPtr &inputSceneIndex);
47
48 HDSI_API
49 HdSceneIndexPrim GetPrim(const SdfPath &primPath) const override;
50
51 HDSI_API
52 SdfPathVector GetChildPrimPaths(const SdfPath &primPath) const override;
53
54protected:
55 HDSI_API
56 void _PrimsAdded(
57 const HdSceneIndexBase &sender,
58 const HdSceneIndexObserver::AddedPrimEntries &entries) override;
59
60 HDSI_API
61 void _PrimsRemoved(
62 const HdSceneIndexBase &sender,
63 const HdSceneIndexObserver::RemovedPrimEntries &entries) override;
64
65 HDSI_API
66 void _PrimsDirtied(
67 const HdSceneIndexBase &sender,
68 const HdSceneIndexObserver::DirtiedPrimEntries &entries) override;
69
70 HDSI_API
72 const HdSceneIndexBaseRefPtr &inputSceneIndex);
73
74};
75
76PXR_NAMESPACE_CLOSE_SCOPE
77
78#endif //PXR_IMAGING_HDSI_EXT_COMPUTATION_PRIMVAR_PRUNING_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.
Adds dependencies to dependencies schema for ext computations.
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_WEAK_AND_REF_PTRS(type)
Define standard weak, ref, and vector pointer types.
Definition: declarePtrs.h:72
Small struct representing a 'prim' in the Hydra scene index.
Definition: sceneIndex.h:35