HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dataSourceStage.h
Go to the documentation of this file.
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 
12 
14 
15 #include "pxr/pxr.h"
16 
18 
20 
21 /// Returns a dataSource that contains UsdStage level data. In particular, this
22 /// populates the HdarSystem data.
24 {
25 public:
27 
28 public: // HdContainerDataSource overrides
30  TfTokenVector GetNames() override;
31 
33  HdDataSourceBaseHandle Get(const TfToken& name) override;
34 
35 private:
36  UsdImagingDataSourceStage(UsdStageRefPtr stage);
37 
38  UsdStageRefPtr _stage;
39 };
40 
42 
44 
45 #endif
#define USDIMAGING_API
Definition: api.h:23
HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceStage)
PXR_NAMESPACE_OPEN_SCOPE TF_DECLARE_REF_PTRS(UsdStage)
USDIMAGING_API HdDataSourceBaseHandle Get(const TfToken &name) override
Definition: token.h:70
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440
USDIMAGING_API TfTokenVector GetNames() override
GLuint const GLchar * name
Definition: glcorearb.h:786
HD_DECLARE_DATASOURCE(UsdImagingDataSourceStage)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74