This document is for a version of USD that is under development. See this page for the current release.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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/pxr.h"
11
12#include "pxr/usdImaging/usdImaging/api.h"
13
14#include "pxr/imaging/hd/dataSource.h"
15#include "pxr/imaging/hd/sceneIndex.h"
17
18PXR_NAMESPACE_OPEN_SCOPE
19
21TF_DECLARE_REF_PTRS(UsdImagingStageSceneIndex);
23
27{
28 using SceneIndexAppendCallback =
29 std::function<
30 HdSceneIndexBaseRefPtr(HdSceneIndexBaseRefPtr const &)>;
31
34 UsdStageRefPtr stage;
38 HdContainerDataSourceHandle stageSceneIndexInputArgs;
45 SceneIndexAppendCallback overridesSceneIndexCallback;
46};
47
51{
52 UsdImagingStageSceneIndexRefPtr stageSceneIndex;
53 UsdImagingSelectionSceneIndexRefPtr selectionSceneIndex;
54 HdSceneIndexBaseRefPtr finalSceneIndex;
55};
56
59USDIMAGING_API
61UsdImagingCreateSceneIndices(
62 const UsdImagingCreateSceneIndicesInfo &createInfo);
63
64PXR_NAMESPACE_CLOSE_SCOPE
65
66#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:27
HdContainerDataSourceHandle stageSceneIndexInputArgs
Inputs to UsdImagingStageSceneIndex (note that includeUnloadedPrims is set automatically when display...
Definition: sceneIndices.h:38
bool addDrawModeSceneIndex
Add scene index resolving usd draw mode.
Definition: sceneIndices.h:40
bool displayUnloadedPrimsWithBounds
Should we switch the draw mode for unloaded prims to bounds.
Definition: sceneIndices.h:43
SceneIndexAppendCallback overridesSceneIndexCallback
A client can insert scene indices after stage scene index.
Definition: sceneIndices.h:45
UsdStageRefPtr stage
Stage.
Definition: sceneIndices.h:34
Some scene indices in the chain of filtering scene indices created by UsdImagingInstantiateSceneIndic...
Definition: sceneIndices.h:51