35#ifndef PXR_IMAGING_HD_SCENE_GLOBALS_SCHEMA_H
36#define PXR_IMAGING_HD_SCENE_GLOBALS_SCHEMA_H
40#include "pxr/imaging/hd/api.h"
42#include "pxr/imaging/hd/schema.h"
45#include "pxr/usd/sdf/path.h"
46#include "pxr/imaging/hd/sceneIndex.h"
49PXR_NAMESPACE_OPEN_SCOPE
54#define HD_SCENE_GLOBALS_SCHEMA_TOKENS \
56 (activeRenderPassPrim) \
57 (activeRenderSettingsPrim) \
62 HD_SCENE_GLOBALS_SCHEMA_TOKENS);
78class HdSceneGlobalsSchema :
public HdSchema
84 HdSceneGlobalsSchema(HdContainerDataSourceHandle container)
93 static HdSceneGlobalsSchema GetFromParent(
94 const HdContainerDataSourceHandle &fromParentContainer);
107 static HdSceneGlobalsSchema
109 const HdSceneIndexBaseRefPtr &si);
114 GetDefaultPrimPath() {
124 HdPathDataSourceHandle GetActiveRenderPassPrim()
const;
127 HdPathDataSourceHandle GetActiveRenderSettingsPrim()
const;
130 HdDoubleDataSourceHandle GetStartTimeCode()
const;
133 HdDoubleDataSourceHandle GetEndTimeCode()
const;
143 static const TfToken &GetSchemaToken();
189 static HdContainerDataSourceHandle
191 const HdPathDataSourceHandle &activeRenderPassPrim,
192 const HdPathDataSourceHandle &activeRenderSettingsPrim,
193 const HdDoubleDataSourceHandle &startTimeCode,
194 const HdDoubleDataSourceHandle &endTimeCode
207 Builder &SetActiveRenderPassPrim(
208 const HdPathDataSourceHandle &activeRenderPassPrim);
210 Builder &SetActiveRenderSettingsPrim(
211 const HdPathDataSourceHandle &activeRenderSettingsPrim);
214 const HdDoubleDataSourceHandle &startTimeCode);
217 const HdDoubleDataSourceHandle &endTimeCode);
221 HdContainerDataSourceHandle
Build();
224 HdPathDataSourceHandle _activeRenderPassPrim;
225 HdPathDataSourceHandle _activeRenderSettingsPrim;
226 HdDoubleDataSourceHandle _startTimeCode;
227 HdDoubleDataSourceHandle _endTimeCode;
234PXR_NAMESPACE_CLOSE_SCOPE
Represents an object that can identify the location of a data source.
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Schema classes represent a structured view of the inherently unstructured container data source passe...
A path value used to locate objects in layers or scenegraphs.
static SDF_API const SdfPath & AbsoluteRootPath()
The absolute path representing the top of the namespace hierarchy.
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.