#include <MFnDirectionManip.h>


The DirectionManip allows the user to specify a direction, as defined by the vector from the start point to the manipulator position. It uses a FreePointTriadManip to specify the end point of a vector relative to a given start point. This manipulator generates a vector from the start point to the end point.
Public Member Functions | |
| virtual MFn::Type | type () const |
| Function set type. | |
| virtual | ~MFnDirectionManip () |
| Destructor. | |
| MFnDirectionManip () | |
| Default constructor. | |
| MFnDirectionManip (MObject &object, MStatus *ReturnStatus=NULL) | |
| Constructor. | |
| MFnDirectionManip (const MDagPath &object, MStatus *ret=NULL) | |
| Constructor. | |
| MObject | create (MStatus *ReturnStatus=NULL) |
| MObject | create (const MString &manipName, const MString &directionName, MStatus *ReturnStatus=NULL) |
| MStatus | connectToDirectionPlug (MPlug &directionPlug) |
| MStatus | setNormalizeDirection (bool state) |
| MStatus | setDrawStart (bool state) |
| MStatus | setStartPoint (MPoint &startPoint) |
| MStatus | setDirection (MVector &direction) |
| unsigned int | startPointIndex (MStatus *ReturnStatus=NULL) const |
| unsigned int | endPointIndex (MStatus *ReturnStatus=NULL) const |
| unsigned int | directionIndex (MStatus *ReturnStatus=NULL) const |
| MFnDirectionManip (const MObject &object, MStatus *ret=NULL) | |
| Constructor. | |
Protected Member Functions | |
| virtual const char * | className () const |
| Class name. | |
| MFnDirectionManip::~MFnDirectionManip | ( | ) | [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 MFnDirectionManip::type | ( | ) | const [virtual] |
| const char * MFnDirectionManip::className | ( | ) | const [protected, virtual] |
Creates a new DirectionManip. This function set's object is set to be the new manipulator.
This method should only be used to create a non-composite DirectionManip.
The name that appears in the feedback line is "direction"
| [out] | ReturnStatus | return status |
| MObject MFnDirectionManip::create | ( | const MString & | manipName, | |
| const MString & | directionName, | |||
| MStatus * | ReturnStatus = NULL | |||
| ) |
Creates a new DirectionManip. This function set's object is set to be the new manipulator.
This method should only be used to create a non-composite DirectionManip.
The name that appears in the feedback line is specified by the directionName argument.
| [in] | directionName | the name that appears in the feedback line |
| [out] | ReturnStatus | return status |
Reimplemented from MFnDependencyNode.
Connect to the direction plug. The data type corresponding to the directionPlug is MFnNumericData::k3Double.
| [in] | directionPlug | the direction plug |
| MStatus MFnDirectionManip::setNormalizeDirection | ( | bool | state | ) |
Sets whether or not to the direction should be normalized. By default the direction is normalized.
| [in] | state | whether or not the direction should be normalized |
| MStatus MFnDirectionManip::setDrawStart | ( | bool | state | ) |
Sets whether or not to draw the start of the DirectionManip. The start of the DirectionManip is indicated by a grey dot. By default the start is not drawn.
| [in] | state | whether or not the start should be drawn |
Sets the start point of the DirectionManip.
| [in] | startPoint | the start point of the DirectionManip |
Sets the direction of the DirectionManip.
| [in] | direction | the direction of the DirectionManip |
| unsigned int MFnDirectionManip::startPointIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the start point of the DirectionManip. The data type corresponding to this index is MFnNumericData::k3Double.
| [out] | ReturnStatus | return status |
| unsigned int MFnDirectionManip::endPointIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the end point of the DirectionManip. The data type corresponding to this index is MFnNumericData::k3Double.
| [out] | ReturnStatus | return status |
| unsigned int MFnDirectionManip::directionIndex | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the index of the direction. 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
|