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);
25
26using UsdImagingSceneIndexAppendCallback =
27 std::function<
28 HdSceneIndexBaseRefPtr(HdSceneIndexBaseRefPtr const &)>;
29
33{
34 using SceneIndexAppendCallback = UsdImagingSceneIndexAppendCallback;
35
38 UsdStageRefPtr stage;
42 HdContainerDataSourceHandle stageSceneIndexInputArgs;
49 SceneIndexAppendCallback overridesSceneIndexCallback;
50};
51
55{
56 UsdImagingStageSceneIndexRefPtr stageSceneIndex;
57 HdNoticeBatchingSceneIndexRefPtr postInstancingNoticeBatchingSceneIndex;
58 UsdImagingSelectionSceneIndexRefPtr selectionSceneIndex;
59 HdSceneIndexBaseRefPtr finalSceneIndex;
60};
61
64USDIMAGING_API
66UsdImagingCreateSceneIndices(
67 const UsdImagingCreateSceneIndicesInfo &createInfo);
68
79USDIMAGING_API
81UsdImagingCreateSceneIndices(
82 HdContainerDataSourceHandle const &inputArgs,
83 const UsdImagingSceneIndexAppendCallback &overridesSceneIndexCallback);
84
85PXR_NAMESPACE_CLOSE_SCOPE
86
87#endif
A simple scene index adding HdSelectionsSchema to all prims selected with AddSelection.
A scene index consuming a UsdStage.
The outermost container for scene description, which owns and presents composed prims as a scenegraph...
Definition: stage.h:137
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:33
HdContainerDataSourceHandle stageSceneIndexInputArgs
Inputs to UsdImagingStageSceneIndex (note that includeUnloadedPrims is set automatically when display...
Definition: sceneIndices.h:42
bool addDrawModeSceneIndex
Add scene index resolving usd draw mode.
Definition: sceneIndices.h:44
bool displayUnloadedPrimsWithBounds
Should we switch the draw mode for unloaded prims to bounds.
Definition: sceneIndices.h:47
SceneIndexAppendCallback overridesSceneIndexCallback
A client can insert scene indices after stage scene index.
Definition: sceneIndices.h:49
UsdStageRefPtr stage
Stage.
Definition: sceneIndices.h:38
Some scene indices in the chain of filtering scene indices created by UsdImagingCreateSceneIndices.
Definition: sceneIndices.h:55