#include <MVaryingParameterList.h>
MVaryingParameterArrays specify the surface component level data used by a hardware shader, allowing Maya to handle setting up the node and user interfaces to the data, the population and access of cached data, etc.
Public Member Functions | |
MVaryingParameterList () | |
~MVaryingParameterList () | |
void | append (const MVaryingParameter &element) |
int | length () const |
void | setLength (int n) |
MVaryingParameter | getElement (int n) const |
void | setElement (int n, const MVaryingParameter &p) |
const MVaryingParameterList & | operator= (const MVaryingParameterList &other) |
Friends | |
class | MPxHardwareShader |
MVaryingParameterList::MVaryingParameterList | ( | ) |
Create a new, empty list of varying parameters.
MVaryingParameterList::~MVaryingParameterList | ( | ) |
Class destructor.
void MVaryingParameterList::append | ( | const MVaryingParameter & | element | ) |
Append a new parameter to this end of this list.
[in] | element | The new parameter to append |
int MVaryingParameterList::length | ( | ) | const |
Get the number of parameters in this list.
void MVaryingParameterList::setLength | ( | int | n | ) |
Set the number of parameters in this list. If this is greater than the current number of parameters in the list, the caller is responsible for setting the new parameters to valid values using setElement.
[in] | n | The number of parameters in this list. |
MVaryingParameter MVaryingParameterList::getElement | ( | int | n | ) | const |
Get the nth parameter in this list.
[in] | n | The index of the element to return |
void MVaryingParameterList::setElement | ( | int | n, | |
const MVaryingParameter & | p | |||
) |
Set the nth parameter in this list.
[in] | n | The index of the element to set |
[in] | p | The value to set |
const MVaryingParameterList & MVaryingParameterList::operator= | ( | const MVaryingParameterList & | src | ) |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |