|
| MDoubleArray () |
| Default constructor. More...
|
|
| MDoubleArray (const MDoubleArray &other) |
| Copy Constructor. More...
|
|
| MDoubleArray (const double src[], unsigned int count) |
| Create a new array of doubles and initialize it with the given double elements. More...
|
|
| MDoubleArray (const float src[], unsigned int count) |
| Create a new array of doubles and initialize it with the given float elements. More...
|
|
| MDoubleArray (unsigned int initialSize, double initialValue=0) |
| Create a new array of doubles of a specified size and initialize all the elements with the given initial value. More...
|
|
| ~MDoubleArray () |
| The class destructor.
|
|
MDoubleArray & | operator= (const MDoubleArray &other) |
| Assignment operator copies all of the elements of the other array into this one. More...
|
|
MStatus | set (double element, unsigned int index) |
| Sets the value of the indicated element to the indicated double value. More...
|
|
MStatus | set (float element, unsigned int index) |
| Sets the value of the indicated element to the indicated float value. More...
|
|
MStatus | setLength (unsigned int length) |
| Set the length of the array. More...
|
|
unsigned int | length () const |
| Returns the number of elements in the instance. More...
|
|
MStatus | remove (unsigned int index) |
| Remove the array element at the given index. More...
|
|
MStatus | insert (double element, unsigned int index) |
| Inserts a new value into the array at the given index. More...
|
|
MStatus | append (double element) |
| Adds a new element to the end of the array. More...
|
|
MStatus | copy (const MDoubleArray &source) |
| Copy the contents of the source array to this array. More...
|
|
MStatus | clear () |
| Clear the contents of the array. More...
|
|
MStatus | get (double[]) const |
| Copy the elements of the array into the given C++ array of doubles. More...
|
|
MStatus | get (float[]) const |
| Copy the elements of the array into the given C++ array of floats. More...
|
|
void | setSizeIncrement (unsigned int newIncrement) |
| Set the size by which the array will be expanded whenever expansion is necessary. More...
|
|
unsigned int | sizeIncrement () const |
| Return the size by which the array will be expanded whenever expansion is necessary. More...
|
|
double & | operator[] (unsigned int index) |
| NO SCRIPT SUPPORT. More...
|
|
double | operator[] (unsigned int index) const |
| NO SCRIPT SUPPORT. More...
|
|
Iterator | begin () |
| Returns an iterator object pointed to the beginning of the array. More...
|
|
Iterator | end () |
| Returns an iterator object pointed to the end of the array. More...
|
|
ConstIterator | begin () const |
| Returns a const iterator object pointed to the beginning of the array. More...
|
|
ConstIterator | end () const |
| Returns a const iterator object pointed to the end of the array. More...
|
|
ConstIterator | cbegin () const |
| Returns a const iterator object pointed to the beginning of the array. More...
|
|
ConstIterator | cend () const |
| Returns a const iterator object pointed to the end of the array. More...
|
|
Array of doubles data type.
This class implements an array of doubles. Common convenience functions are available, and the implementation is compatible with the internal Maya implementation so that it can be passed efficiently between plugins and internal maya data structures.
Methods that query the array are threadsafe. Writing to different array elements at the same time with the set() method is threadsafe. Methods that modify the array length, namely append(), insert(), remove() and setLength() are not threadsafe.
- Examples:
- AbcExport/MayaMeshWriter.cpp, AbcExport/MayaNurbsCurveWriter.cpp, AbcExport/MayaNurbsSurfaceWriter.cpp, AbcExport/MayaPointPrimitiveWriter.cpp, AbcImport/MeshHelper.cpp, AbcImport/NodeIteratorVisitorHelper.cpp, AbcImport/NurbsCurveHelper.cpp, AbcImport/NurbsSurfaceHelper.cpp, closestPointOnCurve/closestPointOnCurveCmd.cpp, closestPointOnNurbsSurfaceCmd/closestPointOnNurbsSurfaceCmd.cpp, clusterWeightFunction/clusterWeightFunction.cpp, dx11Shader/dx11Shader.cpp, dynExprField/dynExprField.cpp, dynExprField/dynExprField.h, exportSkinClusterDataCmd/exportSkinClusterDataCmd.cpp, fullLoftNode/fullLoftNode.cpp, geometrytools.cpp, glslShader/GLSLShader.cpp, gpuCache/CacheReaderAlembic.cpp, gpuCache/gpuCacheCmd.cpp, gpuCache/gpuCacheCmd.h, grabUVMain.cpp, hairCollisionSolver/hairCollisionSolver.cpp, helixCmd/helixCmd.cpp, helixQtCmd.cpp, helixTool/helixTool.cpp, hwPhongShader/hwPhongShader.cpp, intersectOnNurbsSurfaceCmd/intersectOnNurbsSurfaceCmd.cpp, motionTraceCmd/motionTraceCmd.cpp, moveNumericTool/moveNumericTool.cpp, particleAttrNode/particleAttrNode.cpp, particlePathsCmd/particlePathsCmd.cpp, pfxInfoCmd/pfxInfoCmd.cpp, pointOnMeshInfo/pointOnMeshCmd.cpp, rawfootPrintNode/rawfootPrintNode.cpp, shellNode/shellNode.cpp, simpleEmitter/simpleEmitter.cpp, simpleEmitter/simpleEmitter.h, simpleFluidEmitter/simpleFluidEmitter.cpp, simpleLoftNode/simpleLoftNode.cpp, simpleSolverNode/simpleSolverNode.cpp, skinClusterWeights/skinClusterWeights.cpp, surfaceCreateCmd/surfaceCreateCmd.cpp, torusField/torusField.cpp, torusField/torusField.h, viewRenderOverride/viewRenderOverrideUserOperation.cpp, XmlGeometryCache/XmlGeometryCache.cpp, and XmlGeometryCacheDesc/XmlGeometryCacheDesc.cpp.