Loading...
Searching...
No Matches
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
14PXR_NAMESPACE_OPEN_SCOPE
15
21{
22public:
23 HD_DECLARE_DATASOURCE(UsdImagingDataSourceUsdPrimInfo);
24
26 HdDataSourceBaseHandle Get(const TfToken &name) override;
27
29
30private:
32
33private:
34 UsdPrim _usdPrim;
35};
36
37HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceUsdPrimInfo);
38
39PXR_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:99
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
A container data source containing metadata such as the specifier of a prim of native instancing info...
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.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
Definition: prim.h:117
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440