61#ifndef vtkGLSLModPixelDebugger_h
62#define vtkGLSLModPixelDebugger_h
67#include "vtkRenderingOpenGL2Module.h"
70VTK_ABI_NAMESPACE_BEGIN
86 this->SubstitutionJSONFileName = filename;
91 std::string& tessControlShader, std::string& tessEvalShader, std::string& geometryShader,
96 vtkActor* vtkNotUsed(actor))
override
98 return this->HashSubstitutionJSONFileContents() ==
99 this->LastSubstitutionJSONFileContentsToken &&
100 this->HashGLSLFilesContents() == this->LastGLSLFilesContentsToken;
abstract class specifies interface to map data
represents an object (geometry & properties) in a rendered scene
Allow live pixel debugging by overwriting gl_FragData[0] output.
std::string SubstitutionJSONFileName
vtkStringToken HashGLSLFilesContents()
bool IsUpToDate(vtkOpenGLRenderer *vtkNotUsed(renderer), vtkAbstractMapper *vtkNotUsed(mapper), vtkActor *vtkNotUsed(actor)) override
static vtkGLSLModPixelDebugger * New()
bool SetShaderParameters(vtkOpenGLRenderer *renderer, vtkShaderProgram *program, vtkAbstractMapper *mapper, vtkActor *actor, vtkOpenGLVertexArrayObject *VAO=nullptr) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkGLSLModPixelDebugger() override
vtkStringToken LastGLSLFilesContentsToken
bool ReplaceShaderValues(vtkOpenGLRenderer *renderer, std::string &vertexShader, std::string &tessControlShader, std::string &tessEvalShader, std::string &geometryShader, std::string &fragmentShader, vtkAbstractMapper *mapper, vtkActor *actor) override
Abstract interfaces to replace shader values and apply parameters as uniform values.
vtkStringToken HashSubstitutionJSONFileContents()
vtkStringToken LastSubstitutionJSONFileContentsToken
void SetSubstitutionJSONFileName(const std::string &filename)
Set this to a json file on your file system.
vtkGLSLModPixelDebugger()
Abstract class that helps you develop modifier for VTK GLSL shaders.
a simple class to control print indentation
The VertexArrayObject class uses, or emulates, vertex array objects.
The ShaderProgram uses one or more Shader objects.
Represent a string by its integer hash.