12 #ifndef CXSHAREDOPENGLCONTEXT_H 13 #define CXSHAREDOPENGLCONTEXT_H 21 #include <boost/shared_ptr.hpp> 24 #include "cxResourceVisualizationExport.h" 52 bool makeCurrent()
const;
53 int getNumberOfTexturesInUse()
const;
57 bool hasUploadedImage(QString image_uid)
const;
59 bool delete3DTextureForImage(QString image_uid);
63 bool hasUploadedLUT(QString image_uid)
const;
65 bool delete1DTextureForLUT(QString image_uid);
68 bool upload3DTextureCoordinates(QString uid,
vtkFloatArrayPtr texture_coordinates);
69 bool hasUploadedTextureCoordinates(QString uid)
const;
76 bool create3DTextureObject(
vtkTextureObjectPtr texture_object,
unsigned int width,
unsigned int height,
unsigned int depth,
int dataType,
int numComps,
void *data,
vtkOpenGLRenderWindowPtr opengl_renderwindow)
const;
77 vtkOpenGLBufferObjectPtr allocateAndUploadArrayBuffer(QString uid,
int my_numberOfTextureCoordinates,
int numberOfComponentsPerTexture,
const float *texture_data)
const;
84 std::map<QString, std::pair<vtkTextureObjectPtr, unsigned long> > m1DTextureObjects;
85 std::map<QString, std::pair<vtkTextureObjectPtr, unsigned long> > m3DTextureObjects;
87 std::map<QString, vtkOpenGLBufferObjectPtr > mTextureCoordinateBuffers;
92 bool useLinearInterpolation()
const;
97 #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.