|
AL_USDMaya
0.29.4
USD to Maya Bridge
|
A helper class to store the state that is modified during a change to the current selection within a proxy shape. The state it maintains includes: More...
#include <ProxyShape.h>
Public Types | |
|
typedef TfHashSet< SdfPath, SdfPath::Hash > | SdfPathHashSet |
| a hash set of SdfPaths | |
Public Member Functions | |
| SelectionUndoHelper (nodes::ProxyShape *proxy, const SdfPathHashSet &paths, MGlobal::ListAdjustment mode, bool internal=false) | |
| Construct with the arguments to select / deselect nodes on a proxy shape. More... | |
| void | doIt () |
| performs the selection changes | |
| void | undoIt () |
| will undo the selection changes | |
Friends | |
| class | ProxyShape |
A helper class to store the state that is modified during a change to the current selection within a proxy shape. The state it maintains includes:
This class is intended to exist as a member variable on a MEL selection command. Once constructed, the class should be passed to the ProxyShape::doSelect method to construct the internal state changes. At that point, you may call doIt() to perform the changes, undoIt() to revert the changes.
| AL::usdmaya::nodes::SelectionUndoHelper::SelectionUndoHelper | ( | nodes::ProxyShape * | proxy, |
| const SdfPathHashSet & | paths, | ||
| MGlobal::ListAdjustment | mode, | ||
| bool | internal = false |
||
| ) |
Construct with the arguments to select / deselect nodes on a proxy shape.
| proxy | pointer to the maya node on which the selection operation will be performed. |
| paths | the USD paths to be selected / toggled / unselected |
| mode | the selection mode (add, remove, xor, etc) |
| internal | if the internal flag is set, then modifications to Maya's selection list will NOT occur. |