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 (activeRenderSettingsPrim) \
61 HD_SCENE_GLOBALS_SCHEMA_TOKENS);
77class HdSceneGlobalsSchema :
public HdSchema
83 HdSceneGlobalsSchema(HdContainerDataSourceHandle container)
92 static HdSceneGlobalsSchema GetFromParent(
93 const HdContainerDataSourceHandle &fromParentContainer);
106 static HdSceneGlobalsSchema
108 const HdSceneIndexBaseRefPtr &si);
113 GetDefaultPrimPath() {
123 HdPathDataSourceHandle GetActiveRenderSettingsPrim()
const;
126 HdDoubleDataSourceHandle GetStartTimeCode()
const;
129 HdDoubleDataSourceHandle GetEndTimeCode()
const;
139 static const TfToken &GetSchemaToken();
181 static HdContainerDataSourceHandle
183 const HdPathDataSourceHandle &activeRenderSettingsPrim,
184 const HdDoubleDataSourceHandle &startTimeCode,
185 const HdDoubleDataSourceHandle &endTimeCode
198 Builder &SetActiveRenderSettingsPrim(
199 const HdPathDataSourceHandle &activeRenderSettingsPrim);
202 const HdDoubleDataSourceHandle &startTimeCode);
205 const HdDoubleDataSourceHandle &endTimeCode);
209 HdContainerDataSourceHandle
Build();
212 HdPathDataSourceHandle _activeRenderSettingsPrim;
213 HdDoubleDataSourceHandle _startTimeCode;
214 HdDoubleDataSourceHandle _endTimeCode;
221PXR_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.