33 #ifndef CXSHAREDOPENGLCONTEXT_H 34 #define CXSHAREDOPENGLCONTEXT_H 42 #include <boost/shared_ptr.hpp> 45 #include "cxResourceVisualizationExport.h" 73 bool makeCurrent()
const;
74 int getNumberOfTexturesInUse()
const;
78 bool hasUploadedImage(QString image_uid)
const;
80 bool delete3DTextureForImage(QString image_uid);
84 bool hasUploadedLUT(QString image_uid)
const;
86 bool delete1DTextureForLUT(QString image_uid);
89 bool upload3DTextureCoordinates(QString uid,
vtkFloatArrayPtr texture_coordinates);
90 bool hasUploadedTextureCoordinates(QString uid)
const;
97 bool create3DTextureObject(
vtkTextureObjectPtr texture_object,
unsigned int width,
unsigned int height,
unsigned int depth,
int dataType,
int numComps,
void *data,
vtkOpenGLRenderWindowPtr opengl_renderwindow)
const;
98 vtkOpenGLBufferObjectPtr allocateAndUploadArrayBuffer(QString uid,
int my_numberOfTextureCoordinates,
int numberOfComponentsPerTexture,
const float *texture_data)
const;
105 std::map<QString, std::pair<vtkTextureObjectPtr, unsigned long> > m1DTextureObjects;
106 std::map<QString, std::pair<vtkTextureObjectPtr, unsigned long> > m3DTextureObjects;
108 std::map<QString, vtkOpenGLBufferObjectPtr > mTextureCoordinateBuffers;
113 bool useLinearInterpolation()
const;
118 #endif // CXSHAREDOPENGLCONTEXT_H
vtkSmartPointer< class vtkTextureObject > vtkTextureObjectPtr
boost::shared_ptr< class Image > ImagePtr
vtkSmartPointer< class vtkFloatArray > vtkFloatArrayPtr
vtkSmartPointer< class vtkUnsignedCharArray > vtkUnsignedCharArrayPtr
vtkSmartPointer< class vtkOpenGLBufferObject > vtkOpenGLBufferObjectPtr
vtkSmartPointer< class vtkOpenGLRenderWindow > vtkOpenGLRenderWindowPtr
boost::shared_ptr< class SharedOpenGLContext > SharedOpenGLContextPtr
void print(QString header, QRect r)
Namespace for all CustusX production code.