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 =========================================================================*/
30 #ifndef vtkGenericOpenGLRenderWindow_h
31 #define vtkGenericOpenGLRenderWindow_h
32 
33 #include "vtkRenderingOpenGLModule.h" // For export macro
34 #include "vtkOpenGLRenderWindow.h"
35 
36 class VTKRENDERINGOPENGL_EXPORT vtkGenericOpenGLRenderWindow : public vtkOpenGLRenderWindow
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 protected:
45 
46 public:
47 
49  void Finalize();
50 
53  void Frame();
54 
57  void MakeCurrent();
58 
62  bool IsCurrent();
63 
67  int SupportsOpenGL();
68 
72  int IsDirect();
73 
74  // {@
76  void SetFrontBuffer(unsigned int);
77  void SetFrontLeftBuffer(unsigned int);
78  void SetFrontRightBuffer(unsigned int);
79  void SetBackBuffer(unsigned int);
80  void SetBackLeftBuffer(unsigned int);
81  void SetBackRightBuffer(unsigned int);
82  // }@
83 
85  void PushState();
87  void PopState();
88 
89  // {@
91  void SetWindowId(void*);
92  void* GetGenericWindowId();
93  void SetDisplayId(void*);
94  void SetParentId(void*);
95  void* GetGenericDisplayId();
96  void* GetGenericParentId();
97  void* GetGenericContext();
98  void* GetGenericDrawable();
99  void SetWindowInfo(char*);
100  void SetParentInfo(char*);
101  int* GetScreenSize();
102  void Start();
103  void HideCursor();
104  void ShowCursor();
105  void SetFullScreen(int);
106  void WindowRemap();
107  int GetEventPending();
108  void SetNextWindowId(void*);
109  void SetNextWindowInfo(char*);
110  void CreateAWindow();
111  void DestroyWindow();
112  // }@
113 
115 
119  void SetIsDirect(int newValue);
120  void SetSupportsOpenGL(int newValue);
121  void SetIsCurrent(bool newValue);
123 
124 protected:
128 
129 private:
131  void operator=(const vtkGenericOpenGLRenderWindow&) VTK_DELETE_FUNCTION;
132 };
133 
134 #endif
OpenGL rendering window.
virtual void Finalize()=0
Finalize the rendering process.
virtual void SetWindowInfo(char *)=0
Dummy stubs for vtkWindow API.
virtual void WindowRemap()=0
Remap the rendering window.
virtual void * GetGenericContext()=0
Dummy stubs for vtkWindow API.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void HideCursor()=0
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
virtual void * GetGenericDisplayId()=0
Dummy stubs for vtkWindow API.
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on...
virtual int * GetScreenSize()=0
Get the current size of the screen in pixels.
virtual void SetWindowId(void *)=0
Dummy stubs for vtkWindow API.
virtual void SetNextWindowInfo(char *)=0
Dummy stubs for vtkWindow API.
virtual void SetFullScreen(int)=0
Turn on/off rendering full screen window size.
virtual void * GetGenericDrawable()=0
Dummy stubs for vtkWindow API.
virtual int GetEventPending()=0
Check to see if a mouse button has been pressed.
virtual int IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
virtual void SetParentInfo(char *)=0
Dummy stubs for vtkWindow API.
virtual bool IsCurrent()=0
Tells if this window is the current graphics context for the calling thread.
virtual void SetParentId(void *)=0
Dummy stubs for vtkWindow API.
platform independent render window
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void DestroyWindow()=0
Destroy a not-off-screen window.
virtual void SetDisplayId(void *)=0
Dummy stubs for vtkWindow API.
virtual void MakeCurrent()=0
Attempt to make this window the current graphics context for the calling thread.
virtual void SetNextWindowId(void *)=0
Dummy stubs for vtkWindow API.
virtual void Frame()=0
A termination method performed at the end of the rendering process to do things like swapping buffers...
virtual void Start()=0
Initialize the rendering process.
virtual void CreateAWindow()=0
Create a not-off-screen window.
virtual int SupportsOpenGL()
Does this render window support OpenGL? 0-false, 1-true.
virtual void * GetGenericParentId()=0
Dummy stubs for vtkWindow API.
virtual void ShowCursor()=0
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
virtual void * GetGenericWindowId()=0
Dummy stubs for vtkWindow API.