24 #ifndef PXR_USD_SDF_PAYLOAD_H
25 #define PXR_USD_SDF_PAYLOAD_H
30 #include "pxr/usd/sdf/api.h"
33 #include "pxr/usd/sdf/path.h"
35 #include <boost/functional/hash.hpp>
36 #include <boost/operators.hpp>
42 PXR_NAMESPACE_OPEN_SCOPE
46 typedef std::vector<SdfPayload> SdfPayloadVector;
68 const std::string &assetPath = std::string(),
104 _layerOffset = layerOffset;
108 SDF_API
bool operator==(
const SdfPayload &rhs)
const;
112 SDF_API
bool operator<(
const SdfPayload &rhs)
const;
115 friend inline size_t hash_value(
const SdfPayload &p) {
117 boost::hash_combine(h, p._assetPath);
118 boost::hash_combine(h, p._primPath);
119 boost::hash_combine(h, p._layerOffset);
124 std::string _assetPath;
137 PXR_NAMESPACE_CLOSE_SCOPE
const SdfPath & GetPrimPath() const
Returns the scene path of the prim for the payload.
SDF_API bool operator<(const SdfPayload &rhs) const
Returns whether this payload is less than rhs.
void SetAssetPath(const std::string &assetPath)
Sets a new asset path for the layer the payload uses.
const std::string & GetAssetPath() const
Return the asset path.
const std::string & GetAssetPath() const
Returns the asset path of the layer that the payload uses.
void SetLayerOffset(const SdfLayerOffset &layerOffset)
Sets a new layer offset.
Represents a payload and all its meta data.
A path value used to locate objects in layers or scenegraphs.
SDF_API SdfPayload(const std::string &assetPath=std::string(), const SdfPath &primPath=SdfPath(), const SdfLayerOffset &layerOffset=SdfLayerOffset())
Create a payload.
GF_API std::ostream & operator<<(std::ostream &, const GfBBox3d &)
Output a GfBBox3d using the format [(range) matrix zeroArea].
Contains an asset path and an optional resolved path.
const SdfLayerOffset & GetLayerOffset() const
Returns the layer offset associated with the payload.
SDF_API bool operator==(const SdfPayload &rhs) const
Returns whether this payload equals rhs.
Represents a time offset and scale between layers.
void SetPrimPath(const SdfPath &primPath)
Sets a new prim path for the prim that the payload uses.