33 #ifndef CXSINGLEVOLUMEPAINTERHELPER_H 34 #define CXSINGLEVOLUMEPAINTERHELPER_H 36 #include "cxResourceVisualizationExport.h" 38 #include <vtkCommand.h> 43 class vtkOpenGLHelper;
44 class vtkShaderProgram;
45 class vtkOpenGLVertexArrayObject;
88 virtual void Execute(vtkObject *,
unsigned long eventId,
void*cbo);
90 ShaderItemPtr getShaderItem(QString image_uid)
const;
91 int getNumberOfUploadedTextures()
const;
93 void add(ShaderItemPtr item);
94 void clearShaderItems();
97 static void addArrayToAttributeArray(vtkShaderProgram *program,
vtkOpenGLBufferObjectPtr buffer, std::string name,
int vector_index);
98 static void addUniformiArray(vtkShaderProgram *program, std::string name,
int value);
99 static void addUniformfArray(vtkShaderProgram *program, std::string name,
float value);
100 static void bindFSOutputVariable(vtkShaderProgram *program);
102 std::string getVectorNameFromName(std::string name,
int index_of_vector)
const;
103 void printDebugInfo(vtkOpenGLHelper *OpenGLHelper);
105 std::vector<ShaderItemPtr> mShaderItems;
110 #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.