dataSourceUsdPrimInfo.h
1 //
2 // Copyright 2023 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 
8 #ifndef PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_USD_PRIM_INFO_H
9 #define PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_USD_PRIM_INFO_H
10 
11 #include "pxr/imaging/hd/dataSource.h"
12 #include "pxr/usd/usd/prim.h"
13 
14 PXR_NAMESPACE_OPEN_SCOPE
15 
21 {
22 public:
23  HD_DECLARE_DATASOURCE(UsdImagingDataSourceUsdPrimInfo);
24 
25  TfTokenVector GetNames() override;
26  HdDataSourceBaseHandle Get(const TfToken &name) override;
27 
29 
30 private:
32 
33 private:
34  UsdPrim _usdPrim;
35 };
36 
37 HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceUsdPrimInfo);
38 
39 PXR_NAMESPACE_CLOSE_SCOPE
40 
41 #endif // PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_USD_H
A datasource representing structured (named, hierarchical) data, for example a geometric primitive or...
Definition: dataSource.h:147
A container data source containing metadata such as the specifier of a prim of native instancing info...
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:80
TfTokenVector GetNames() override
Returns the list of names for which Get(...) is expected to return a non-null value.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
Definition: prim.h:116
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:489
HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the child datasource of the given name.