24 #ifndef PXR_USD_USD_EDIT_TARGET_H 25 #define PXR_USD_USD_EDIT_TARGET_H 28 #include "pxr/usd/usd/api.h" 30 #include "pxr/usd/pcp/mapFunction.h" 31 #include "pxr/usd/pcp/node.h" 33 #include "pxr/usd/sdf/path.h" 36 PXR_NAMESPACE_OPEN_SCOPE
128 return !(*
this == other);
140 const SdfLayerHandle &
GetLayer() const & {
return _layer; }
141 SdfLayerHandle
GetLayer() && {
return std::move(_layer); }
161 SdfPropertySpecHandle
162 GetPropertySpecForScenePath(
const SdfPath &scenePath)
const;
166 GetSpecForScenePath(
const SdfPath &scenePath)
const;
190 SdfLayerHandle _layer;
195 PXR_NAMESPACE_CLOSE_SCOPE
197 #endif // PXR_USD_USD_EDIT_TARGET_H
#define TF_DECLARE_WEAK_PTRS(type)
Define standard weak pointer types.
USD_API SdfPath MapToSpecPath(const SdfPath &scenePath) const
Map the provided scenePath into a SdfSpec path for the EditTarget's layer, according to the EditTarge...
bool IsNull() const
Return true if this EditTarget is null.
PcpNode represents a node in an expression tree for compositing scene description.
bool IsValid() const
Return true if this EditTarget is valid, false otherwise.
The outermost container for scene description, which owns and presents composed prims as a scenegraph...
USD_API SdfPrimSpecHandle GetPrimSpecForScenePath(const SdfPath &scenePath) const
Convenience function for getting the PrimSpec in the edit target's layer for scenePath.
const SdfLayerHandle & GetLayer() const &
Return the layer this EditTarget contains.
USD_API UsdEditTarget ComposeOver(const UsdEditTarget &weaker) const
Return a new EditTarget composed over weaker.
bool operator!=(const UsdEditTarget &other) const
Inequality comparison.
USD_API bool operator==(const UsdEditTarget &other) const
Equality comparison.
const PcpMapFunction & GetMapFunction() const
Returns the PcpMapFunction representing the map from source specs (including any variant selections) ...
Defines a mapping from scene graph paths to Sdf spec paths in a SdfLayer where edits should be direct...
A function that maps values from one namespace (and time domain) to another.
A path value used to locate objects in layers or scenegraphs.
static USD_API UsdEditTarget ForLocalDirectVariant(const SdfLayerHandle &layer, const SdfPath &varSelPath)
Convenience constructor for editing a direct variant in a local LayerStack.
USD_API UsdEditTarget()
Construct a null EditTarget.
Represents a time offset and scale between layers.