7#ifndef PXR_USD_USD_RESOLVER_H
8#define PXR_USD_USD_RESOLVER_H
11#include "pxr/usd/usd/api.h"
15#include "pxr/usd/pcp/node.h"
16#include "pxr/usd/pcp/iterator.h"
18#include "pxr/usd/sdf/path.h"
21PXR_NAMESPACE_OPEN_SCOPE
43 explicit Usd_Resolver(
45 bool skipEmptyNodes =
true,
57 explicit Usd_Resolver(
59 bool skipEmptyNodes =
true,
67 bool IsValid()
const {
68 return _curNode != _endNode;
116 const SdfPath& GetLocalPath()
const {
117 return _curNode->GetPath();
125 return propName.
IsEmpty() ? GetLocalPath() :
126 GetLocalPath().AppendProperty(propName);
138 void _SkipEmptyNodes();
141 bool _skipEmptyNodes;
145 SdfLayerRefPtrVector::const_iterator _curLayer;
146 SdfLayerRefPtrVector::const_iterator _endLayer;
150PXR_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 "".
Container for information about the source of an attribute's value, i.e.
Defines a subrange of nodes and layers within a prim's prim index to consider when performing value r...