|
| MTemplateSelectionContext () |
| Constructor.
|
|
| ~MTemplateSelectionContext () override |
| Destructor.
|
|
void | toolOnSetup (MEvent &event) override |
| Sets up a active list modified message which will trigger manipulator create/delete operations. More...
|
|
void | toolOffCleanup () override |
| Removes the callback.
|
|
virtual void | namesOfAttributes (MStringArray &namesOfAttributes) |
| Override to specify which attributes are required on the selected geometry. More...
|
|
virtual void | setInitialState () |
| Override to set manipulator initial state. More...
|
|
bool | validGeometrySelected () |
| Ensure that valid geometry is selected.
|
|
| MPxSelectionContext () |
| Class contstructor. More...
|
|
| ~MPxSelectionContext () override |
| Default destructor. More...
|
|
MStatus | doPress (MEvent &event, MHWRender::MUIDrawManager &drawMgr, const MHWRender::MFrameContext &context) override |
| This method is not available in Python. More...
|
|
MStatus | doRelease (MEvent &event, MHWRender::MUIDrawManager &drawMgr, const MHWRender::MFrameContext &context) override |
| This method is not available in Python. More...
|
|
MStatus | doDrag (MEvent &event, MHWRender::MUIDrawManager &drawMgr, const MHWRender::MFrameContext &context) override |
| This method is not available in Python. More...
|
|
MStatus | doHold (MEvent &event, MHWRender::MUIDrawManager &drawMgr, const MHWRender::MFrameContext &context) override |
| This method is not available in Python. More...
|
|
MStatus | doPress (MEvent &event) override |
| This method is called when any mouse button is pressed. More...
|
|
MStatus | doRelease (MEvent &event) override |
| This method is called when any mouse button is released. More...
|
|
MStatus | doDrag (MEvent &event) override |
| This method is called when a mouse drag event occurs. More...
|
|
MStatus | doHold (MEvent &event) override |
| This method is called when after a mouse button is pressed but before the mouse is dragged. More...
|
|
MStatus | helpStateHasChanged (MEvent &) override |
| This method is called whenever the help state may need to be updated. More...
|
|
MStatus | addManipulator (const MObject &manipulator) override |
| This method adds a manipulator to the context, and also adds the manipulator to the DAG. More...
|
|
MStatus | deleteManipulators () override |
| This method deletes all the manipulators that belong to the context. More...
|
|
MStatus | setAllowPreSelectHilight () |
| This method enables the support of pre-selection highlight for this context. More...
|
|
MStatus | setAllowSoftSelect () |
| This method enables the support of soft selection for this context. More...
|
|
MStatus | setAllowSymmetry () |
| This method enables the support of symmetrical selection for this context. More...
|
|
MStatus | setAllowDoubleClickAction () |
| This method enables the support of double click smart selection for this context. More...
|
|
MStatus | setImage (const MString &image, ImageIndex index) |
| This method is used to set an XPM icon image that is to be used to represent this tool context in various places including the tool bar and can be queried from mel using the contextInfo command. More...
|
|
MString | image (ImageIndex index, MStatus *ReturnStatus=NULL) const |
| This method is used to retrieve an XPM icon image that has previously been set for this tool context. More...
|
|
MStatus | getImage (MString &image, ImageIndex index) const |
| NO SCRIPT SUPPORT. More...
|
|
void | abortAction () override |
| This method is called when the abort key is pressed. More...
|
|
bool | processNumericalInput (const MDoubleArray &values, const MIntArray &flags, bool isAbsolute) override |
| This method processes the input from the numerical input field. More...
|
|
bool | feedbackNumericalInput () const override |
| This method is called to update the numerical feedback. More...
|
|
MSyntax::MArgType | argTypeNumericalInput (unsigned int index) const override |
| This method is used by the feedback line to determine what units to display. More...
|
|
| MPxContext () |
| Class contstructor. More...
|
|
virtual | ~MPxContext () |
| Default destructor. More...
|
|
virtual MStatus | drawFeedback (MHWRender::MUIDrawManager &drawMgr, const MHWRender::MFrameContext &context) |
| This method is not available in Python. More...
|
|
virtual MStatus | doPtrMoved (MEvent &event, MHWRender::MUIDrawManager &drawMgr, const MHWRender::MFrameContext &context) |
| This method is called when a mouse move event occurs. More...
|
|
virtual MStatus | doPtrMoved (MEvent &event) |
| This method is called when a mouse move event occurs. More...
|
|
virtual MStatus | doEnterRegion (MEvent &event) |
| This method is called when the mouse pointer enters a screen panel region. More...
|
|
virtual void | deleteAction () |
| This method is called when the delete or backspace key is pressed. More...
|
|
virtual void | completeAction () |
| This method is called when the complete key is pressed. More...
|
|
MStatus | setImage (const MString &image, ImageIndex index) |
| This method is used to set an XPM icon image that is to be used to represent this tool context in various places including the tool bar and can be queried from mel using the contextInfo command. More...
|
|
MString | image (ImageIndex index, MStatus *ReturnStatus=NULL) const |
| This method is used to retrieve an XPM icon image that has previously been set for this tool context. More...
|
|
virtual MString | stringClassName () const |
| This method is called to determine the name that uniquely identifies the context. More...
|
|
virtual void | getClassName (MString &name) const |
| NO SCRIPT SUPPORT. More...
|
|
MStatus | getImage (MString &image, ImageIndex index) const |
| NO SCRIPT SUPPORT. More...
|
|
template<const char * ContextNameString, class ContextClass, MFn::Type NodeType, class ManipulatorClass, const char * ManipulatorNodeName>
class MTemplateSelectionContext< ContextNameString, ContextClass, NodeType, ManipulatorClass, ManipulatorNodeName >
Template class for selection context.
Template helper to build selection contexts.
- Parameters:
- ContextNameString : string name of context command
- ContextClass : context command derived from MPxContextCommand
- NodeType : MFn type that selection context should operate on
- ManipulatorClass : derived from MPxManipulatorNode
- ManipulatorNodeName : name of the manipulator node
- Examples:
- lineManipContainer/lineManipContainer.cpp, and squareScaleManipContext/squareScaleManipContext.cpp.