7#ifndef PXR_USD_USD_FLATTEN_UTILS_H
8#define PXR_USD_USD_FLATTEN_UTILS_H
15#include "pxr/usd/usd/api.h"
20PXR_NAMESPACE_OPEN_SCOPE
53 const std::string& tag = std::string());
63 const SdfLayerHandle& sourceLayer,
64 const std::string& assetPath)>;
102 const std::string& tag = std::string());
111 const SdfLayerHandle& sourceLayer,
112 const std::string& assetPath);
153 const PcpLayerStackRefPtr &layerStack,
155 const std::string& tag = std::string());
167PXR_NAMESPACE_CLOSE_SCOPE
A scene description container that can combine with other such containers to form simple component as...
A map with string keys and VtValue values.
std::function< std::string(const SdfLayerHandle &sourceLayer, const std::string &assetPath)> UsdFlattenResolveAssetPathFn
Callback function for overloaded version of UsdFlattenLayerStack.
USD_API std::string UsdFlattenLayerStackResolveAssetPathAdvanced(const UsdFlattenResolveAssetPathContext &context)
Implements the default asset path flattening behavior for UsdFlattenLayerStack.
std::function< std::string(const UsdFlattenResolveAssetPathContext &)> UsdFlattenResolveAssetPathAdvancedFn
Callback function for UsdFlattenLayerStack.
SdfLayerHandle sourceLayer
Layer where the asset path is authored.
USD_API SdfLayerRefPtr UsdFlattenLayerStack(const PcpLayerStackRefPtr &layerStack, const std::string &tag=std::string())
Flatten layerStack into a single layer with the given optional tag.
std::string assetPath
Authored asset path.
USD_API std::string UsdFlattenLayerStackResolveAssetPath(const SdfLayerHandle &sourceLayer, const std::string &assetPath)
Implements the default asset path flattening behavior for UsdFlattenLayerStack.
VtDictionary expressionVariables
Expression variables from the layer stack.
Context object containing information used when resolving asset paths during layer stack flattening.