All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
dataSourceStage.h
1//
2// Copyright 2022 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_STAGE_H
8#define PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_STAGE_H
9
10#include "pxr/imaging/hd/dataSource.h"
11#include "pxr/usdImaging/usdImaging/api.h"
12
14
15#include "pxr/pxr.h"
16
17PXR_NAMESPACE_OPEN_SCOPE
18
20
24{
25public:
26 HD_DECLARE_DATASOURCE(UsdImagingDataSourceStage);
27
28public: // HdContainerDataSource overrides
29 USDIMAGING_API
31
32 USDIMAGING_API
33 HdDataSourceBaseHandle Get(const TfToken& name) override;
34
35private:
36 UsdImagingDataSourceStage(UsdStageRefPtr stage);
37
38 UsdStageRefPtr _stage;
39};
40
41HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceStage);
42
43PXR_NAMESPACE_CLOSE_SCOPE
44
45#endif
A datasource representing structured (named, hierarchical) data, for example a geometric primitive or...
Definition: dataSource.h:99
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
Returns a dataSource that contains UsdStage level data.
USDIMAGING_API TfTokenVector GetNames() override
Returns the list of names for which Get(...) is expected to return a non-null value.
USDIMAGING_API HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the child datasource of the given name.
The outermost container for scene description, which owns and presents composed prims as a scenegraph...
Definition: stage.h:136
Standard pointer typedefs.
#define TF_DECLARE_REF_PTRS(type)
Define standard ref pointer types.
Definition: declarePtrs.h:58
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440