#include
<MFnNumericData.h>
MFnNumericData allows the creation and manipulation of numeric data objects for use in the dependency graph. Normally, data objects are not required for the transmission of numeric data. The graph supports numeric types directly (see the methods of MDataHandle).
Numeric data objects are useful if you have an attribute that accepts generic data. A generic attribute can accept multiple types of data, so you cannot hardwire it to accept a specific type of numeric data. So, generic attributes can only accept numeric data in the form of actual data objects.
This function set only supports pairs and triples of numeric data.
apiMeshShape.cpp, blindDataShader.cpp, cgfxAttrDef.cpp, componentScaleManip.cpp, curvedArrowsNode.cpp, D3DViewportRenderer.cpp, footPrintManip.cpp, genericAttributeNode.cpp, geometrySurfaceConstraint.cpp, GLSLShaderNode.cpp, hwAnisotropicShader_NV20.cpp, hwDecalBumpShader_NV20.cpp, hwReflectBumpShader_NV20.cpp, hwToonShader_NV20.cpp, hwUnlitShader.cpp, pnTrianglesNode.cpp, polyModifierCmd.cpp, renderAccessNode.cpp, rotateManip.cpp, surfaceBumpManip.cpp, and swissArmyManip.cpp.
Public Types |
|
enum | Type
{ kInvalid, kBoolean, kByte, kChar, kShort, k2Short, k3Short, kLong, kInt = kLong, k2Long, k2Int = k2Long, k3Long, k3Int = k3Long, kFloat, k2Float, k3Float, kDouble, k2Double, k3Double, k4Double, kAddr, kLast } |
Supported numerical types. More... |
|
Public Member Functions |
|
virtual MFn::Type | type () const |
Function set type. |
|
virtual | ~MFnNumericData () |
Destructor. |
|
MFnNumericData () | |
Default constructor. |
|
MFnNumericData (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. |
|
MObject | create (Type dataType, MStatus *ReturnStatus=NULL) |
Type | numericType (MStatus *ReturnStatus=NULL) |
MStatus | getData (short &val1, short &val2) |
NO SCRIPT SUPPORT. |
|
MStatus | getData (int &val1, int &val2) |
NO SCRIPT SUPPORT. |
|
MStatus | getData (float &val1, float &val2) |
NO SCRIPT SUPPORT. |
|
MStatus | getData (double &val1, double &val2) |
NO SCRIPT SUPPORT. |
|
MStatus | getData (short &val1, short &val2, short &val3) |
NO SCRIPT SUPPORT. |
|
MStatus | getData (int &val1, int &val2, int &val3) |
NO SCRIPT SUPPORT. |
|
MStatus | getData (float &val1, float &val2, float &val3) |
NO SCRIPT SUPPORT. |
|
MStatus | getData (double &val1, double &val2, double &val3) |
NO SCRIPT SUPPORT. |
|
MStatus | getData (double &val1, double &val2, double &val3, double &val4) |
NO SCRIPT SUPPORT. |
|
MStatus | setData (short val1, short val2) |
NO SCRIPT SUPPORT. |
|
MStatus | setData (int val1, int val2) |
NO SCRIPT SUPPORT. |
|
MStatus | setData (float val1, float val2) |
NO SCRIPT SUPPORT. |
|
MStatus | setData (double val1, double val2) |
NO SCRIPT SUPPORT. |
|
MStatus | setData (short val1, short val2, short val3) |
NO SCRIPT SUPPORT. |
|
MStatus | setData (int val1, int val2, int val3) |
NO SCRIPT SUPPORT. |
|
MStatus | setData (float val1, float val2, float val3) |
NO SCRIPT SUPPORT. |
|
MStatus | setData (double val1, double val2, double val3) |
NO SCRIPT SUPPORT. |
|
MStatus | setData (double val1, double val2, double val3, double val4) |
NO SCRIPT SUPPORT. |
|
MFnNumericData (const MObject &object, MStatus *ReturnStatus=NULL) | |
NO SCRIPT SUPPORT. |
|
MStatus | getData2Short (short &val1, short &val2) |
MStatus | getData2Int (int &val1, int &val2) |
MStatus | getData2Float (float &val1, float &val2) |
MStatus | getData2Double (double &val1, double &val2) |
MStatus | getData3Short (short &val1, short &val2, short &val3) |
MStatus | getData3Int (int &val1, int &val2, int &val3) |
MStatus | getData3Float (float &val1, float &val2, float &val3) |
MStatus | getData3Double (double &val1, double &val2, double &val3) |
MStatus | getData4Double (double &val1, double &val2, double &val3, double &val4) |
MStatus | setData2Short (short val1, short val2) |
MStatus | setData2Int (int val1, int val2) |
MStatus | setData2Float (float val1, float val2) |
MStatus | setData2Double (double val1, double val2) |
MStatus | setData3Short (short val1, short val2, short val3) |
MStatus | setData3Int (int val1, int val2, int val3) |
MStatus | setData3Float (float val1, float val2, float val3) |
MStatus | setData3Double (double val1, double val2, double val3) |
MStatus | setData4Double (double val1, double val2, double val3, double val4) |
Protected Member Functions |
|
virtual const char * | className () const |
Class name. |
enum MFnNumericData::Type |
Supported numerical types.
Reimplemented from MFnData.
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 |
NO SCRIPT SUPPORT.
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 MFnNumericData::type | ( | ) | const [virtual] |
const char * MFnNumericData::className | ( | ) | const [protected, virtual] |
Creates a new data object of the given type. Only pair and triples of numeric data may be created (eg k3Float).
[in] | dataType | data type of object to create |
[out] | ReturnStatus | return status |
MFnNumericData::Type MFnNumericData::numericType | ( | MStatus * | ReturnStatus =
NULL |
) |
Returns the type of the numeric data object.
[out] | ReturnStatus | return status |
MStatus MFnNumericData::getData | ( | short & | val1, | |
short & | val2 | |||
) |
NO SCRIPT SUPPORT.
Gets the stored value of this data object as a pair of short integers. The data object must have been created as a pair of short integers for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
MStatus MFnNumericData::getData | ( | int & | val1, | |
int & | val2 | |||
) |
NO SCRIPT SUPPORT.
Gets the stored value of this data object as a pair of int integers. The data object must have been created as a pair of int integers for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
MStatus MFnNumericData::getData | ( | float & | val1, | |
float & | val2 | |||
) |
NO SCRIPT SUPPORT.
Gets the stored value of this data object as a pair of floats. The data object must have been created as a pair of floats for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
MStatus MFnNumericData::getData | ( | double & | val1, | |
double & | val2 | |||
) |
NO SCRIPT SUPPORT.
Gets the stored value of this data object as a pair of doubles. The data object must have been created as a pair of doubles for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
MStatus MFnNumericData::getData | ( | short & | val1, | |
short & | val2, | |||
short & | val3 | |||
) |
NO SCRIPT SUPPORT.
Gets the stored value of this data object as a triple of short integers. The data object must have been created as a pair of short integers for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
[out] | val3 | storage for the third element |
MStatus MFnNumericData::getData | ( | int & | val1, | |
int & | val2, | |||
int & | val3 | |||
) |
NO SCRIPT SUPPORT.
Gets the stored value of this data object as a triple of int integers. The data object must have been created as a triple of int integers for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
[out] | val3 | storage for the third element |
MStatus MFnNumericData::getData | ( | float & | val1, | |
float & | val2, | |||
float & | val3 | |||
) |
NO SCRIPT SUPPORT.
Gets the stored value of this data object as a triple of floats. The data object must have been created as a triple of floats for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
[out] | val3 | storage for the third element |
MStatus MFnNumericData::getData | ( | double & | val1, | |
double & | val2, | |||
double & | val3 | |||
) |
NO SCRIPT SUPPORT.
Gets the stored value of this data object as a triple of doubles. The data object must have been created as a triple of doubles for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
[out] | val3 | storage for the third element |
MStatus MFnNumericData::getData | ( | double & | val1, | |
double & | val2, | |||
double & | val3, | |||
double & | val4 | |||
) |
NO SCRIPT SUPPORT.
Gets the stored value of this data object as a quadruple of doubles. The data object must have been created as a quadruple of doubles for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
[out] | val3 | storage for the third element |
[out] | val4 | storage for the fourth element |
MStatus MFnNumericData::setData | ( | short | val1, | |
short | val2 | |||
) |
NO SCRIPT SUPPORT.
Sets the stored value of this data object as a pair of short integers. The data object must have been created as a pair of short integers for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
MStatus MFnNumericData::setData | ( | int | val1, | |
int | val2 | |||
) |
NO SCRIPT SUPPORT.
Sets the stored value of this data object as a pair of int integers. The data object must have been created as a pair of int integers for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
MStatus MFnNumericData::setData | ( | float | val1, | |
float | val2 | |||
) |
NO SCRIPT SUPPORT.
Sets the stored value of this data object as a pair of floats. The data object must have been created as a pair of floats for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
MStatus MFnNumericData::setData | ( | double | val1, | |
double | val2 | |||
) |
NO SCRIPT SUPPORT.
Sets the stored value of this data object as a pair of doubles. The data object must have been created as a pair of doubles for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
MStatus MFnNumericData::setData | ( | short | val1, | |
short | val2, | |||
short | val3 | |||
) |
NO SCRIPT SUPPORT.
Sets the stored value of this data object as a triple of short integers. The data object must have been created as a triple of short integers for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
[in] | val3 | the third element |
MStatus MFnNumericData::setData | ( | int | val1, | |
int | val2, | |||
int | val3 | |||
) |
NO SCRIPT SUPPORT.
Sets the stored value of this data object as a triple of int integers. The data object must have been created as a triple of int integers for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
[in] | val3 | the third element |
MStatus MFnNumericData::setData | ( | float | val1, | |
float | val2, | |||
float | val3 | |||
) |
NO SCRIPT SUPPORT.
Sets the stored value of this data object as a triple of floats. The data object must have been created as a triple of floats for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
[in] | val3 | the third element |
MStatus MFnNumericData::setData | ( | double | val1, | |
double | val2, | |||
double | val3 | |||
) |
NO SCRIPT SUPPORT.
Sets the stored value of this data object as a triple of doubles. The data object must have been created as a triple of doubles for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
[in] | val3 | the third element |
MStatus MFnNumericData::setData | ( | double | val1, | |
double | val2, | |||
double | val3, | |||
double | val4 | |||
) |
NO SCRIPT SUPPORT.
Sets the stored value of this data object as a quadruple of doubles. The data object must have been created as a quadruple of doubles for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
[in] | val3 | the third element |
[in] | val4 | the fourth element |
MStatus MFnNumericData::getData2Short | ( | short & | val1, | |
short & | val2 | |||
) |
Gets the stored value of this data object as a pair of short integers. The data object must have been created as a pair of short integers for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
MStatus MFnNumericData::getData2Int | ( | int & | val1, | |
int & | val2 | |||
) |
Gets the stored value of this data object as a pair of int integers. The data object must have been created as a pair of int integers for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
MStatus MFnNumericData::getData2Float | ( | float & | val1, | |
float & | val2 | |||
) |
Gets the stored value of this data object as a pair of floats. The data object must have been created as a pair of floats for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
MStatus MFnNumericData::getData2Double | ( | double & | val1, | |
double & | val2 | |||
) |
Gets the stored value of this data object as a pair of doubles. The data object must have been created as a pair of doubles for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
MStatus MFnNumericData::getData3Short | ( | short & | val1, | |
short & | val2, | |||
short & | val3 | |||
) |
Gets the stored value of this data object as a triple of short integers. The data object must have been created as a pair of short integers for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
[out] | val3 | storage for the third element |
MStatus MFnNumericData::getData3Int | ( | int & | val1, | |
int & | val2, | |||
int & | val3 | |||
) |
Gets the stored value of this data object as a triple of int integers. The data object must have been created as a triple of int integers for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
[out] | val3 | storage for the third element |
MStatus MFnNumericData::getData3Float | ( | float & | val1, | |
float & | val2, | |||
float & | val3 | |||
) |
Gets the stored value of this data object as a triple of floats. The data object must have been created as a triple of floats for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
[out] | val3 | storage for the third element |
MStatus MFnNumericData::getData3Double | ( | double & | val1, | |
double & | val2, | |||
double & | val3 | |||
) |
Gets the stored value of this data object as a triple of doubles. The data object must have been created as a triple of doubles for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
[out] | val3 | storage for the third element |
MStatus MFnNumericData::getData4Double | ( | double & | val1, | |
double & | val2, | |||
double & | val3, | |||
double & | val4 | |||
) |
Gets the stored value of this data object as a quadruple of doubles. The data object must have been created as a quadruple of doubles for this to succeed.
[out] | val1 | storage for the first element |
[out] | val2 | storage for the second element |
[out] | val3 | storage for the third element |
[out] | val4 | storage for the fourth element |
MStatus MFnNumericData::setData2Short | ( | short | val1, | |
short | val2 | |||
) |
Sets the stored value of this data object as a pair of short integers. The data object must have been created as a pair of short integers for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
MStatus MFnNumericData::setData2Int | ( | int | val1, | |
int | val2 | |||
) |
Sets the stored value of this data object as a pair of int integers. The data object must have been created as a pair of int integers for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
MStatus MFnNumericData::setData2Float | ( | float | val1, | |
float | val2 | |||
) |
Sets the stored value of this data object as a pair of floats. The data object must have been created as a pair of floats for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
MStatus MFnNumericData::setData2Double | ( | double | val1, | |
double | val2 | |||
) |
Sets the stored value of this data object as a pair of doubles. The data object must have been created as a pair of doubles for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
MStatus MFnNumericData::setData3Short | ( | short | val1, | |
short | val2, | |||
short | val3 | |||
) |
Sets the stored value of this data object as a triple of short integers. The data object must have been created as a triple of short integers for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
[in] | val3 | the third element |
MStatus MFnNumericData::setData3Int | ( | int | val1, | |
int | val2, | |||
int | val3 | |||
) |
Sets the stored value of this data object as a triple of int integers. The data object must have been created as a triple of int integers for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
[in] | val3 | the third element |
MStatus MFnNumericData::setData3Float | ( | float | val1, | |
float | val2, | |||
float | val3 | |||
) |
Sets the stored value of this data object as a triple of floats. The data object must have been created as a triple of floats for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
[in] | val3 | the third element |
MStatus MFnNumericData::setData3Double | ( | double | val1, | |
double | val2, | |||
double | val3 | |||
) |
Sets the stored value of this data object as a triple of doubles. The data object must have been created as a triple of doubles for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
[in] | val3 | the third element |
MStatus MFnNumericData::setData4Double | ( | double | val1, | |
double | val2, | |||
double | val3, | |||
double | val4 | |||
) |
Sets the stored value of this data object as a quadruple of doubles. The data object must have been created as a quadruple of doubles for this to succeed.
[in] | val1 | the first element |
[in] | val2 | the second element |
[in] | val3 | the third element |
[in] | val4 | the fourth element |
Autodesk® Maya® 2011 © 1997-2010 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |