#include <MFnFreePointTriadManip.h>
The FreePointTriadManip provides a moveable point, which can be moved anywhere, and has axes for constrained x, y, and z movement and obeys grid snapping, point snapping, and curve snapping. The FreePointTriadManip generates the 3D position of the moveable point. It is useful for specifying the position of an object in space.
Public Types | |
enum | ManipPlane { kYZPlane = 0, kXZPlane, kXYPlane, kViewPlane } |
Interaction plane for the manip center. More... | |
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnFreePointTriadManip () |
Destructor. | |
MFnFreePointTriadManip () | |
Default constructor. | |
MFnFreePointTriadManip (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
MFnFreePointTriadManip (const MDagPath &object, MStatus *ret=NULL) | |
Constructor. | |
MObject | create (MStatus *ReturnStatus=NULL) |
MObject | create (const MString &manipName, const MString &pointName, MStatus *ReturnStatus=NULL) |
MStatus | connectToPointPlug (MPlug &pointPlug) |
MStatus | setDrawAxes (bool state) |
MStatus | setSnapMode (bool state) |
MStatus | setKeyframeAll (bool state) |
MStatus | setDrawArrowHead (bool state) |
MStatus | setGlobalTriadPlane (ManipPlane whichPlane) |
MStatus | setPoint (const MPoint &pointValue) |
MStatus | setDirection (const MVector &direction) |
bool | isDrawAxesOn (MStatus *ReturnStatus=NULL) const |
bool | isSnapModeOn (MStatus *ReturnStatus=NULL) const |
bool | isKeyframeAllOn (MStatus *ReturnStatus=NULL) const |
unsigned int | pointIndex (MStatus *ReturnStatus=NULL) const |
MFnFreePointTriadManip (const MObject &object, MStatus *ret=NULL) | |
Constructor. | |
Protected Member Functions | |
virtual const char * | className () const |
Class name. |
MFnFreePointTriadManip::~MFnFreePointTriadManip | ( | ) | [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 |
MFnFreePointTriadManip::MFnFreePointTriadManip | ( | const MDagPath & | object, | |
MStatus * | ReturnStatus = NULL | |||
) |
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 |
MFnFreePointTriadManip::MFnFreePointTriadManip | ( | const MObject & | object, | |
MStatus * | ReturnStatus = NULL | |||
) |
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 MFnFreePointTriadManip::type | ( | ) | const [virtual] |
const char * MFnFreePointTriadManip::className | ( | ) | const [protected, virtual] |
Creates a new FreePointTriadManip. This function set's object is set to be the new manipulator.
This method should only be used to create a non-composite FreePointTriadManip.
The name that appears in the feedback line is "point"
[out] | ReturnStatus | return status |
MObject MFnFreePointTriadManip::create | ( | const MString & | manipName, | |
const MString & | pointName, | |||
MStatus * | ReturnStatus = NULL | |||
) |
Creates a new FreePointTriadManip. This function set's object is set to be the new manipulator.
This method should only be used to create a non-composite FreePointTriadManip.
The name that appears in the feedback line is specified by the pointName argument.
[in] | pointName | the name that appears in the feedback line |
[out] | ReturnStatus | return status |
Reimplemented from MFnDependencyNode.
Connect to the point plug. The data type corresponding to the pointPlug is MFnNumericData::k3Double.
[in] | pointPlug | the point plug |
MStatus MFnFreePointTriadManip::setDrawAxes | ( | bool | state | ) |
Sets whether or not to draw the axes of the FreePointTriadManip. By default the axes are drawn.
[in] | state | whether or not the axes should be drawn |
MStatus MFnFreePointTriadManip::setSnapMode | ( | bool | state | ) |
Sets whether or not to the FreePointTriadManip should be in snap mode.
[in] | state | whether or not the FreePointTriadManip should be in snap mode |
MStatus MFnFreePointTriadManip::setKeyframeAll | ( | bool | state | ) |
Sets whether or not keyframeAll is on.
[in] | state | whether or not keyframeAll is on |
MStatus MFnFreePointTriadManip::setDrawArrowHead | ( | bool | state | ) |
Sets whether or not drawArrowHead is on.
[in] | state | whether or not drawArrowHead is on |
MStatus MFnFreePointTriadManip::setGlobalTriadPlane | ( | ManipPlane | whichPlane | ) |
Sets which plane to use as the global triad plane. The global triad plane does not change until the context switches.
[in] | whichPlane | which plane to use as the global triad plane |
Set the point manipulator value to the given vector. This method can be called in the MPxManipContainer::connectToDependNode() method to set the initial position for the manipulator.
[in] | pointValue | The new value of the point manipValue |
Sets the orientation of the FreePointTriadManip.
[in] | direction | the new direction for freePointTriadManip. |
bool MFnFreePointTriadManip::isDrawAxesOn | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns whether or not the axes of the FreePointTriadManip are being drawn. By default the axes are drawn.
[out] | ReturnStatus | return status |
bool MFnFreePointTriadManip::isSnapModeOn | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns whether or not the FreePointTriadManip is in snap mode.
[out] | ReturnStatus | return status |
bool MFnFreePointTriadManip::isKeyframeAllOn | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns whether or not the FreePointTriadManip is in keyframeAll mode.
[out] | ReturnStatus | return status |
unsigned int MFnFreePointTriadManip::pointIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the point of the FreePointTriadManip. The data type corresponding to this index is MFnNumericData::k3Double.
[out] | ReturnStatus | return status |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |