24#ifndef PXR_USD_USD_RESOLVER_H
25#define PXR_USD_USD_RESOLVER_H
28#include "pxr/usd/usd/api.h"
31#include "pxr/usd/pcp/node.h"
32#include "pxr/usd/pcp/iterator.h"
34#include "pxr/usd/sdf/path.h"
37PXR_NAMESPACE_OPEN_SCOPE
56 explicit Usd_Resolver(
58 bool skipEmptyNodes =
true);
67 explicit Usd_Resolver(
69 bool skipEmptyNodes =
true);
76 bool IsValid()
const {
77 return _curNode != _endNode;
125 const SdfPath& GetLocalPath()
const {
126 return _curNode->GetPath();
134 return propName.
IsEmpty() ? GetLocalPath() :
135 GetLocalPath().AppendProperty(propName);
147 void _SkipEmptyNodes();
150 bool _skipEmptyNodes;
154 SdfLayerRefPtrVector::const_iterator _curLayer;
155 SdfLayerRefPtrVector::const_iterator _endLayer;
159PXR_NAMESPACE_CLOSE_SCOPE
Object used to iterate over nodes in the prim index graph in strong-to-weak order.
PcpNode represents a node in an expression tree for compositing scene description.
PcpPrimIndex is an index of the all sites of scene description that contribute opinions to a specific...
A path value used to locate objects in layers or scenegraphs.
Token for efficient comparison, assignment, and hashing of known strings.
bool IsEmpty() const
Returns true iff this token contains the empty string "".
Defines a subrange of nodes and layers within a prim's prim index to consider when performing value r...