Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
FLmitkRenderWindow.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 FLMITKRENDERWINDOW_H_HEADER_INCLUDED
18 //#define FLMITKRENDERWINDOW_H_HEADER_INCLUDED
19 //#include <iostream>
20 //#include <Fl/Fl_Gl_Window.h>
21 //#include "mitkGL.h"
22 //#include "mitkRenderWindow.h"
23 //#include "mitkBaseRenderer.h"
24 //
25 //
26 //class FLmitkRenderWindow : public mitk::RenderWindow, public Fl_Gl_Window {
27 // public:
28 // FLmitkRenderWindow(int x,int y,int width,int height,const char* label = "fltk gl win") : mitk::RenderWindow(label,NULL ), Fl_Gl_Window(x,y,width,height), m_InitNeeded(true),m_ResizeNeeded(true) { std::cout << "c'tor FLmitkRenderWindow" << std::endl;}
29 //
30 // virtual void MakeCurrent() { make_current(); }
31 //
32 // //##Documentation
33 // //## @brief Swaps the screen contents with an off-screen buffer.
34 // //##
35 // //## This only works if the widget's format specifies double buffer mode.
36 // //## Normally, there is no need to explicitly call this function because it is done automatically
37 // //## after each widget repaint, i.e. each time after paintGL() has been executed.
38 // virtual void SwapBuffers () { swap_buffers(); }
39 //
40 // //##Documentation
41 // //## @brief Returns @a true if display list sharing with another window
42 // //## was requested and could be provided.
43 // //##
44 // //## For example, a OpenGL system may fail to provide display list sharing
45 // //## if the two windows use different formats.
46 // virtual bool IsSharing () const { return false;}
47 //
48 // //##Documentation
49 // //## @brief Immediately repaints the contents of the renderwindow
50 // //##
51 // //## Renderwindow will be updated before repainting.
52 // virtual void paint() { std::cout << "paint() called" << std::endl; }
53 // virtual void InitRenderer();
54 // virtual void draw();
55 // virtual int handle(int event) { return Fl_Gl_Window::handle(event); }
56 // virtual ~FLmitkRenderWindow() {};
57 // virtual void resize(int x, int y, int w, int h);
58 //
59 //protected:
60 // virtual void Repaint() { invalidate(); }
61 //
62 // bool m_InitNeeded;
63 // bool m_ResizeNeeded;
64 //
65 //};
66 //
67 //#endif /* FLMITKRENDERWINDOW_H_HEADER_INCLUDED */
68 //