12 #ifndef CXSINGLEVOLUMEPAINTERHELPER_H
13 #define CXSINGLEVOLUMEPAINTERHELPER_H
15 #include "cxResourceVisualizationExport.h"
17 #include <vtkCommand.h>
22 class vtkOpenGLHelper;
23 class vtkShaderProgram;
24 class vtkOpenGLVertexArrayObject;
67 virtual void Execute(vtkObject *,
unsigned long eventId,
void*cbo);
70 int getNumberOfUploadedTextures()
const;
73 void clearShaderItems();
76 static void addArrayToAttributeArray(vtkShaderProgram *program,
vtkOpenGLBufferObjectPtr buffer, std::string name,
int vector_index);
77 static void addUniformiArray(vtkShaderProgram *program, std::string name,
int value);
78 static void addUniformfArray(vtkShaderProgram *program, std::string name,
float value);
79 static void bindFSOutputVariable(vtkShaderProgram *program);
81 std::string getVectorNameFromName(std::string name,
int index_of_vector)
const;
82 void printDebugInfo(vtkOpenGLHelper *OpenGLHelper);
84 std::vector<ShaderItemPtr> mShaderItems;
89 #endif // CXSINGLEVOLUMEPAINTERHELPER_H