#include <MFnTurbulenceField.h>
Function set for creation, edit, and query of Turbulence Fields.
A turbulence field causes irregularities in the motion of affected objects. These irregularities are also called noise or jitter.
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnTurbulenceField () |
Destructor. | |
MFnTurbulenceField () | |
Default constructor. | |
MFnTurbulenceField (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
MFnTurbulenceField (const MDagPath &object, MStatus *ret=NULL) | |
Constructor. | |
double | frequency (MStatus *ReturnStatus=NULL) const |
MStatus | setFrequency (double value) |
double | phase (MStatus *ReturnStatus=NULL) const |
MStatus | setPhase (double value) |
MFnTurbulenceField (const MObject &object, MStatus *ret=NULL) | |
Constructor. | |
Protected Member Functions | |
virtual const char * | className () const |
Class name. |
MFnTurbulenceField::~MFnTurbulenceField | ( | ) | [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 MFnTurbulenceField::type | ( | ) | const [virtual] |
double MFnTurbulenceField::frequency | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the frequency parameter that generates irregularities in the fields motion.
[out] | ReturnStatus | Status code |
MStatus MFnTurbulenceField::setFrequency | ( | double | value | ) |
Sets the frequency parameter of the Perlin noise function used by the turbulence field. Values are positive, with larger values causing more frequent irregularities in the motion.
[in] | value | A value representing a noise generation parameter. |
double MFnTurbulenceField::phase | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns the phase shift parameter that influences the direction of the turbulence field disruption. Currently this returns the phaseZ attribute, which was called simply phase in versions of Maya prior to 3.0.
[out] | ReturnStatus | Status code |
MStatus MFnTurbulenceField::setPhase | ( | double | value | ) |
Sets the phase shift parameter of the Perlin noise function used by the turbulence field. Both positive and negative values are legal and influence the direction of the disruption. Sets the phaseZ parameter, which was called simply phase in versions of Maya prior to 3.0.
[in] | value | A value representing a noise generation parameter. |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |