class MUniformParameterList

Jump to documentation

Uniform Parameter. (OpenMayaRender) (OpenMayaRender.py)

public members:

MUniformParameterList ()
~MUniformParameterList ()
void append ( const MUniformParameter & element)
int length () const
void setLength ( int n)
MUniformParameter getElement ( int n) const
void setElement ( int n, const MUniformParameter & p)
const MUniformParameterList & operator= ( const MUniformParameterList & other)

Documentation

An MUniformParameterList stores a list of hardware shader uniform parameters.
Description

MUniformParameterArray specify the list of uniform shader parameters 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.

Functions

MUniformParameterList:: MUniformParameterList ()

Description

Create a new, empty list of uniform parameters.

MUniformParameterList:: ~MUniformParameterList ()

Description

Class destructor.

const MUniformParameterList & MUniformParameterList:: operator= ( const MUniformParameterList & src)

Description

Assignment operator

int MUniformParameterList:: length () const

Description

Get the number of parameters in this list.

Arguments

  • None

Return Value

  • The number of parameters in this list.

void MUniformParameterList:: setLength ( int n)

Description

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.

Arguments

  • The number of parameters in this list.

void MUniformParameterList:: append ( const MUniformParameter & element)

Description

Append a new parameter to this end of this list.

Arguments

  • child the new parameter to append

MUniformParameter MUniformParameterList:: getElement ( int n) const

Description

Get the nth parameter in this list.

Arguments

  • n the index of the element to return

Return Value

  • The nth parameter in the list

void MUniformParameterList:: setElement ( int n, const MUniformParameter & p)

Description

Get the nth parameter in this list.

Arguments

  • n the index of the element to return

Return Value

  • The nth parameter in the list

This class has no child classes.


Autodesk® Maya® 2008 © 1997-2007 Autodesk, Inc. All rights reserved. doc++ Copyright