7#ifndef PXR_USD_USD_RESOLVER_H
8#define PXR_USD_USD_RESOLVER_H
11#include "pxr/usd/usd/api.h"
14#include "pxr/usd/pcp/node.h"
15#include "pxr/usd/pcp/iterator.h"
17#include "pxr/usd/sdf/path.h"
20PXR_NAMESPACE_OPEN_SCOPE
39 explicit Usd_Resolver(
41 bool skipEmptyNodes =
true);
50 explicit Usd_Resolver(
52 bool skipEmptyNodes =
true);
59 bool IsValid()
const {
60 return _curNode != _endNode;
108 const SdfPath& GetLocalPath()
const {
109 return _curNode->GetPath();
117 return propName.
IsEmpty() ? GetLocalPath() :
118 GetLocalPath().AppendProperty(propName);
130 void _SkipEmptyNodes();
133 bool _skipEmptyNodes;
137 SdfLayerRefPtrVector::const_iterator _curLayer;
138 SdfLayerRefPtrVector::const_iterator _endLayer;
142PXR_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...