10#ifndef vtkGLSLModifierFactory_h
11#define vtkGLSLModifierFactory_h
13#include "vtkRenderingOpenGL2Module.h"
19VTK_ABI_NAMESPACE_BEGIN
36 const std::string& modName,
NewModFunction createFunction,
void* userData =
nullptr);
53 std::map<std::string, ModCreator> ModTable;
Abstract class that helps you develop modifier for VTK GLSL shaders.
This class empowers developers to write and use GLSL mods eaisly in VTK.
std::function< vtkGLSLModifierBase *(void *userData)> NewModFunction
~vtkGLSLModifierFactory()=default
static void RegisterAMod(const std::string &modName, NewModFunction createFunction, void *userData=nullptr)
Developers should register runtime GLSL mods by invoking this function.
vtkGLSLModifierFactory()=default
static vtkGLSLModifierBase * CreateAMod(const std::string &modName)
Used by VTK to create a mod for rendering.