Function set for Newton Fields.
Function set for creation, edit, and query of Newton Fields.
A newton field pulls an object toward another with a force that is dependent on the mass of the object exerting the field. It follows Newton's Law of Universal Gravitation.
#include <MFnNewtonField.h>

Public Member Functions |
|
| virtual MFn::Type | type () const |
| Function set type. |
|
| virtual | ~MFnNewtonField () |
| Destructor. |
|
| MFnNewtonField () | |
| Default constructor. |
|
| MFnNewtonField (MObject &object, MStatus *ReturnStatus=NULL) | |
| Constructor. |
|
| MFnNewtonField (const MDagPath &object, MStatus *ret=NULL) | |
| Constructor. |
|
| double | minDistance (MStatus *ReturnStatus=NULL) const |
| Returns the minimum distance from the newton
field at which the force of the field is exerted. |
|
| MStatus | setMinDistance (double distance) |
| Sets the minimum distance from the newton
field at which the force of the field is exerted. |
|
| MFnNewtonField (const MObject &object, MStatus *ret=NULL) | |
| Constructor. |
|
Protected Member Functions |
|
| virtual const char * | className () const |
| Class name. |
|
| ~MFnNewtonField | ( | ) | [virtual] |
Destructor.
Class destructor.
| MFnNewtonField | ( | 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 |
| MFnNewtonField | ( | 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 |
| MFnNewtonField | ( | 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] |
| double minDistance | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Returns the minimum distance from the newton field at which the force of the field is exerted.
| [out] | ReturnStatus | Status code |
| MStatus setMinDistance | ( | double | distance | ) |
Sets the minimum distance from the newton field at which the force of the field is exerted.
| [in] | distance | A value representing distance in internal linear units. |