VTK
vtkGenericOpenGLRenderWindow.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRenderWindow.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef vtkGenericOpenGLRenderWindow_hpp
30 #define vtkGenericOpenGLRenderWindow_hpp
31 
32 #include "vtkRenderingOpenGLModule.h" // For export macro
33 #include "vtkOpenGLRenderWindow.h"
34 
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent);
41 protected:
44 
45 public:
46 
48  void Finalize();
49 
52  void Frame();
53 
56  void MakeCurrent();
57 
61  bool IsCurrent();
62 
66  int SupportsOpenGL();
67 
71  int IsDirect();
72 
73  // {@
75  void SetFrontBuffer(unsigned int);
76  void SetFrontLeftBuffer(unsigned int);
77  void SetFrontRightBuffer(unsigned int);
78  void SetBackBuffer(unsigned int);
79  void SetBackLeftBuffer(unsigned int);
80  void SetBackRightBuffer(unsigned int);
81  // }@
82 
84  void PushState();
86  void PopState();
87 
88  // {@
90  void SetWindowId(void*);
91  void* GetGenericWindowId();
92  void SetDisplayId(void*);
93  void SetParentId(void*);
94  void* GetGenericDisplayId();
95  void* GetGenericParentId();
96  void* GetGenericContext();
97  void* GetGenericDrawable();
98  void SetWindowInfo(char*);
99  void SetParentInfo(char*);
100  int* GetScreenSize();
101  void Start();
102  void HideCursor();
103  void ShowCursor();
104  void SetFullScreen(int);
105  void WindowRemap();
106  int GetEventPending();
107  void SetNextWindowId(void*);
108  void SetNextWindowInfo(char*);
109  void CreateAWindow();
110  void DestroyWindow();
111  // }@
112 
114 
116  void SetIsDirect(int newValue);
117  void SetSupportsOpenGL(int newValue);
118  void SetIsCurrent(bool newValue);
120 
121 protected:
125 
126 private:
128  void operator=(const vtkGenericOpenGLRenderWindow&); // Not implemented.
129 };
130 
131 #endif
OpenGL rendering window.
virtual void Finalize()=0
virtual void SetWindowInfo(char *)=0
virtual void WindowRemap()=0
virtual void * GetGenericContext()=0
void PrintSelf(ostream &os, vtkIndent indent)
virtual void HideCursor()=0
virtual void * GetGenericDisplayId()=0
static vtkRenderWindow * New()
virtual int * GetScreenSize()=0
virtual void SetWindowId(void *)=0
virtual void SetNextWindowInfo(char *)=0
virtual void SetFullScreen(int)=0
virtual void * GetGenericDrawable()=0
virtual int GetEventPending()=0
virtual int IsDirect()
virtual int SupportsOpenGL()
virtual void SetParentInfo(char *)=0
virtual bool IsCurrent()=0
virtual void SetParentId(void *)=0
platform independent render window
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void DestroyWindow()=0
virtual void SetDisplayId(void *)=0
#define VTKRENDERINGOPENGL_EXPORT
virtual void MakeCurrent()=0
virtual void SetNextWindowId(void *)=0
virtual void Frame()=0
virtual void Start()=0
virtual void CreateAWindow()=0
virtual void * GetGenericParentId()=0
virtual void ShowCursor()=0
virtual void * GetGenericWindowId()=0