Loading...
Searching...
No Matches
rerootingContainerDataSource.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_USD_IMAGING_USD_IMAGING_REROOTING_CONTAINER_DATA_SOURCE_H
8#define PXR_USD_IMAGING_USD_IMAGING_REROOTING_CONTAINER_DATA_SOURCE_H
9
10#include "pxr/usdImaging/usdImaging/api.h"
11
12#include "pxr/imaging/hd/dataSource.h"
13#include "pxr/usd/sdf/path.h"
14
15
16PXR_NAMESPACE_OPEN_SCOPE
17
24{
25public:
26 HD_DECLARE_DATASOURCE(UsdImagingRerootingContainerDataSource)
27
28 USDIMAGING_API
30
31 USDIMAGING_API
33
34 USDIMAGING_API
35 HdDataSourceBaseHandle Get(const TfToken& name) override;
36
37private:
38 USDIMAGING_API
40 HdContainerDataSourceHandle inputDataSource,
41 const SdfPath &srcPrefix,
42 const SdfPath &dstPrefix);
43
44 HdContainerDataSourceHandle const _inputDataSource;
45 const SdfPath _srcPrefix;
46 const SdfPath _dstPrefix;
47};
48
49PXR_NAMESPACE_CLOSE_SCOPE
50
51#endif
A datasource representing structured (named, hierarchical) data, for example a geometric primitive or...
Definition: dataSource.h:99
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
Calls ReplacePrefix on any path or path array data source in the given container data source.
USDIMAGING_API TfTokenVector GetNames() override
Returns the list of names for which Get(...) is expected to return a non-null value.
USDIMAGING_API HdDataSourceBaseHandle Get(const TfToken &name) override
Returns the child datasource of the given name.
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440