7#ifndef PXR_IMAGING_HDSI_SCENE_GLOBALS_SCENE_INDEX_H
8#define PXR_IMAGING_HDSI_SCENE_GLOBALS_SCENE_INDEX_H
10#include "pxr/imaging/hdsi/api.h"
12#include "pxr/imaging/hd/filteringSceneIndex.h"
13#include "pxr/usd/sdf/path.h"
15PXR_NAMESPACE_OPEN_SCOPE
20#define HDSI_SGSI_API_VERSION 2
31 static HdsiSceneGlobalsSceneIndexRefPtr
32 New(
const HdSceneIndexBaseRefPtr &inputSceneIndex);
52 void SetCurrentFrame(
const double &);
88 friend class _SceneGlobalsDataSource;
90 SdfPath _activeRenderPassPrimPath;
91 SdfPath _activeRenderSettingsPrimPath;
92 double _time = std::numeric_limits<double>::quiet_NaN();
95PXR_NAMESPACE_CLOSE_SCOPE
Abstract interface to scene data.
Scene index that populates a "sceneGlobals" data source as modeled by HdSceneGlobalsSchema and provid...
HDSI_API HdSceneIndexPrim GetPrim(const SdfPath &primPath) const override final
Returns a pair of (prim type, datasource) for the object at primPath.
HDSI_API void SetActiveRenderSettingsPrimPath(const SdfPath &)
Caches the provided path and notifies any observers when the active render settings prim path is modi...
HDSI_API void SetActiveRenderPassPrimPath(const SdfPath &)
Caches the provided path and notifies any observers when the active render pass prim path is modified...
HDSI_API SdfPathVector GetChildPrimPaths(const SdfPath &primPath) const override final
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_WEAK_AND_REF_PTRS(type)
Define standard weak, ref, and vector pointer types.
Small struct representing a 'prim' in the Hydra scene index.