A list of MAttributeParameterMapping objects. More...
#include <MPxShadingNodeOverride.h>
Public Member Functions | |
MAttributeParameterMappingList () | |
Constructor. | |
~MAttributeParameterMappingList () | |
Destructor. | |
unsigned int | length () const |
Get the length of the list. More... | |
const MAttributeParameterMapping * | getMapping (unsigned int index) const |
Get the mapping at the specified index. More... | |
const MAttributeParameterMapping * | findByAttributeName (const MString &attributeName) const |
Find a mapping by attribute name. More... | |
const MAttributeParameterMapping * | findByParameterName (const MString ¶meterName) const |
Find a mapping by parameter name. More... | |
void | append (const MAttributeParameterMapping &mapping) |
Add a mapping to the list. More... | |
void | clear () |
Clear all mappings from the list. | |
Static Public Member Functions | |
static const char * | className () |
Returns the name of this class. More... | |
A list of MAttributeParameterMapping objects.
A list of MAttributeParameterMapping objects. Ownership of mapping objects added to the list remains with the caller; the list makes a copy.
unsigned int length | ( | ) | const |
Get the length of the list.
const MAttributeParameterMapping * getMapping | ( | unsigned int | index | ) | const |
Get the mapping at the specified index.
[in] | index | The index of the mapping to get |
const MAttributeParameterMapping * findByAttributeName | ( | const MString & | attributeName | ) | const |
Find a mapping by attribute name.
This will return the first mapping found with a matching attribute name.
[in] | attributeName | The name of the attribute to search for |
const MAttributeParameterMapping * findByParameterName | ( | const MString & | parameterName | ) | const |
Find a mapping by parameter name.
This will return the first mapping found with a matching parameter name.
[in] | parameterName | The name of the parameter to search for |
void append | ( | const MAttributeParameterMapping & | mapping | ) |
Add a mapping to the list.
The list makes a copy; ownership of the original is left with the caller.
[in] | mapping | The mapping to add to the list |
|
static |
Returns the name of this class.