00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkRenderWindow.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00032 #ifndef vtkGenericOpenGLRenderWindow_hpp 00033 #define vtkGenericOpenGLRenderWindow_hpp 00034 00035 #include "vtkOpenGLRenderWindow.h" 00036 00037 class VTK_RENDERING_EXPORT vtkGenericOpenGLRenderWindow : public vtkOpenGLRenderWindow 00038 { 00039 public: 00040 static vtkGenericOpenGLRenderWindow* New(); 00041 vtkTypeMacro(vtkGenericOpenGLRenderWindow, vtkOpenGLRenderWindow); 00042 void PrintSelf(ostream& os, vtkIndent indent); 00043 protected: 00044 vtkGenericOpenGLRenderWindow(); 00045 ~vtkGenericOpenGLRenderWindow(); 00046 00047 public: 00048 00050 void Finalize(); 00051 00054 void Frame(); 00055 00058 void MakeCurrent(); 00059 00063 bool IsCurrent(); 00064 00068 int SupportsOpenGL(); 00069 00073 int IsDirect(); 00074 00075 // {@ 00077 void SetFrontBuffer(unsigned int); 00078 void SetFrontLeftBuffer(unsigned int); 00079 void SetFrontRightBuffer(unsigned int); 00080 void SetBackBuffer(unsigned int); 00081 void SetBackLeftBuffer(unsigned int); 00082 void SetBackRightBuffer(unsigned int); 00083 // }@ 00084 00086 void PushState(); 00088 void PopState(); 00089 00090 // {@ 00092 void SetWindowId(void*); 00093 void* GetGenericWindowId(); 00094 void SetDisplayId(void*); 00095 void SetParentId(void*); 00096 void* GetGenericDisplayId(); 00097 void* GetGenericParentId(); 00098 void* GetGenericContext(); 00099 void* GetGenericDrawable(); 00100 void SetWindowInfo(char*); 00101 void SetParentInfo(char*); 00102 int* GetScreenSize(); 00103 void Start(); 00104 void HideCursor(); 00105 void ShowCursor(); 00106 void SetFullScreen(int); 00107 void WindowRemap(); 00108 int GetEventPending(); 00109 void SetNextWindowId(void*); 00110 void SetNextWindowInfo(char*); 00111 void CreateAWindow(); 00112 void DestroyWindow(); 00113 // }@ 00114 00115 protected: 00116 00117 private: 00118 vtkGenericOpenGLRenderWindow(const vtkGenericOpenGLRenderWindow&); // Not implemented. 00119 void operator=(const vtkGenericOpenGLRenderWindow&); // Not implemented. 00120 }; 00121 00122 #endif