/*===================================================================

 The Medical Imaging Interaction Toolkit (MITK)

 Copyright (c) German Cancer Research Center,
 Division of Medical and Biological Informatics.
 All rights reserved.

 This software is distributed WITHOUT ANY WARRANTY; without
 even the implied warranty of MERCHANTABILITY or FITNESS FOR
 A PARTICULAR PURPOSE.

 See LICENSE.txt or http://www.mitk.org for details.

 ===================================================================*/

#ifndef __QVTKFramebufferObjectRenderer_h
#define __QVTKFramebufferObjectRenderer_h

#include <QQuickFramebufferObject>

#include "QVTKQuickItem.h"

#include <MitkOpenViewCoreExports.h>

class vtkInternalOpenGLRenderWindow;

//! Part of Qml rendering prototype, see QmlMitkRenderWindowItem.
class MITKOPENVIEWCORE_EXPORT QVTKFramebufferObjectRenderer : public QQuickFramebufferObject::Renderer
{
public:
  bool m_neverRendered;
  bool m_readyToRender;
  vtkInternalOpenGLRenderWindow *m_vtkRenderWindow;

  QVTKQuickItem *m_vtkQuickItem;

public:
  QVTKFramebufferObjectRenderer(vtkInternalOpenGLRenderWindow *rw);
  ~QVTKFramebufferObjectRenderer();

  virtual void synchronize(QQuickFramebufferObject * item);
  virtual void render();

  QOpenGLFramebufferObject *createFramebufferObject(const QSize &size);

  friend class vtkInternalOpenGLRenderWindow;
};

#endif

/*===================================================================

 The Medical Imaging Interaction Toolkit (MITK)

 Copyright (c) German Cancer Research Center,
 Division of Medical and Biological Informatics.
 All rights reserved.

 This software is distributed WITHOUT ANY WARRANTY; without
 even the implied warranty of MERCHANTABILITY or FITNESS FOR
 A PARTICULAR PURPOSE.

 See LICENSE.txt or http://www.mitk.org for details.

 ===================================================================*/

#ifndef __QVTKFramebufferObjectRenderer_h
#define __QVTKFramebufferObjectRenderer_h

#include <QQuickFramebufferObject>

#include "QVTKQuickItem.h"

#include <MitkOpenViewCoreExports.h>

class vtkInternalOpenGLRenderWindow;

//! Part of Qml rendering prototype, see QmlMitkRenderWindowItem.
class MITKOPENVIEWCORE_EXPORT QVTKFramebufferObjectRenderer : public QQuickFramebufferObject::Renderer
{
public:
  vtkInternalOpenGLRenderWindow *m_vtkRenderWindow;
  bool m_neverRendered;
  bool m_readyToRender;

  QVTKQuickItem *m_vtkQuickItem;

public:
  QVTKFramebufferObjectRenderer(vtkInternalOpenGLRenderWindow *rw);
  ~QVTKFramebufferObjectRenderer();

  virtual void synchronize(QQuickFramebufferObject * item);
  virtual void render();

  QOpenGLFramebufferObject *createFramebufferObject(const QSize &size);

  friend class vtkInternalOpenGLRenderWindow;
};

#endif

Fix warnings in OpenViewCore module
Fix warnings in OpenViewCore module
