HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dataSourceLegacyTaskPrim.h
Go to the documentation of this file.
1 //
2 // Copyright 2025 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_IMAGING_HD_DATA_SOURCE_LEGACY_TASK_PRIM_H
8 #define PXR_IMAGING_HD_DATA_SOURCE_LEGACY_TASK_PRIM_H
9 
10 #include "pxr/usd/sdf/path.h"
11 
12 #include "pxr/imaging/hd/api.h"
14 
15 #include "pxr/pxr.h"
16 
18 
19 using HdLegacyTaskFactorySharedPtr = std::shared_ptr<class HdLegacyTaskFactory>;
20 class HdSceneDelegate;
21 
22 /// \class HdDataSourceLegacyTaskPrim
23 ///
24 /// This is an HdContainerDataSource which represents a prim-level data source
25 /// for a task for adapting HdSceneDelegate calls into the forms defined by
26 /// HdSchemas during emulation of legacy scene delegates.
27 ///
29 {
30 public:
32 
33  ~HdDataSourceLegacyTaskPrim() override;
34 
35  TfTokenVector GetNames() override;
36  HdDataSourceBaseHandle Get(const TfToken &name) override;
37 
38 private:
40  const SdfPath& id,
41  HdSceneDelegate *sceneDelegate,
43 
44  const SdfPath _id;
45  HdSceneDelegate * const _sceneDelegate;
46  HdLegacyTaskFactorySharedPtr const _factory;
47 };
48 
50 
52 
53 #endif
HD_DECLARE_DATASOURCE(HdDataSourceLegacyTaskPrim)
HD_DECLARE_DATASOURCE_HANDLES(HdDataSourceLegacyTaskPrim)
Definition: token.h:70
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440
GLuint const GLchar * name
Definition: glcorearb.h:786
Definition: path.h:273
~HdDataSourceLegacyTaskPrim() override
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
HdDataSourceBaseHandle Get(const TfToken &name) override
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
std::shared_ptr< class HdLegacyTaskFactory > HdLegacyTaskFactorySharedPtr
TfTokenVector GetNames() override