#include <MViewport2Renderer.h>
Base class for holding a list of MRenderOperations.
The list is the owner of the operations.
Public Member Functions | |
MRenderOperationList () | |
Constructor. | |
~MRenderOperationList () | |
Destructor. | |
int | length () const |
Get the number of MRenderOperation in the list. More... | |
const MRenderOperation * | operator[] (int index) const |
Gets the MRenderOperation at the requested index. More... | |
MRenderOperation * | operator[] (int index) |
Gets the MRenderOperation at the requested index. More... | |
bool | replace (const MString &name, MRenderOperation *operation) |
Replace the operation with the given name by a new operation. More... | |
bool | append (MRenderOperation *operation) |
Add a MRenderOperation to the list. More... | |
bool | insertBefore (const MString &name, MRenderOperation *operation) |
Insert a MRenderOperation in the list before the operation with a name matching the input. More... | |
bool | insertAfter (const MString &name, MRenderOperation *operation) |
Insert a MRenderOperation in the list after the operation with a name matching the input. More... | |
bool | remove (const MString &name) |
Remove a MRenderOperation from the list. More... | |
bool | removeAt (int index) |
Remove a MRenderOperation from the list. More... | |
MRenderOperation * | take (const MString &name) |
Remove a MRenderOperation from the list and return it. More... | |
MRenderOperation * | takeAt (int index) |
Remove a MRenderOperation from the list and return it. More... | |
int | indexOf (const MString &name) |
get the index of the operation with a name matching the input. More... | |
void | clear () |
Clears the list. | |
Static Public Member Functions | |
static const char * | className () |
Returns the name of this class. More... | |
int length | ( | ) | const |
Get the number of MRenderOperation in the list.
const MRenderOperation * operator[] | ( | int | index | ) | const |
Gets the MRenderOperation at the requested index.
[in] | index | The index of the MRenderOperation to retrieve |
MRenderOperation * operator[] | ( | int | index | ) |
Gets the MRenderOperation at the requested index.
[in] | index | The index of the MRenderOperation to retrieve |
bool replace | ( | const MString & | name, |
MRenderOperation * | operation | ||
) |
Replace the operation with the given name by a new operation.
The previous operation is deleted when replaced.
[in] | name | The name of the operation to replace. |
[in] | operation | The MRenderOperation to replace it with. |
bool append | ( | MRenderOperation * | operation | ) |
Add a MRenderOperation to the list.
Creates and stores a copy which is owned by the list.
[in] | operation | The MRenderOperation to add. |
bool insertBefore | ( | const MString & | name, |
MRenderOperation * | operation | ||
) |
Insert a MRenderOperation in the list before the operation with a name matching the input.
[in] | name | The name of the MRenderOperation to insert before |
[in] | operation | The operation to insert |
bool insertAfter | ( | const MString & | name, |
MRenderOperation * | operation | ||
) |
Insert a MRenderOperation in the list after the operation with a name matching the input.
[in] | name | The name of the MRenderOperation to insert after |
[in] | operation | The operation to insert |
bool remove | ( | const MString & | name | ) |
Remove a MRenderOperation from the list.
[in] | name | The name of the MRenderOperation to remove |
bool removeAt | ( | int | index | ) |
Remove a MRenderOperation from the list.
[in] | index | The index of the MRenderOperation to remove |
MRenderOperation * take | ( | const MString & | name | ) |
Remove a MRenderOperation from the list and return it.
The caller takes ownership of the returned operation.
[in] | name | The name of the MRenderOperation to take |
MRenderOperation * takeAt | ( | int | index | ) |
Remove a MRenderOperation from the list and return it.
The caller takes ownership of the returned operation.
[in] | index | The index of the MRenderOperation to take |
int indexOf | ( | const MString & | name | ) |
get the index of the operation with a name matching the input.
[in] | name | The name of the MRenderOperation locate |
|
static |
Returns the name of this class.