Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QVTKFramebufferObjectRenderer.h
Go to the documentation of this file.
1 /*===================================================================
2 
3  The Medical Imaging Interaction Toolkit (MITK)
4 
5  Copyright (c) German Cancer Research Center,
6  Division of Medical and Biological Informatics.
7  All rights reserved.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without
10  even the implied warranty of MERCHANTABILITY or FITNESS FOR
11  A PARTICULAR PURPOSE.
12 
13  See LICENSE.txt or http://www.mitk.org for details.
14 
15  ===================================================================*/
16 
17 #ifndef __QVTKFramebufferObjectRenderer_h
18 #define __QVTKFramebufferObjectRenderer_h
19 
20 #include <QQuickFramebufferObject>
21 #include <vtkFrameBufferObject2.h>
22 
24 #include "QVTKQuickItem.h"
25 
27 
28 class MITKOPENVIEWCORE_EXPORT QVTKFramebufferObjectRenderer : public QQuickFramebufferObject::Renderer
29 {
30 public:
34  vtkFrameBufferObject2* m_vtkFBO;
35 
37 
38 public:
41 
42  virtual void synchronize(QQuickFramebufferObject * item);
43  virtual void render();
44 
45  QOpenGLFramebufferObject *createFramebufferObject(const QSize &size);
46 
48 };
49 
50 #endif
vtkInternalOpenGLRenderWindow * m_vtkRenderWindow
#define MITKOPENVIEWCORE_EXPORT