7#ifndef PXR_USD_USD_EDIT_TARGET_H
8#define PXR_USD_USD_EDIT_TARGET_H
11#include "pxr/usd/usd/api.h"
13#include "pxr/usd/pcp/mapFunction.h"
14#include "pxr/usd/pcp/node.h"
17#include "pxr/usd/sdf/path.h"
21PXR_NAMESPACE_OPEN_SCOPE
113 return !(*
this == other);
125 const SdfLayerHandle &
GetLayer() const & {
return _layer; }
126 SdfLayerHandle
GetLayer() && {
return std::move(_layer); }
152 SdfPropertySpecHandle
162 SdfAttributeSpecHandle
173 SdfRelationshipSpecHandle
208 SdfLayerHandle _layer;
213PXR_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 SdfSpecHandle GetSpecForScenePath(const SdfPath &scenePath) const
Convenience function for getting the Spec in the edit target's layer for scenePath.
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 SdfPropertySpecHandle GetPropertySpecForScenePath(const SdfPath &scenePath) const
Convenience function for getting the PropertySpec in the edit target's layer for scenePath.
USD_API UsdEditTarget(const SdfLayerRefPtr &layer, const PcpNodeRef &node)
Convenience constructor taking SdfLayerRefPtr.
USD_API SdfRelationshipSpecHandle GetRelationshipSpecForScenePath(const SdfPath &scenePath) const
Convenience function for getting the RelationshipSpec in the edit target's layer for scenePath.
USD_API SdfAttributeSpecHandle GetAttributeSpecForScenePath(const SdfPath &scenePath) const
Convenience function for getting the AttributeSpec in the edit target's layer for scenePath.
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.