18#ifndef PXR_IMAGING_HD_SCENE_GLOBALS_SCHEMA_H
19#define PXR_IMAGING_HD_SCENE_GLOBALS_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
25#include "pxr/imaging/hd/schema.h"
28#include "pxr/usd/sdf/path.h"
29#include "pxr/imaging/hd/sceneIndex.h"
32PXR_NAMESPACE_OPEN_SCOPE
37#define HD_SCENE_GLOBALS_SCHEMA_TOKENS \
39 (activeRenderPassPrim) \
40 (activeRenderSettingsPrim) \
46 HD_SCENE_GLOBALS_SCHEMA_TOKENS);
63class HdSceneGlobalsSchema :
public HdSchema
69 HdSceneGlobalsSchema(HdContainerDataSourceHandle container)
78 static HdSceneGlobalsSchema GetFromParent(
79 const HdContainerDataSourceHandle &fromParentContainer);
92 static HdSceneGlobalsSchema
94 const HdSceneIndexBaseRefPtr &si);
99 GetDefaultPrimPath() {
109 HdPathDataSourceHandle GetActiveRenderPassPrim()
const;
112 HdPathDataSourceHandle GetActiveRenderSettingsPrim()
const;
115 HdDoubleDataSourceHandle GetStartTimeCode()
const;
118 HdDoubleDataSourceHandle GetEndTimeCode()
const;
121 HdDoubleDataSourceHandle GetCurrentFrame()
const;
131 static const TfToken &GetSchemaToken();
181 static HdContainerDataSourceHandle
183 const HdPathDataSourceHandle &activeRenderPassPrim,
184 const HdPathDataSourceHandle &activeRenderSettingsPrim,
185 const HdDoubleDataSourceHandle &startTimeCode,
186 const HdDoubleDataSourceHandle &endTimeCode,
187 const HdDoubleDataSourceHandle ¤tFrame
200 Builder &SetActiveRenderPassPrim(
201 const HdPathDataSourceHandle &activeRenderPassPrim);
203 Builder &SetActiveRenderSettingsPrim(
204 const HdPathDataSourceHandle &activeRenderSettingsPrim);
207 const HdDoubleDataSourceHandle &startTimeCode);
210 const HdDoubleDataSourceHandle &endTimeCode);
213 const HdDoubleDataSourceHandle ¤tFrame);
217 HdContainerDataSourceHandle
Build();
220 HdPathDataSourceHandle _activeRenderPassPrim;
221 HdPathDataSourceHandle _activeRenderSettingsPrim;
222 HdDoubleDataSourceHandle _startTimeCode;
223 HdDoubleDataSourceHandle _endTimeCode;
224 HdDoubleDataSourceHandle _currentFrame;
231PXR_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.