MFnToolContext Class Reference
#include <MFnToolContext.h>
Tool context function set.
MFnToolContext is the function set that is used for querying tool contexts.
Typically this could be used in conjunction with MGlobal::currentToolContext().
Constructor.
Class constructor that initializes the function set to the given MObject.
- Parameters
-
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
- Status Codes:
- MS::kSuccess if the function set is successfully attached
- MS::kInvalidParameter if the MObject does not represent a valid Maya object or if the function set is not allowed to attach to this MObject
Constructor.
Class constructor that initializes the function set to the given MObject.
- Parameters
-
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
- Status Codes:
- MS::kSuccess if the function set is successfully attached
- MS::kInvalidParameter if the MObject does not represent a valid Maya object or if the function set is not allowed to attach to this MObject
OPENMAYA_MAJOR_NAMESPACE_OPEN const char * className |
( |
| ) |
const |
|
protectedvirtual |
Class name.
Return the class name : "MFnToolContext".
Returns the tool context's name.
- Parameters
-
[out] | ReturnStatus | return status |
- Returns
- Name string
- Status Codes:
- MS::kSuccess operation successful
- MS::kFailure function set does not have a valid tool context
Returns the tool context's title.
- Parameters
-
[out] | ReturnStatus | return status |
- Returns
- Title string
- Status Codes:
- MS::kSuccess operation successful
- MS::kFailure function set does not have a valid tool context
The documentation for this class was generated from the following files:
- MFnToolContext.h
- MFnToolContext.cpp