24 #ifndef PXR_USD_USD_NAMESPACE_EDITOR_H
25 #define PXR_USD_USD_NAMESPACE_EDITOR_H
206 enum class _EditType {
215 struct _EditDescription {
226 bool IsPropertyEdit()
const {
return oldPath.IsPrimPropertyPath(); }
234 struct _ProcessedEdit
238 std::vector<std::string> errors;
246 SdfLayerHandleVector layersToEdit;
265 std::vector<TargetPathListOpEdit> targetPathListOpEdits;
270 std::vector<std::string> targetPathListOpErrors;
275 SdfPath createParentSpecIfNeededPath;
279 bool removeInertAncestorOvers =
false;
282 bool requiresRelocates =
false;
293 bool _AddPrimDelete(
const SdfPath &oldPath);
296 bool _AddPrimMove(
const SdfPath &oldPath,
const SdfPath &newPath);
299 bool _AddPropertyDelete(
const SdfPath &oldPath);
302 bool _AddPropertyMove(
const SdfPath &oldPath,
const SdfPath &newPath);
305 void _ClearProcessedEdits();
309 void _ProcessEditsIfNeeded()
const;
314 class _EditProcessor;
316 UsdStageRefPtr _stage;
317 _EditDescription _editDescription;
318 mutable std::optional<_ProcessedEdit> _processedEdit;
323 #endif // PXR_USD_USD_NAMESPACE_EDITOR_H
GLsizei const GLchar *const * string
GLsizei const GLchar *const * path
SdfPathListOp newFieldValue
SdfPropertySpecHandle propertySpec
class SdfListOp< class SdfPath > SdfPathListOp
USD_API bool MovePrimAtPath(const SdfPath &path, const SdfPath &newPath)
USD_API bool CanApplyEdits(std::string *whyNot=nullptr) const
USD_API bool RenamePrim(const UsdPrim &prim, const TfToken &newName)
USD_API bool DeletePrim(const UsdPrim &prim)
USD_API bool RenameProperty(const UsdProperty &property, const TfToken &newName)
USD_API bool DeletePropertyAtPath(const SdfPath &path)
USD_API bool MovePropertyAtPath(const SdfPath &path, const SdfPath &newPath)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
USD_API bool ReparentPrim(const UsdPrim &prim, const UsdPrim &newParent)
#define PXR_NAMESPACE_CLOSE_SCOPE
USD_API bool DeleteProperty(const UsdProperty &property)
USD_API UsdNamespaceEditor(const UsdStageRefPtr &stage)
USD_API bool ReparentProperty(const UsdProperty &property, const UsdPrim &newParent)
USD_API bool DeletePrimAtPath(const SdfPath &path)
USD_API bool ApplyEdits()