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"
36PXR_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;
195PXR_NAMESPACE_CLOSE_SCOPE
A function that maps values from one namespace (and time domain) to another.
PcpNode represents a node in an expression tree for compositing scene description.
Represents a time offset and scale between layers.
A path value used to locate objects in layers or scenegraphs.
Defines a mapping from scene graph paths to Sdf spec paths in a SdfLayer where edits should be direct...
USD_API SdfPrimSpecHandle GetPrimSpecForScenePath(const SdfPath &scenePath) const
Convenience function for getting the PrimSpec in the edit target's layer for scenePath.
USD_API UsdEditTarget ComposeOver(const UsdEditTarget &weaker) const
Return a new EditTarget composed over weaker.
USD_API UsdEditTarget(const SdfLayerHandle &layer, const PcpNodeRef &node)
Construct an EditTarget with layer and node.
USD_API bool operator==(const UsdEditTarget &other) const
Equality comparison.
USD_API UsdEditTarget(const SdfLayerRefPtr &layer, SdfLayerOffset offset=SdfLayerOffset())
Convenience implicit conversion from SdfLayerRefPtr.
USD_API UsdEditTarget()
Construct a null EditTarget.
USD_API UsdEditTarget(const SdfLayerHandle &layer, SdfLayerOffset offset=SdfLayerOffset())
Constructor.
static USD_API UsdEditTarget ForLocalDirectVariant(const SdfLayerHandle &layer, const SdfPath &varSelPath)
Convenience constructor for editing a direct variant in a local LayerStack.
const SdfLayerHandle & GetLayer() const &
Return the layer this EditTarget contains.
bool operator!=(const UsdEditTarget &other) const
Inequality comparison.
const PcpMapFunction & GetMapFunction() const
Returns the PcpMapFunction representing the map from source specs (including any variant selections) ...
bool IsNull() const
Return true if this EditTarget is null.
bool IsValid() const
Return true if this EditTarget is valid, false otherwise.
USD_API UsdEditTarget(const SdfLayerRefPtr &layer, const PcpNodeRef &node)
Convenience constructor taking SdfLayerRefPtr.
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...
The outermost container for scene description, which owns and presents composed prims as a scenegraph...
#define TF_DECLARE_WEAK_PTRS(type)
Define standard weak pointer types.