#include <MFnDragField.h>
Function set for creation, edit, and query of Drag Fields.
A drag field exerts a friction, or braking force, proportional to the speed of a moving object.
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnDragField () |
Destructor. | |
MFnDragField () | |
Default constructor. | |
MFnDragField (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
MFnDragField (const MDagPath &object, MStatus *ret=NULL) | |
Constructor. | |
MVector | direction (MStatus *ReturnStatus=NULL) const |
MStatus | setDirection (const MVector &dragDirection) |
bool | useDirection (MStatus *ReturnStatus=NULL) const |
MStatus | setUseDirection (bool enable) |
MFnDragField (const MObject &object, MStatus *ret=NULL) | |
Constructor. | |
Protected Member Functions | |
virtual const char * | className () const |
Class name. |
MFnDragField::~MFnDragField | ( | ) | [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 MFnDragField::type | ( | ) | const [virtual] |
Returns the direction of the drag force's influence along the x, y, and z axes. You must have the Use Direction setting turned on for this attribute to take effect.
[out] | ReturnStatus | Status code |
Sets the direction of the drag force's influence along the x, y, and z axes. You must have the Use Direction setting turned on for this attribute to take effect.
[in] | dragDirection | A vector representing direction. |
bool MFnDragField::useDirection | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns true if the braking force is exerted only against the component of the object's velocity that lies along the direction of the drag force.
[out] | ReturnStatus | Status code |
MStatus MFnDragField::setUseDirection | ( | bool | enable | ) |
Enables the braking force to be exerted only against the component of the object's velocity that lies along the direction setting of the drag force.
[in] | enable | Flag to enable or disable direction setting. |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |