24 #ifndef PXR_USD_PCP_PRIM_INDEX_H
25 #define PXR_USD_PCP_PRIM_INDEX_H
43 #include <tbb/spin_rw_mutex.h>
48 #include <unordered_set>
98 PcpPrimIndex &
operator=(PcpPrimIndex &&rhs) noexcept = default;
102 void Swap(PcpPrimIndex& rhs);
111 void SetGraph(
const PcpPrimIndex_GraphRefPtr& graph) {
225 bool includeInheritOriginInfo =
true,
226 bool includeMaps =
true)
const;
233 bool includeInheritOriginInfo =
true,
234 bool includeMaps =
false)
const;
278 bool updateHasSpecs);
281 PcpPrimIndex_GraphRefPtr _graph;
289 std::unique_ptr<PcpErrorVector> _localErrors;
341 const PcpArc& arcToParent,
368 {
cache = cache_;
return *
this; }
377 using PayloadSet = std::unordered_set<SdfPath, SdfPath::Hash>;
390 std::function<
bool (
const SdfPath &)> predicate)
396 {
cull = doCulling;
return *
this; }
402 {
usd = doUSD;
return *
this; }
427 const PcpLayerStackPtr& layerStack,
451 #endif // PXR_USD_PCP_PRIM_INDEX_H
void swap(ArAssetInfo &lhs, ArAssetInfo &rhs)
PcpErrorVector allErrors
List of all errors encountered during indexing.
GT_API const UT_StringHolder filename
PCP_API void Swap(PcpPrimIndex &rhs)
Swap the contents of this prim index with index.
PCP_API PcpPrimIndex()
Default construct an empty, invalid prim index.
PayloadState payloadState
GLsizei const GLchar *const * string
PCP_API void ComputePrimChildNames(TfTokenVector *nameOrder, PcpTokenSet *prohibitedNameSet) const
PCP_API PcpPrimRange GetPrimRange(PcpRangeType rangeType=PcpRangeTypeAll) const
GLsizei const GLchar *const * path
void swap(PcpPrimIndex &rhs)
Same as Swap(), but standard name.
PCP_API void PcpComputePrimIndex(const SdfPath &primPath, const PcpLayerStackPtr &layerStack, const PcpPrimIndexInputs &inputs, PcpPrimIndexOutputs *outputs, ArResolver *pathResolver=NULL)
PcpPrimIndex & operator=(const PcpPrimIndex &rhs)
Assignment.
PCP_API SdfVariantSelectionMap ComposeAuthoredVariantSelections() const
PCP_API PcpNodeRef GetRootNode() const
Returns the root node of the prim index graph.
std::map< std::string, std::string > SdfVariantSelectionMap
A map of reference variant set names to variants in those sets.
PcpExpressionVariablesDependencyData expressionVariablesDependency
void Pcp_RescanForSpecs(PcpPrimIndex *index, bool usd)
GLenum const GLfloat * params
std::shared_ptr< PcpErrorBase > PcpErrorBasePtr
bool Pcp_NeedToRecomputeDueToAssetPathChange(const PcpPrimIndex &index)
GLenum GLuint GLint GLint layer
PCP_API const SdfPath & GetPath() const
PCP_API PcpNodeRef GetNodeProvidingSpec(const SdfPrimSpecHandle &primSpec) const
friend struct Pcp_PrimIndexer
const PcpPrimIndex_GraphRefPtr & GetGraph() const
PCP_API std::string DumpToString(bool includeInheritOriginInfo=true, bool includeMaps=true) const
PCP_API PcpPrimRange GetPrimRangeForNode(const PcpNodeRef &node) const
PCP_API bool HasSpecs() const
std::vector< PcpCulledDependency > culledDependencies
Site dependencies from nodes in the prim index that have been culled.
friend void Pcp_RescanForSpecs(PcpPrimIndex *, bool usd, bool updateHasSpecs)
PCP_API bool HasAnyPayloads() const
TF_DECLARE_REF_PTRS(PcpLayerStack)
void SetGraph(const PcpPrimIndex_GraphRefPtr &graph)
PCP_API void DumpToDotGraph(const std::string &filename, bool includeInheritOriginInfo=true, bool includeMaps=false) const
PCP_API PcpNodeIterator GetNodeIteratorAtNode(const PcpNodeRef &node) const
std::vector< TfToken > TfTokenVector
Convenience types.
std::vector< PcpErrorBasePtr > PcpErrorVector
std::vector< Pcp_CompressedSdSite > Pcp_CompressedSdSiteVector
PCP_API std::string GetSelectionAppliedForVariantSet(const std::string &variantSet) const
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
PCP_API bool IsUsd() const
PXR_NAMESPACE_OPEN_SCOPE SDF_DECLARE_HANDLES(SdfLayer)
PcpNodeRef Append(PcpPrimIndexOutputs &&childOutputs, const PcpArc &arcToParent, PcpErrorBasePtr *error)
PCP_API bool IsInstanceable() const
PcpDynamicFileFormatDependencyData dynamicFileFormatDependency
#define PXR_NAMESPACE_CLOSE_SCOPE
PCP_API PcpNodeRange GetNodeRange(PcpRangeType rangeType=PcpRangeTypeAll) const
TF_DECLARE_WEAK_AND_REF_PTRS(PcpPrimIndex_Graph)
PcpErrorVector GetLocalErrors() const
Return the list of errors local to this prim.
PCP_API void PrintStatistics() const
Prints various statistics about this prim index.
PCP_API void ComputePrimPropertyNames(TfTokenVector *nameOrder) const
PCP_API bool PcpIsNewDefaultStandinBehaviorEnabled()
Returns true if the 'new' default standin behavior is enabled.
std::map< std::string, std::vector< std::string > > PcpVariantFallbackMap
PCP_API PcpNodeRange GetNodeSubtreeRange(const PcpNodeRef &node) const