Function set for Air Fields.
Function set for creation, edit, and query of Air Fields.
An air field simulates the effects of moving air.
#include <MFnAirField.h>
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 |
Returns the direction the air is blowing.
|
|
MStatus | setDirection (const MVector &airDirection) |
Sets the direction vector for the air to
blow. |
|
double | speed (MStatus *ReturnStatus=NULL) const |
Returns the control setting on how quickly
objects match the velocity of the air field. |
|
MStatus | setSpeed (double value) |
Sets the control setting on how quickly the
objects match the velocity of the air field. |
|
double | 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.
|
|
MStatus | setInheritVelocity (double velocity) |
Sets the amount of the moving air field's
velocity that is added to the direction and magnitude of the wind.
|
|
bool | 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.
|
|
MStatus | setInheritRotation (bool enable) |
Enables the air field to undergo rotations
and effect the direction that the air field points. |
|
bool | 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. |
|
MStatus | setComponentOnly (bool enable) |
Enables the air field to apply force
specified as a combination of its direction, speed, and inherit
veloicty attributes. |
|
double | spread (MStatus *ReturnStatus=NULL) const |
Returns a value that represents an angle
which objects are affected by the air fields direction setting.
|
|
MStatus | setSpread (double value) |
Sets the value representing an angle which
objects are affected by the air fields direction setting. |
|
bool | enableSpread (MStatus *ReturnStatus=NULL) const |
Returns true if the air field is using the
spread angle to define the influence of the air field. |
|
MStatus | setEnableSpread (bool enable) |
Enables the air field to influence objects
based on the spread angle setting. |
|
MFnAirField (const MObject &object, MStatus *ret=NULL) | |
Constructor. |
|
Protected Member Functions |
|
virtual const char * | className () const |
Class name. |
~MFnAirField | ( | ) | [virtual] |
Destructor.
Class destructor.
MFnAirField | ( | 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 |
MFnAirField | ( | 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 |
MFnAirField | ( | 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 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 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 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 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 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 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 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 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 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 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 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 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 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. |