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/pcp/mapFunction.h"
14#include "pxr/usd/sdf/path.h"
15
16
17PXR_NAMESPACE_OPEN_SCOPE
18
25{
26public:
27 HD_DECLARE_DATASOURCE(UsdImagingRerootingContainerDataSource)
28
29 USDIMAGING_API
31
32 USDIMAGING_API
34
35 USDIMAGING_API
36 HdDataSourceBaseHandle Get(const TfToken& name) override;
37
38private:
39 USDIMAGING_API
41 HdContainerDataSourceHandle inputDataSource,
42 PcpMapFunction const& mapFn);
43
44 USDIMAGING_API
46 HdContainerDataSourceHandle inputDataSource,
47 const SdfPath &srcPrefix,
48 const SdfPath &dstPrefix);
49
50 const HdContainerDataSourceHandle _inputDataSource;
51 const PcpMapFunction _mapFn;
52};
53
54PXR_NAMESPACE_CLOSE_SCOPE
55
56#endif
A datasource representing structured (named, hierarchical) data, for example a geometric primitive or...
Definition dataSource.h:148
A function that maps values from one namespace (and time domain) to another.
Definition mapFunction.h:65
A path value used to locate objects in layers or scenegraphs.
Definition path.h:281
Token for efficient comparison, assignment, and hashing of known strings.
Definition token.h:71
Applies the given PcpMapFunction to 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