MeVisLab Toolbox Reference
SoMFShaderObject Class Reference

Open Inventor multiple field managing a list of shader objects. More...

#include <SoMFShaderObject.h>

Inheritance diagram for SoMFShaderObject:

Public Member Functions

void addShader (SoShaderObject *shader)
 Add vertex or fragment shader.
 
void insertShader (SoShaderObject *shader, int newShaderIndex)
 Insert shader at given index.
 
SoShaderObjectgetShader (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.
 

Detailed Description

Open Inventor multiple field managing a list of shader objects.

Definition at line 26 of file SoMFShaderObject.h.

Member Function Documentation

◆ addShader()

void SoMFShaderObject::addShader ( SoShaderObject * shader)

Add vertex or fragment shader.

◆ findShader()

int SoMFShaderObject::findShader ( const SoShaderObject * shader) const

Find shader using given pointer.

◆ fixCopy()

void SoMFShaderObject::fixCopy ( SbBool copyConnections)
override

Update a copied field to use the copy of each node if there is one.

◆ getNumShaders()

int SoMFShaderObject::getNumShaders ( ) const

Return number of shaders managed by the field.

◆ getShader()

SoShaderObject * SoMFShaderObject::getShader ( int index) const

Get shader at given index.

◆ getShaderList()

SoNodeList SoMFShaderObject::getShaderList ( ) const

Return list of managed shaders.

◆ initClass()

static void SoMFShaderObject::initClass ( )
static

Initialize class with runtime type system.

◆ insertShader()

void SoMFShaderObject::insertShader ( SoShaderObject * shader,
int newShaderIndex )

Insert shader at given index.

◆ referencesCopy()

SbBool SoMFShaderObject::referencesCopy ( ) const
override

Override this to also check the stored nodes.

◆ removeAllShaders()

void SoMFShaderObject::removeAllShaders ( )

Remove all shaders from the field.

◆ removeShader() [1/2]

void SoMFShaderObject::removeShader ( int index)

Remove shader at given index.

◆ removeShader() [2/2]

void SoMFShaderObject::removeShader ( SoShaderObject * shader)
inline

Remove shader using given pointer.

Definition at line 56 of file SoMFShaderObject.h.

References mlrange_cast().

◆ replaceShader() [1/2]

void SoMFShaderObject::replaceShader ( int index,
SoShaderObject * newShader )

Replace shader at given index with new one.

◆ replaceShader() [2/2]

void SoMFShaderObject::replaceShader ( SoShaderObject * oldShader,
SoShaderObject * newShader )
inline

Replace shader with new one using given pointer.

Definition at line 67 of file SoMFShaderObject.h.

References mlrange_cast().


The documentation for this class was generated from the following file: