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"
16PXR_NAMESPACE_OPEN_SCOPE
21#define HDSI_SGSI_API_VERSION 2
33 static HdsiSceneGlobalsSceneIndexRefPtr
34 New(
const HdSceneIndexBaseRefPtr &inputSceneIndex);
109 friend class _SceneGlobalsDataSource;
111 SdfPath _activeRenderPassPrimPath;
112 std::optional<SdfPath> _activeRenderSettingsPrimPath;
113 std::optional<SdfPath> _primaryCameraPrimPath;
114 double _time = std::numeric_limits<double>::quiet_NaN();
115 double _timeCodesPerSecond = 24.0;
116 int _sceneStateId = 0;
119PXR_NAMESPACE_CLOSE_SCOPE
Abstract interface to scene data.
Scene index that populates the "sceneGlobals" data source as modeled by HdSceneGlobalsSchema and prov...
HDSI_API void SetTimeCodesPerSecond(double)
Set the timeCodesPerSecond to use the as the currentFrame in the scene globals schema.
HDSI_API void SetPrimaryCameraPrimPath(const SdfPath &)
Set the path to use as the primaryCameraPrim in the scene globals schema.
HDSI_API HdSceneIndexPrim GetPrim(const SdfPath &primPath) const override final
Returns a pair of (prim type, datasource).
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 void SetSceneStateId(int)
Injects an arbitrary value that identifies the state of the input scene at that point in time.
HDSI_API void SetCurrentFrame(double)
Set the frame number to use the as the currentFrame in the scene globals schema.
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.