|
HDK
|
#include <sceneGlobalsSchema.h>
Inheritance diagram for HdSceneGlobalsSchema:Classes | |
| class | Builder |
Public Member Functions | |
Member accessor | |
| HD_API HdPathDataSourceHandle | GetPrimaryCameraPrim () const |
| HD_API HdPathDataSourceHandle | GetActiveRenderPassPrim () const |
| HD_API HdPathDataSourceHandle | GetActiveRenderSettingsPrim () const |
| HD_API HdDoubleDataSourceHandle | GetStartTimeCode () const |
| HD_API HdDoubleDataSourceHandle | GetEndTimeCode () const |
| HD_API HdDoubleDataSourceHandle | GetTimeCodesPerSecond () const |
| HD_API HdDoubleDataSourceHandle | GetCurrentFrame () const |
| HD_API HdIntDataSourceHandle | GetSceneStateId () const |
Public Member Functions inherited from HdSchema | |
| HdSchema (HdContainerDataSourceHandle container) | |
| HD_API HdContainerDataSourceHandle | GetContainer () const |
| Returns the container data source that this schema is interpreting. More... | |
| HD_API bool | IsDefined () const |
| operator bool () const | |
Static Public Member Functions | |
| static HD_API HdSceneGlobalsSchema | GetFromSceneIndex (const HdSceneIndexBaseRefPtr &si) |
| static const SdfPath & | GetDefaultPrimPath () |
Schema location | |
| static HD_API const TfToken & | GetSchemaToken () |
| static HD_API const HdDataSourceLocator & | GetDefaultLocator () |
Data source locators for members | |
The following methods return an HdDataSourceLocator (relative to the prim-level data source) where the data source for a member can be found. This is often useful for checking intersection against the HdDataSourceLocatorSet sent with HdDataSourceObserver::PrimsDirtied. | |
| static HD_API const HdDataSourceLocator & | GetPrimaryCameraPrimLocator () |
| Prim-level relative data source locator to locate primaryCameraPrim. More... | |
| static HD_API const HdDataSourceLocator & | GetActiveRenderPassPrimLocator () |
| Prim-level relative data source locator to locate activeRenderPassPrim. More... | |
| static HD_API const HdDataSourceLocator & | GetActiveRenderSettingsPrimLocator () |
| Prim-level relative data source locator to locate activeRenderSettingsPrim. More... | |
| static HD_API const HdDataSourceLocator & | GetStartTimeCodeLocator () |
| Prim-level relative data source locator to locate startTimeCode. More... | |
| static HD_API const HdDataSourceLocator & | GetEndTimeCodeLocator () |
| Prim-level relative data source locator to locate endTimeCode. More... | |
| static HD_API const HdDataSourceLocator & | GetTimeCodesPerSecondLocator () |
| Prim-level relative data source locator to locate timeCodesPerSecond. More... | |
| static HD_API const HdDataSourceLocator & | GetCurrentFrameLocator () |
| Prim-level relative data source locator to locate currentFrame. More... | |
| static HD_API const HdDataSourceLocator & | GetSceneStateIdLocator () |
| Prim-level relative data source locator to locate sceneStateId. More... | |
Schema construction | |
| static HD_API HdContainerDataSourceHandle | BuildRetained (const HdPathDataSourceHandle &primaryCameraPrim, const HdPathDataSourceHandle &activeRenderPassPrim, const HdPathDataSourceHandle &activeRenderSettingsPrim, const HdDoubleDataSourceHandle &startTimeCode, const HdDoubleDataSourceHandle &endTimeCode, const HdDoubleDataSourceHandle &timeCodesPerSecond, const HdDoubleDataSourceHandle ¤tFrame, const HdIntDataSourceHandle &sceneStateId) |
Schema retrieval | |
| HdSceneGlobalsSchema (HdContainerDataSourceHandle container) | |
| static HD_API HdSceneGlobalsSchema | GetFromParent (const HdContainerDataSourceHandle &fromParentContainer) |
Additional Inherited Members | |
Public Types inherited from HdSchema | |
| using | UnderlyingDataSource = HdContainerDataSource |
Protected Member Functions inherited from HdSchema | |
| template<typename T > | |
| T::Handle | _GetTypedDataSource (TfToken name) const |
Protected Attributes inherited from HdSchema | |
| HdContainerDataSourceHandle | _container |
Definition at line 67 of file sceneGlobalsSchema.h.
|
inline |
Retrieves a container data source with the schema's default name token "sceneGlobals" from the parent container and constructs a HdSceneGlobalsSchema instance. Because the requested container data source may not exist, the result should be checked with IsDefined() or a bool comparison before use.
Definition at line 73 of file sceneGlobalsSchema.h.
|
static |
Builds a container data source which includes the provided child data sources. Parameters with nullptr values are excluded. This is a low-level interface. For cases in which it's desired to define the container with a sparse set of child fields, the Builder class is often more convenient and readable.
| HD_API HdPathDataSourceHandle HdSceneGlobalsSchema::GetActiveRenderPassPrim | ( | ) | const |
|
static |
Prim-level relative data source locator to locate activeRenderPassPrim.
| HD_API HdPathDataSourceHandle HdSceneGlobalsSchema::GetActiveRenderSettingsPrim | ( | ) | const |
|
static |
Prim-level relative data source locator to locate activeRenderSettingsPrim.
| HD_API HdDoubleDataSourceHandle HdSceneGlobalsSchema::GetCurrentFrame | ( | ) | const |
|
static |
Prim-level relative data source locator to locate currentFrame.
|
static |
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container representing this schema is found by default.
|
inlinestatic |
Utility method to concretize the convention of parking the "sceneGlobals" container at the root prim of the scene index.
Definition at line 103 of file sceneGlobalsSchema.h.
| HD_API HdDoubleDataSourceHandle HdSceneGlobalsSchema::GetEndTimeCode | ( | ) | const |
|
static |
Prim-level relative data source locator to locate endTimeCode.
|
static |
Retrieves a container data source with the schema's default name token "sceneGlobals" from the parent container and constructs a HdSceneGlobalsSchema instance. Because the requested container data source may not exist, the result should be checked with IsDefined() or a bool comparison before use.
|
static |
Constructs and returns a HdSceneGlobalsSchema from the root prim in the scene index. Since the root prim might not have a data source for this schema, the result should be checked with IsDefined() or a bool conversion before use.
| HD_API HdPathDataSourceHandle HdSceneGlobalsSchema::GetPrimaryCameraPrim | ( | ) | const |
|
static |
Prim-level relative data source locator to locate primaryCameraPrim.
| HD_API HdIntDataSourceHandle HdSceneGlobalsSchema::GetSceneStateId | ( | ) | const |
|
static |
Prim-level relative data source locator to locate sceneStateId.
Returns a token where the container representing this schema is found in a container by default.
| HD_API HdDoubleDataSourceHandle HdSceneGlobalsSchema::GetStartTimeCode | ( | ) | const |
|
static |
Prim-level relative data source locator to locate startTimeCode.
| HD_API HdDoubleDataSourceHandle HdSceneGlobalsSchema::GetTimeCodesPerSecond | ( | ) | const |
|
static |
Prim-level relative data source locator to locate timeCodesPerSecond.