7#ifndef PXR_IMAGING_HDSI_LEGACY_DISPLAY_STYLE_OVERRIDE_SCENE_INDEX_H
8#define PXR_IMAGING_HDSI_LEGACY_DISPLAY_STYLE_OVERRIDE_SCENE_INDEX_H
11#include "pxr/imaging/hdsi/api.h"
12#include "pxr/imaging/hd/filteringSceneIndex.h"
14PXR_NAMESPACE_OPEN_SCOPE
16namespace HdsiLegacyDisplayStyleSceneIndex_Impl
19using _StyleInfoSharedPtr = std::shared_ptr<_StyleInfo>;
35 static HdsiLegacyDisplayStyleOverrideSceneIndexRefPtr
36 New(
const HdSceneIndexBaseRefPtr &inputSceneIndex);
47 bool hasValue =
false;
50 operator bool()
const {
return hasValue; }
51 int operator*()
const {
return value; }
65 const HdSceneIndexBaseRefPtr &inputSceneIndex);
82 HdsiLegacyDisplayStyleSceneIndex_Impl::
83 _StyleInfoSharedPtr
const _styleInfo;
86 HdContainerDataSourceHandle
const _overlayDs;
99PXR_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.