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);
69 ShaderItemPtr getShaderItem(QString image_uid)
const;
70 int getNumberOfUploadedTextures()
const;
72 void add(ShaderItemPtr item);
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 vtkOpenGLBufferObjectPtr mTextureCoordinates
vtkSmartPointer< class vtkTextureObject > vtkTextureObjectPtr
vtkSmartPointer< class ShaderCallback > ShaderCallbackPtr
vtkSmartPointer< class vtkOpenGLBufferObject > vtkOpenGLBufferObjectPtr
vtkSmartPointer< class vtkTextureObject > vtkTextureObjectPtr
The ShaderCallback class is used to update information sent to our custom OpenGL shaders.
QString mTextureCoordinatesUid
boost::shared_ptr< ShaderItem > ShaderItemPtr
vtkSmartPointer< class vtkOpenGLBufferObject > vtkOpenGLBufferObjectPtr
vtkTextureObjectPtr mTexture
Namespace for all CustusX production code.