Loading...
Searching...
No Matches
unloadedDrawModeSceneIndex.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_UNLOADED_DRAW_MODE_SCENE_INDEX_H
7#define PXR_USD_IMAGING_USD_IMAGING_UNLOADED_DRAW_MODE_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
24{
25public:
26
27 USDIMAGING_API
28 static UsdImagingUnloadedDrawModeSceneIndexRefPtr
29 New(HdSceneIndexBaseRefPtr const &inputSceneIndex);
30
31 USDIMAGING_API
33
34 USDIMAGING_API
35 HdSceneIndexPrim GetPrim(const SdfPath &primPath) const override;
36 USDIMAGING_API
37 SdfPathVector GetChildPrimPaths(const SdfPath &primPath) const override;
38
39protected:
41 HdSceneIndexBaseRefPtr const &inputSceneIndex);
42
43 void _PrimsAdded(
44 const HdSceneIndexBase &sender,
45 const HdSceneIndexObserver::AddedPrimEntries &entries) override;
46
47 void _PrimsRemoved(
48 const HdSceneIndexBase &sender,
49 const HdSceneIndexObserver::RemovedPrimEntries &entries) override;
50
51 void _PrimsDirtied(
52 const HdSceneIndexBase &sender,
53 const HdSceneIndexObserver::DirtiedPrimEntries &entries) override;
54};
55
56PXR_NAMESPACE_CLOSE_SCOPE
57
58#endif // PXR_USD_IMAGING_USD_IMAGING_UNLOADED_DRAW_MODE_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
A scene index that sets the draw mode for unloaded prims to show bounding boxes.
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