#include <MFnAirField.h>
Function set for creation, edit, and query of Air Fields.
An air field simulates the effects of moving air.
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnAirField () |
Destructor. | |
MFnAirField () | |
Default constructor. | |
MFnAirField (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
MFnAirField (const MDagPath &object, MStatus *ret=NULL) | |
Constructor. | |
MVector | direction (MStatus *ReturnStatus=NULL) const |
MStatus | setDirection (const MVector &airDirection) |
double | speed (MStatus *ReturnStatus=NULL) const |
MStatus | setSpeed (double value) |
double | inheritVelocity (MStatus *ReturnStatus=NULL) const |
MStatus | setInheritVelocity (double velocity) |
bool | inheritRotation (MStatus *ReturnStatus=NULL) const |
MStatus | setInheritRotation (bool enable) |
bool | componentOnly (MStatus *ReturnStatus=NULL) const |
MStatus | setComponentOnly (bool enable) |
double | spread (MStatus *ReturnStatus=NULL) const |
MStatus | setSpread (double value) |
bool | enableSpread (MStatus *ReturnStatus=NULL) const |
MStatus | setEnableSpread (bool enable) |
MFnAirField (const MObject &object, MStatus *ret=NULL) | |
Constructor. | |
Protected Member Functions | |
virtual const char * | className () const |
Class name. |
MFnAirField::~MFnAirField | ( | ) | [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 MFnAirField::type | ( | ) | const [virtual] |
Returns the direction the air is blowing.
[out] | ReturnStatus | Status code |
Sets the direction vector for the air to blow.
[in] | airDirection | A vector representing direction. |
double MFnAirField::speed | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the control setting on how quickly objects match the velocity of the air field.
[out] | ReturnStatus | Status code |
MStatus MFnAirField::setSpeed | ( | double | value | ) |
Sets the control setting on how quickly the objects match the velocity of the air field.
[in] | value | A value representing speed.
|
double MFnAirField::inheritVelocity | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the amount of the moving air field's velocity that is added to the direction and magnitude of the wind.
[out] | ReturnStatus | Status code |
MStatus MFnAirField::setInheritVelocity | ( | double | velocity | ) |
Sets the amount of the moving air field's velocity that is added to the direction and magnitude of the wind.
[in] | velocity | A value from 0 to 1 representing the amount of velocity that is added. |
bool MFnAirField::inheritRotation | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns true if the air field is rotating or parented to a rotating object, and will undergo that same rotation.
[out] | ReturnStatus | Status code |
MStatus MFnAirField::setInheritRotation | ( | bool | enable | ) |
Enables the air field to undergo rotations and effect the direction that the air field points.
[in] | enable | Flag to enable or disable rotations effects. |
bool MFnAirField::componentOnly | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns true if the air field will apply force only in the direction specified by the combination of its direction, speed, and inherit velocity attributes. Returns false if the force is made to effect the object's velocity to match the air field's velocity.
[out] | ReturnStatus | Status code |
MStatus MFnAirField::setComponentOnly | ( | bool | enable | ) |
Enables the air field to apply force specified as a combination of its direction, speed, and inherit veloicty attributes.
[in] | enable | Flag to enable or disable combination of attributes. |
double MFnAirField::spread | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns a value that represents an angle which objects are affected by the air fields direction setting. This value is taken into account when the Enable Spread attribute is turned on.
[out] | ReturnStatus | Status code |
MStatus MFnAirField::setSpread | ( | double | value | ) |
Sets the value representing an angle which objects are affected by the air fields direction setting. This value is taken into account when the Enable Spread attribute is turned on.
[in] | value | A value representing an angle.
|
bool MFnAirField::enableSpread | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns true if the air field is using the spread angle to define the influence of the air field.
[out] | ReturnStatus | Status code |
MStatus MFnAirField::setEnableSpread | ( | bool | enable | ) |
Enables the air field to influence objects based on the spread angle setting.
[in] | enable | Flag to enable or disable use of the spread angle. |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |