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 =========================================================================*/
27 #ifndef vtkGenericOpenGLRenderWindow_h
28 #define vtkGenericOpenGLRenderWindow_h
29 
30 #include "vtkRenderingOpenGL2Module.h" // For export macro
31 #include "vtkOpenGLRenderWindow.h"
32 
33 class VTKRENDERINGOPENGL2_EXPORT vtkGenericOpenGLRenderWindow :
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent);
40 protected:
43 
44 public:
45 
47  void Finalize();
48 
51  void Frame();
52 
55  void MakeCurrent();
56 
60  bool IsCurrent();
61 
66 
70  int IsDirect();
71 
72  // {@
74  void SetFrontBuffer(unsigned int);
75  void SetFrontLeftBuffer(unsigned int);
76  void SetFrontRightBuffer(unsigned int);
77  void SetBackBuffer(unsigned int);
78  void SetBackLeftBuffer(unsigned int);
79  void SetBackRightBuffer(unsigned int);
80  // }@
81 
83  void PushState() {}
85  void PopState() {}
86 
87  // {@
89  void SetWindowId(void*);
91  void SetDisplayId(void*);
92  void SetParentId(void*);
97  void SetWindowInfo(char*);
98  void SetParentInfo(char*);
99  int* GetScreenSize();
100  void Start();
101  void HideCursor();
102  void ShowCursor();
103  void SetFullScreen(int);
104  void WindowRemap();
106  void SetNextWindowId(void*);
107  void SetNextWindowInfo(char*);
110  // }@
111 
113 
117  void SetIsDirect(int newValue);
118  void SetSupportsOpenGL(int newValue);
119  void SetIsCurrent(bool newValue);
121 
122 protected:
123  int DirectStatus;
124  int SupportsOpenGLStatus;
125  bool CurrentStatus;
126 
127 private:
129  void operator=(const vtkGenericOpenGLRenderWindow&) VTK_DELETE_FUNCTION;
130 };
131 
132 #endif
platform independent render window
void Frame()
flush the pending drawing operations Class user may to watch for WindowFrameEvent and act on it
void CreateAWindow()
Create a not-off-screen window.
void DestroyWindow()
Destroy a not-off-screen window.
void SetBackBuffer(unsigned int)
void Finalize()
Cleans up graphics resources allocated in the context for this VTK scene.
void SetWindowId(void *)
does nothing
void SetDisplayId(void *)
Dummy stubs for vtkWindow API.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void WindowRemap()
Remap the rendering window.
int GetEventPending()
Check to see if a mouse button has been pressed.
void SetSupportsOpenGL(int newValue)
void SetBackRightBuffer(unsigned int)
int IsDirect()
Returns if the context is direct.
void PopState()
no-op (for API compat with OpenGL1).
int * GetScreenSize()
Get the current size of the screen in pixels.
bool IsCurrent()
Returns if the context is current.
void SetFrontRightBuffer(unsigned int)
void SetFullScreen(int)
Turn on/off rendering full screen window size.
void SetIsDirect(int newValue)
Allow to update state within observer callback without changing data argument and MTime.
void SetIsCurrent(bool newValue)
void Start()
Initialize the rendering process.
int SupportsOpenGL()
Returns if OpenGL is supported.
void SetFrontLeftBuffer(unsigned int)
void SetFrontBuffer(unsigned int)
set the drawing buffers to use
void SetBackLeftBuffer(unsigned int)
void MakeCurrent()
Makes the context current.
void PushState()
no-op (for API compat with OpenGL1).
void HideCursor()
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
static vtkGenericOpenGLRenderWindow * New()
a simple class to control print indentation
Definition: vtkIndent.h:40
OpenGL rendering window.