MeVisLab Toolbox Reference
|
Open Inventor multiple field managing a list of shader objects. More...
#include <SoMFShaderObject.h>
Public Member Functions | |
void | addShader (SoShaderObject *shader) |
Add vertex or fragment shader. | |
void | insertShader (SoShaderObject *shader, int newShaderIndex) |
Insert shader at given index. | |
SoShaderObject * | getShader (int index) const |
Get shader at given index. | |
SoNodeList | getShaderList () const |
Return list of managed shaders. | |
int | findShader (const SoShaderObject *shader) const |
Find shader using given pointer. | |
int | getNumShaders () const |
Return number of shaders managed by the field. | |
void | removeShader (int index) |
Remove shader at given index. | |
void | removeShader (SoShaderObject *shader) |
Remove shader using given pointer. | |
void | removeAllShaders () |
Remove all shaders from the field. | |
void | replaceShader (int index, SoShaderObject *newShader) |
Replace shader at given index with new one. | |
void | replaceShader (SoShaderObject *oldShader, SoShaderObject *newShader) |
Replace shader with new one using given pointer. | |
void | fixCopy (SbBool copyConnections) override |
Update a copied field to use the copy of each node if there is one. | |
SbBool | referencesCopy () const override |
Override this to also check the stored nodes. | |
Static Public Member Functions | |
static void | initClass () |
Initialize class with runtime type system. | |
Open Inventor multiple field managing a list of shader objects.
Definition at line 26 of file SoMFShaderObject.h.
void SoMFShaderObject::addShader | ( | SoShaderObject * | shader | ) |
Add vertex or fragment shader.
int SoMFShaderObject::findShader | ( | const SoShaderObject * | shader | ) | const |
Find shader using given pointer.
Update a copied field to use the copy of each node if there is one.
int SoMFShaderObject::getNumShaders | ( | ) | const |
Return number of shaders managed by the field.
SoShaderObject * SoMFShaderObject::getShader | ( | int | index | ) | const |
Get shader at given index.
SoNodeList SoMFShaderObject::getShaderList | ( | ) | const |
Return list of managed shaders.
void SoMFShaderObject::insertShader | ( | SoShaderObject * | shader, |
int | newShaderIndex ) |
Insert shader at given index.
|
override |
Override this to also check the stored nodes.
void SoMFShaderObject::removeAllShaders | ( | ) |
Remove all shaders from the field.
|
inline |
Remove shader using given pointer.
Definition at line 56 of file SoMFShaderObject.h.
References mlrange_cast().
void SoMFShaderObject::replaceShader | ( | int | index, |
SoShaderObject * | newShader ) |
Replace shader at given index with new one.
|
inline |
Replace shader with new one using given pointer.
Definition at line 67 of file SoMFShaderObject.h.
References mlrange_cast().