![]() |
|
A single namespace edit. More...
#include <namespaceEdit.h>
Public Types | |
| typedef SdfNamespaceEdit | This |
| typedef SdfPath | Path |
| typedef int | Index |
Public Member Functions | |
| SdfNamespaceEdit () | |
| The default edit maps the empty path to the empty path. | |
| SdfNamespaceEdit (const Path ¤tPath_, const Path &newPath_, Index index_=AtEnd) | |
| The fully general edit. | |
| SDF_API bool | operator== (const This &rhs) const |
| SDF_API bool | operator!= (const This &rhs) const |
Static Public Member Functions | |
| static This | Remove (const Path ¤tPath) |
Returns a namespace edit that removes the object at currentPath. | |
| static This | Rename (const Path ¤tPath, const TfToken &name) |
Returns a namespace edit that renames the prim or property at currentPath to name. | |
| static This | Reorder (const Path ¤tPath, Index index) |
Returns a namespace edit to reorder the prim or property at currentPath to index index. | |
| static This | Reparent (const Path ¤tPath, const Path &newParentPath, Index index) |
Returns a namespace edit to reparent the prim or property at currentPath to be under newParentPath at index index. | |
| static This | ReparentAndRename (const Path ¤tPath, const Path &newParentPath, const TfToken &name, Index index) |
Returns a namespace edit to reparent the prim or property at currentPath to be under newParentPath at index index with the name name. | |
Public Attributes | |
| Path | currentPath |
| Path of the object when this edit starts. | |
| Path | newPath |
| Path of the object when this edit ends. | |
| Index | index |
| Index for prim insertion. | |
Static Public Attributes | |
| static const Index | AtEnd = -1 |
| Special index that means at the end. | |
| static const Index | Same = -2 |
| Special index that means don't move. | |
A single namespace edit.
It supports renaming, reparenting, reparenting with a rename, reordering, and removal.
Definition at line 28 of file namespaceEdit.h.
| typedef int Index |
Definition at line 32 of file namespaceEdit.h.
Definition at line 31 of file namespaceEdit.h.
| typedef SdfNamespaceEdit This |
Definition at line 30 of file namespaceEdit.h.
|
inline |
The default edit maps the empty path to the empty path.
Definition at line 42 of file namespaceEdit.h.
|
inline |
The fully general edit.
Definition at line 45 of file namespaceEdit.h.
Returns a namespace edit that removes the object at currentPath.
Definition at line 50 of file namespaceEdit.h.
Returns a namespace edit that renames the prim or property at currentPath to name.
Definition at line 57 of file namespaceEdit.h.
Returns a namespace edit to reorder the prim or property at currentPath to index index.
Definition at line 64 of file namespaceEdit.h.
|
inlinestatic |
Returns a namespace edit to reparent the prim or property at currentPath to be under newParentPath at index index.
Definition at line 71 of file namespaceEdit.h.
|
inlinestatic |
Returns a namespace edit to reparent the prim or property at currentPath to be under newParentPath at index index with the name name.
Definition at line 84 of file namespaceEdit.h.
|
static |
Special index that means at the end.
Definition at line 35 of file namespaceEdit.h.
| Path currentPath |
Path of the object when this edit starts.
Definition at line 100 of file namespaceEdit.h.
| Index index |
Index for prim insertion.
Definition at line 102 of file namespaceEdit.h.
| Path newPath |
Path of the object when this edit ends.
Definition at line 101 of file namespaceEdit.h.
|
static |
Special index that means don't move.
It's only meaningful when renaming. In other cases implementations may assume AtEnd.
Definition at line 39 of file namespaceEdit.h.