#include <MTemplateManipulator.h>


Template helper to build selection contexts.
Public Member Functions | |
| MTemplateSelectionContext () | |
| Constructor. | |
| virtual | ~MTemplateSelectionContext () |
| Destructor. | |
| virtual void | toolOnSetup (MEvent &event) |
| virtual void | toolOffCleanup () |
| Removes the callback. | |
| virtual void | namesOfAttributes (MStringArray &namesOfAttributes) |
| virtual void | setInitialState () |
| bool | validGeometrySelected () |
| Ensure that valid geometry is selected. | |
Static Public Member Functions | |
| static void | updateManipulators (void *data) |
| virtual void MTemplateSelectionContext< ContextNameString, ContextClass, NodeType, ManipulatorClass, ManipulatorNodeName >::toolOnSetup | ( | MEvent & | event | ) | [inline, virtual] |
Sets up a active list modified message which will trigger manipulator create/delete operations.
| [in] | event | The event hat triggered it. |
Reimplemented from MPxContext.
| virtual void MTemplateSelectionContext< ContextNameString, ContextClass, NodeType, ManipulatorClass, ManipulatorNodeName >::namesOfAttributes | ( | MStringArray & | namesOfAttributes | ) | [inline, virtual] |
Override to specify which attributes are required on the selected geometry.
| [in] | namesOfAttributes | Array of attribute names. |
| virtual void MTemplateSelectionContext< ContextNameString, ContextClass, NodeType, ManipulatorClass, ManipulatorNodeName >::setInitialState | ( | ) | [inline, virtual] |
Override to set manipulator initial state.
| static void MTemplateSelectionContext< ContextNameString, ContextClass, NodeType, ManipulatorClass, ManipulatorNodeName >::updateManipulators | ( | void * | data | ) | [inline, static] |
Callback that creates the manipulator if valid geometry is selected. Also removes the manipulator if no geometry is selected. Handles connecting the manipulator to multiply selected nodes.
| [in] | data | Pointer to the current context class. |
| Autodesk® Maya® 2010 © 1997-2009 Autodesk, Inc. All rights reserved. |
Generated with
|