Loading...
Searching...
No Matches
sceneIndices.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//
7#ifndef PXR_USD_IMAGING_USD_IMAGING_SCENE_INDICES_H
8#define PXR_USD_IMAGING_USD_IMAGING_SCENE_INDICES_H
9
10#include "pxr/imaging/hd/noticeBatchingSceneIndex.h"
11#include "pxr/pxr.h"
12
13#include "pxr/usdImaging/usdImaging/api.h"
14
15#include "pxr/imaging/hd/dataSource.h"
16#include "pxr/imaging/hd/sceneIndex.h"
18
19PXR_NAMESPACE_OPEN_SCOPE
20
21TF_DECLARE_REF_PTRS(HdNoticeBatchingSceneIndex);
23TF_DECLARE_REF_PTRS(UsdImagingStageSceneIndex);
25
29{
30 using SceneIndexAppendCallback =
31 std::function<
32 HdSceneIndexBaseRefPtr(HdSceneIndexBaseRefPtr const &)>;
33
36 UsdStageRefPtr stage;
40 HdContainerDataSourceHandle stageSceneIndexInputArgs;
47 SceneIndexAppendCallback overridesSceneIndexCallback;
48};
49
53{
54 UsdImagingStageSceneIndexRefPtr stageSceneIndex;
55 HdNoticeBatchingSceneIndexRefPtr postInstancingNoticeBatchingSceneIndex;
56 UsdImagingSelectionSceneIndexRefPtr selectionSceneIndex;
57 HdSceneIndexBaseRefPtr finalSceneIndex;
58};
59
62USDIMAGING_API
64UsdImagingCreateSceneIndices(
65 const UsdImagingCreateSceneIndicesInfo &createInfo);
66
67PXR_NAMESPACE_CLOSE_SCOPE
68
69#endif
A simple scene index adding HdSelectionsSchema to all prims selected with AddSelection.
The outermost container for scene description, which owns and presents composed prims as a scenegraph...
Definition: stage.h:136
Standard pointer typedefs.
#define TF_DECLARE_REF_PTRS(type)
Define standard ref pointer types.
Definition: declarePtrs.h:58
Info needed to create a chain of filtering scene indices (resolving e.g.
Definition: sceneIndices.h:29
HdContainerDataSourceHandle stageSceneIndexInputArgs
Inputs to UsdImagingStageSceneIndex (note that includeUnloadedPrims is set automatically when display...
Definition: sceneIndices.h:40
bool addDrawModeSceneIndex
Add scene index resolving usd draw mode.
Definition: sceneIndices.h:42
bool displayUnloadedPrimsWithBounds
Should we switch the draw mode for unloaded prims to bounds.
Definition: sceneIndices.h:45
SceneIndexAppendCallback overridesSceneIndexCallback
A client can insert scene indices after stage scene index.
Definition: sceneIndices.h:47
UsdStageRefPtr stage
Stage.
Definition: sceneIndices.h:36
Some scene indices in the chain of filtering scene indices created by UsdImagingCreateSceneIndices.
Definition: sceneIndices.h:53