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
124 bool operator==(
const UsdEditTarget &other)
const;
128 return !(*
this == other);
140 const SdfLayerHandle &
GetLayer()
const {
return _layer; }
160 SdfPropertySpecHandle
161 GetPropertySpecForScenePath(
const SdfPath &scenePath)
const;
165 GetSpecForScenePath(
const SdfPath &scenePath)
const;
182 UsdEditTarget
ComposeOver(
const UsdEditTarget &weaker)
const;
189 SdfLayerHandle _layer;
194 PXR_NAMESPACE_CLOSE_SCOPE
196 #endif // PXR_USD_USD_EDIT_TARGET_H
#define TF_DECLARE_WEAK_PTRS(type)
Define standard weak pointer types.
PcpNode represents a node in an expression tree for compositing scene description.
USD_API bool operator==(const UsdEditTarget &other) const
Equality comparison.
The outermost container for scene description, which owns and presents composed prims as a scenegraph...
bool IsNull() const
Return true if this EditTarget is null.
bool operator!=(const UsdEditTarget &other) const
Inequality comparison.
Defines a mapping from scene graph paths to Sdf spec paths in a SdfLayer where edits should be direct...
bool IsValid() const
Return true if this EditTarget is valid, false otherwise.
USD_API SdfPrimSpecHandle GetPrimSpecForScenePath(const SdfPath &scenePath) const
Convenience function for getting the PrimSpec in the edit target's layer for scenePath.
A function that maps values from one namespace (and time domain) to another.
A path value used to locate objects in layers or scenegraphs.
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...
USD_API UsdEditTarget ComposeOver(const UsdEditTarget &weaker) const
Return a new EditTarget composed over weaker.
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.
const PcpMapFunction & GetMapFunction() const
Returns the PcpMapFunction representing the map from source specs (including any variant selections) ...
const SdfLayerHandle & GetLayer() const
Return the layer this EditTarget contains.