24 #ifndef PXR_USD_PCP_PROPERTY_INDEX_H 25 #define PXR_USD_PCP_PROPERTY_INDEX_H 28 #include "pxr/usd/pcp/api.h" 29 #include "pxr/usd/pcp/errors.h" 30 #include "pxr/usd/pcp/iterator.h" 31 #include "pxr/usd/pcp/node.h" 33 #include "pxr/usd/sdf/path.h" 39 PXR_NAMESPACE_OPEN_SCOPE
49 struct Pcp_PropertyInfo
51 Pcp_PropertyInfo() { }
52 Pcp_PropertyInfo(
const SdfPropertySpecHandle& prop,
const PcpNodeRef& node)
53 : propertySpec(prop), originatingNode(node) { }
55 SdfPropertySpecHandle propertySpec;
96 return _localErrors ? *_localErrors.get() : PcpErrorVector();
105 friend class Pcp_PropertyIndexer;
109 std::vector<Pcp_PropertyInfo> _propertyStack;
113 std::unique_ptr<PcpErrorVector> _localErrors;
121 PcpBuildPropertyIndex(
const SdfPath& propertyPath,
124 PcpErrorVector *allErrors );
130 PcpBuildPrimPropertyIndex(
const SdfPath& propertyPath,
134 PcpErrorVector *allErrors );
136 PXR_NAMESPACE_CLOSE_SCOPE
138 #endif // PXR_USD_PCP_PROPERTY_INDEX_H PcpPrimIndex is an index of the all sites of scene description that contribute opinions to a specific...
PCP_API bool IsEmpty() const
Returns true if this property index contains no opinions, false otherwise.
PcpNode represents a node in an expression tree for compositing scene description.
PcpCache is the context required to make requests of the Pcp composition algorithm and cache the resu...
PCP_API void Swap(PcpPropertyIndex &index)
Swap the contents of this property index with index.
PCP_API PcpPropertyRange GetPropertyRange(bool localOnly=false) const
Returns range of iterators that encompasses properties in this index's property stack.
PCP_API size_t GetNumLocalSpecs() const
Returns the number of local properties in this prim index.
PcpErrorVector GetLocalErrors() const
Return the list of errors local to this property.
A path value used to locate objects in layers or scenegraphs.
Object used to iterate over property specs in a property index in strong-to-weak order.
PCP_API PcpPropertyIndex()
Construct an empty property index.
PcpPropertyIndex is an index of all sites in scene description that contribute opinions to a specific...