#include <MFnManip3D.h>
MFnManip3D allows the creation and manipulation of 3D manipulators. MFnManip3D is the base class from which MFnFreePointTriadManip, MFnDirectionManip, MFnDistanceManip, MFnPointOnCurveManip, MFnPointOnSurfaceManip, MFnDiscManip, MFnCircleSweepManip, MFnToggleManip, MFnStateManip, and MFnCurveSegmentManip are derived.
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnManip3D () |
Destructor. | |
MFnManip3D () | |
Default constructor. | |
MFnManip3D (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
MFnManip3D (const MDagPath &object, MStatus *ret=NULL) | |
Constructor. | |
bool | isVisible (MStatus *ReturnStatus) const |
MStatus | setVisible (bool isVisible) |
float | manipScale (MStatus *ReturnStatus) const |
MStatus | setManipScale (float size) |
bool | isOptimizePlaybackOn (MStatus *ReturnStatus) const |
MStatus | setOptimizePlayback (bool optimizePlayback) |
MEulerRotation | rotateXYZValue (const unsigned int valIndex, MStatus *ReturnStatus=NULL) |
MFnManip3D (const MObject &object, MStatus *ret=NULL) | |
Constructor. | |
Static Public Member Functions | |
static float | globalSize () |
static void | setGlobalSize (float size) |
static float | handleSize () |
static void | setHandleSize (float size) |
static float | lineSize () |
static void | setLineSize (float size) |
static MStatus | deleteManipulator (MObject &manip) |
Protected Member Functions | |
virtual const char * | className () const |
Class name. |
MFnManip3D::~MFnManip3D | ( | ) | [virtual] |
Destructor.
Class destructor.
Constructor.
Class constructor that initializes the function set to the given MObject.
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
Constructor.
Class constructor that initializes the function set to the given constant MDagPath object.
[in] | object | The const MDagPath to attach the function set to |
[out] | ReturnStatus | The return status |
Constructor.
Class constructor that initializes the function set to the given MObject.
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
MFn::Type MFnManip3D::type | ( | ) | const [virtual] |
Function set type.
Return the class type : MFn::kManipulator3D
Reimplemented from MFnTransform.
Reimplemented in MFnCircleSweepManip, MFnCurveSegmentManip, MFnDirectionManip, MFnDiscManip, MFnDistanceManip, MFnFreePointTriadManip, MFnPointOnCurveManip, MFnPointOnSurfaceManip, MFnRotateManip, MFnScaleManip, MFnStateManip, and MFnToggleManip.
const char * MFnManip3D::className | ( | ) | const [protected, virtual] |
Class name.
Return the class name : "MFnManip3D"
Reimplemented from MFnTransform.
Reimplemented in MFnCircleSweepManip, MFnCurveSegmentManip, MFnDirectionManip, MFnDiscManip, MFnDistanceManip, MFnFreePointTriadManip, MFnPointOnCurveManip, MFnPointOnSurfaceManip, MFnRotateManip, MFnScaleManip, MFnStateManip, and MFnToggleManip.
bool MFnManip3D::isVisible | ( | MStatus * | ReturnStatus | ) | const |
Returns whether or not the manipulator is visible.
[out] | ReturnStatus | return status |
MStatus MFnManip3D::setVisible | ( | bool | isVisible | ) |
Sets whether or not the manipulator is visible.
[out] | isVisible | whether or not the manipulator is visible |
float MFnManip3D::manipScale | ( | MStatus * | ReturnStatus | ) | const |
Returns the manipulator scale.
[out] | ReturnStatus | return status |
MStatus MFnManip3D::setManipScale | ( | float | size | ) |
Sets the manipulator scale.
[in] | size | the manipulator scale |
bool MFnManip3D::isOptimizePlaybackOn | ( | MStatus * | ReturnStatus | ) | const |
Returns whether or not optimize playback is on
[out] | ReturnStatus | return status |
MStatus MFnManip3D::setOptimizePlayback | ( | bool | optimizePlayback | ) |
Sets whether or not to optimize the playback
[in] | optimizePlayback | whether or not to optimize the playback |
float MFnManip3D::globalSize | ( | ) | [static] |
Returns the global manipulator size.
void MFnManip3D::setGlobalSize | ( | float | size | ) | [static] |
Sets the global manipulator size.
[in] | size | the global manipulator size |
float MFnManip3D::handleSize | ( | ) | [static] |
Returns the manipulator handle size.
void MFnManip3D::setHandleSize | ( | float | size | ) | [static] |
Sets the manipulator handle size.
[in] | size | the manipulator handle size |
float MFnManip3D::lineSize | ( | ) | [static] |
Returns the manipulator line size.
void MFnManip3D::setLineSize | ( | float | size | ) | [static] |
Sets the manipulator line size.
[in] | size | the manipulator line size |
Delete a manipulator. This method should be used to delete manipulators that have been created using base manipulator create() methods.
[in] | manip | the manipulator to be deleted |
MEulerRotation MFnManip3D::rotateXYZValue | ( | const unsigned int | valIndex, | |
MStatus * | ReturnStatus = NULL | |||
) |
Gets the rotation for the active manipulator.
[in] | valIndex | rotation index of the manipulator |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |