Loading...
Searching...
No Matches
legacyPrimSceneIndex.h
1//
2// Copyright 2021 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_IMAGING_HD_LEGACY_PRIM_SCENE_INDEX_H
8#define PXR_IMAGING_HD_LEGACY_PRIM_SCENE_INDEX_H
9
10#include "pxr/imaging/hd/retainedSceneIndex.h"
11
12PXR_NAMESPACE_OPEN_SCOPE
13
14class HdSceneDelegate;
15
17
27{
28public:
29
30 static HdLegacyPrimSceneIndexRefPtr New() {
31 return TfCreateRefPtr(new HdLegacyPrimSceneIndex);
32 }
33
36 void AddLegacyPrim(SdfPath const &id, TfToken const &type,
37 HdSceneDelegate *sceneDelegate);
38
49 void RemovePrim(SdfPath const &id);
50
53 const HdSceneIndexObserver::DirtiedPrimEntries &entries) override;
54};
55
56PXR_NAMESPACE_CLOSE_SCOPE
57
58#endif
Extends HdRetainedSceneIndex to instantiate and dirty HdDataSourceLegacyPrim data sources.
void DirtyPrims(const HdSceneIndexObserver::DirtiedPrimEntries &entries) override
extends to also call DirtyPrim on HdDataSourceLegacyPrim
void RemovePrim(SdfPath const &id)
Remove only the prim at id without affecting children.
void AddLegacyPrim(SdfPath const &id, TfToken const &type, HdSceneDelegate *sceneDelegate)
custom insertion wrapper called by HdRenderIndex during population of legacy HdSceneDelegates
Concrete scene container which can be externally populated and dirtied.
Adapter class providing data exchange with the client scene graph.
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
#define TF_DECLARE_REF_PTRS(type)
Define standard ref pointer types.
Definition: declarePtrs.h:58