00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 //#ifndef FLMITKRENDERWINDOW_H_HEADER_INCLUDED 00019 //#define FLMITKRENDERWINDOW_H_HEADER_INCLUDED 00020 //#include <iostream> 00021 //#include <Fl/Fl_Gl_Window.h> 00022 //#include "mitkGL.h" 00023 //#include "mitkRenderWindow.h" 00024 //#include "mitkBaseRenderer.h" 00025 // 00026 // 00027 //class FLmitkRenderWindow : public mitk::RenderWindow, public Fl_Gl_Window { 00028 // public: 00029 // 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;} 00030 // 00031 // virtual void MakeCurrent() { make_current(); } 00032 // 00033 // //##Documentation 00034 // //## @brief Swaps the screen contents with an off-screen buffer. 00035 // //## 00036 // //## This only works if the widget's format specifies double buffer mode. 00037 // //## Normally, there is no need to explicitly call this function because it is done automatically 00038 // //## after each widget repaint, i.e. each time after paintGL() has been executed. 00039 // virtual void SwapBuffers () { swap_buffers(); } 00040 // 00041 // //##Documentation 00042 // //## @brief Returns @a true if display list sharing with another window 00043 // //## was requested and could be provided. 00044 // //## 00045 // //## For example, a OpenGL system may fail to provide display list sharing 00046 // //## if the two windows use different formats. 00047 // virtual bool IsSharing () const { return false;} 00048 // 00049 // //##Documentation 00050 // //## @brief Immediately repaints the contents of the renderwindow 00051 // //## 00052 // //## Renderwindow will be updated before repainting. 00053 // virtual void paint() { std::cout << "paint() called" << std::endl; } 00054 // virtual void InitRenderer(); 00055 // virtual void draw(); 00056 // virtual int handle(int event) { return Fl_Gl_Window::handle(event); } 00057 // virtual ~FLmitkRenderWindow() {}; 00058 // virtual void resize(int x, int y, int w, int h); 00059 // 00060 //protected: 00061 // virtual void Repaint() { invalidate(); } 00062 // 00063 // bool m_InitNeeded; 00064 // bool m_ResizeNeeded; 00065 // 00066 //}; 00067 // 00068 //#endif /* FLMITKRENDERWINDOW_H_HEADER_INCLUDED */ 00069 //