Loading...
Searching...
No Matches
dataSourceLegacyTaskPrim.h
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"
13#include "pxr/imaging/hd/dataSource.h"
14
15#include "pxr/pxr.h"
16
17PXR_NAMESPACE_OPEN_SCOPE
18
19using HdLegacyTaskFactorySharedPtr = std::shared_ptr<class HdLegacyTaskFactory>;
20class HdSceneDelegate;
21
29{
30public:
31 HD_DECLARE_DATASOURCE(HdDataSourceLegacyTaskPrim);
32
34
36 HdDataSourceBaseHandle Get(const TfToken &name) override;
37
38private:
40 const SdfPath& id,
41 HdSceneDelegate *sceneDelegate,
42 HdLegacyTaskFactorySharedPtr factory);
43
44 const SdfPath _id;
45 HdSceneDelegate * const _sceneDelegate;
46 HdLegacyTaskFactorySharedPtr const _factory;
47};
48
49HD_DECLARE_DATASOURCE_HANDLES(HdDataSourceLegacyTaskPrim);
50
51PXR_NAMESPACE_CLOSE_SCOPE
52
53#endif
A datasource representing structured (named, hierarchical) data, for example a geometric primitive or...
Definition: dataSource.h:99
This is an HdContainerDataSource which represents a prim-level data source for a task for adapting Hd...
TfTokenVector GetNames() override
Returns the list of names for which Get(...) is expected to return a non-null value.
HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the child datasource of the given name.
Adapter class providing data exchange with the client scene graph.
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440