24#ifndef PXR_IMAGING_HDSI_LEGACY_DISPLAY_STYLE_OVERRIDE_SCENE_INDEX_H
25#define PXR_IMAGING_HDSI_LEGACY_DISPLAY_STYLE_OVERRIDE_SCENE_INDEX_H
28#include "pxr/imaging/hdsi/api.h"
29#include "pxr/imaging/hd/filteringSceneIndex.h"
31PXR_NAMESPACE_OPEN_SCOPE
33namespace HdsiLegacyDisplayStyleSceneIndex_Impl
36using _StyleInfoSharedPtr = std::shared_ptr<_StyleInfo>;
52 static HdsiLegacyDisplayStyleOverrideSceneIndexRefPtr
53 New(
const HdSceneIndexBaseRefPtr &inputSceneIndex);
64 bool hasValue =
false;
67 operator bool()
const {
return hasValue; }
68 int operator*()
const {
return value; }
82 const HdSceneIndexBaseRefPtr &inputSceneIndex);
99 HdsiLegacyDisplayStyleSceneIndex_Impl::
100 _StyleInfoSharedPtr
const _styleInfo;
103 HdContainerDataSourceHandle
const _overlayDs;
116PXR_NAMESPACE_CLOSE_SCOPE
Represents a set of data source locators closed under descendancy.
Abstract interface to scene data.
A scene index overriding the legacy display style for each prim.
HDSI_API HdSceneIndexPrim GetPrim(const SdfPath &primPath) const override
Returns a pair of (prim type, datasource) for the object at primPath.
HDSI_API void SetRefineLevel(const OptionalInt &refineLevel)
Sets the refine level (at data source locator displayStyle:refineLevel) for every prim in the input s...
HDSI_API SdfPathVector GetChildPrimPaths(const SdfPath &primPath) const override
Returns the paths of all scene index prims located immediately below primPath.
A path value used to locate objects in layers or scenegraphs.
#define TF_DECLARE_REF_PTRS(type)
Define standard ref pointer types.
Small struct representing a 'prim' in the Hydra scene index.
A replacement for std::optional<int> that is not available until C++17.