HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sceneIndices.h
Go to the documentation of this file.
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 
11 #include "pxr/pxr.h"
12 
14 
18 
20 
25 
26 /// Info needed to create a chain of filtering scene indices (resolving
27 /// e.g. USD native instancing) for clients to consume a UsdStage.
29 {
31  std::function<
32  HdSceneIndexBaseRefPtr(HdSceneIndexBaseRefPtr const &)>;
33 
34  /// Stage. Note that it can be set after the scene indices have been
35  /// created later by UsdImagingStageSceneIndex::SetStage.
36  UsdStageRefPtr stage;
37  /// Inputs to UsdImagingStageSceneIndex (note that
38  /// includeUnloadedPrims is set automatically when
39  ///displayUnloadedPrimsWithBounds is enabled).
40  HdContainerDataSourceHandle stageSceneIndexInputArgs;
41  /// Add scene index resolving usd draw mode.
42  bool addDrawModeSceneIndex = true;
43  /// Should we switch the draw mode for unloaded prims to
44  /// bounds.
46  /// A client can insert scene indices after stage scene index.
48 };
49 
50 /// Some scene indices in the chain of filtering scene indices created
51 /// by UsdImagingInstantiateSceneIndices.
53 {
54  UsdImagingStageSceneIndexRefPtr stageSceneIndex;
55  HdNoticeBatchingSceneIndexRefPtr postInstancingNoticeBatchingSceneIndex;
56  UsdImagingSelectionSceneIndexRefPtr selectionSceneIndex;
57  HdSceneIndexBaseRefPtr finalSceneIndex;
58 };
59 
60 /// Creates a chain of filtering scene indices for clients to consume
61 /// a UsdStage.
65  const UsdImagingCreateSceneIndicesInfo &createInfo);
66 
68 
69 #endif
bool addDrawModeSceneIndex
Add scene index resolving usd draw mode.
Definition: sceneIndices.h:42
#define USDIMAGING_API
Definition: api.h:23
std::function< HdSceneIndexBaseRefPtr(HdSceneIndexBaseRefPtr const &)> SceneIndexAppendCallback
Definition: sceneIndices.h:32
UsdImagingSelectionSceneIndexRefPtr selectionSceneIndex
Definition: sceneIndices.h:56
USDIMAGING_API UsdImagingSceneIndices UsdImagingCreateSceneIndices(const UsdImagingCreateSceneIndicesInfo &createInfo)
HdContainerDataSourceHandle stageSceneIndexInputArgs
Definition: sceneIndices.h:40
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
PXR_NAMESPACE_OPEN_SCOPE TF_DECLARE_REF_PTRS(HdNoticeBatchingSceneIndex)
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
HdSceneIndexBaseRefPtr finalSceneIndex
Definition: sceneIndices.h:57
SceneIndexAppendCallback overridesSceneIndexCallback
A client can insert scene indices after stage scene index.
Definition: sceneIndices.h:47
HdNoticeBatchingSceneIndexRefPtr postInstancingNoticeBatchingSceneIndex
Definition: sceneIndices.h:55
UsdImagingStageSceneIndexRefPtr stageSceneIndex
Definition: sceneIndices.h:54