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 "vtkRenderingOpenGL2Module.h" // For export macro
34 #include "vtkOpenGLRenderWindow.h"
35 
36 class VTKRENDERINGOPENGL2_EXPORT vtkGenericOpenGLRenderWindow :
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 protected:
46 
47 public:
48 
50  void Finalize();
51 
54  void Frame();
55 
58  void MakeCurrent();
59 
63  bool IsCurrent();
64 
68  int SupportsOpenGL();
69 
73  int IsDirect();
74 
75  // {@
77  void SetFrontBuffer(unsigned int);
78  void SetFrontLeftBuffer(unsigned int);
79  void SetFrontRightBuffer(unsigned int);
80  void SetBackBuffer(unsigned int);
81  void SetBackLeftBuffer(unsigned int);
82  void SetBackRightBuffer(unsigned int);
83  // }@
84 
86  void PushState() {}
88  void PopState() {}
89 
90  // {@
92  void SetWindowId(void*);
93  void* GetGenericWindowId();
94  void SetDisplayId(void*);
95  void SetParentId(void*);
96  void* GetGenericDisplayId();
97  void* GetGenericParentId();
98  void* GetGenericContext();
99  void* GetGenericDrawable();
100  void SetWindowInfo(char*);
101  void SetParentInfo(char*);
102  int* GetScreenSize();
103  void Start();
104  void HideCursor();
105  void ShowCursor();
106  void SetFullScreen(int);
107  void WindowRemap();
108  int GetEventPending();
109  void SetNextWindowId(void*);
110  void SetNextWindowInfo(char*);
111  void CreateAWindow();
112  void DestroyWindow();
113  // }@
114 
116 
120  void SetIsDirect(int newValue);
121  void SetSupportsOpenGL(int newValue);
122  void SetIsCurrent(bool newValue);
124 
125 protected:
126  int DirectStatus;
127  int SupportsOpenGLStatus;
128  bool CurrentStatus;
129 
130 private:
132  void operator=(const vtkGenericOpenGLRenderWindow&) VTK_DELETE_FUNCTION;
133 };
134 
135 #endif
vtkOpenGLRenderWindow::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkRenderWindow::SetNextWindowInfo
virtual void SetNextWindowInfo(char *)=0
vtkRenderWindow::Start
virtual void Start()=0
Initialize the rendering process.
vtkRenderWindow::ShowCursor
virtual void ShowCursor()=0
vtkRenderWindow::SetFullScreen
virtual void SetFullScreen(int)=0
Turn on/off rendering full screen window size.
vtkRenderWindow::SetDisplayId
virtual void SetDisplayId(void *)=0
Dummy stubs for vtkWindow API.
vtkGenericOpenGLRenderWindow
platform independent render window
Definition: vtkGenericOpenGLRenderWindow.h:33
vtkOpenGLRenderWindow::SupportsOpenGL
virtual int SupportsOpenGL()
Does this render window support OpenGL? 0-false, 1-true.
vtkRenderWindow::HideCursor
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...
vtkRenderWindow::Finalize
virtual void Finalize()=0
Finalize the rendering process.
vtkRenderWindow::SetWindowInfo
virtual void SetWindowInfo(char *)=0
vtkWindow::GetScreenSize
virtual int * GetScreenSize()=0
Get the current size of the screen in pixels.
vtkRenderWindow::IsCurrent
virtual bool IsCurrent()=0
Tells if this window is the current graphics context for the calling thread.
vtkRenderWindow::WindowRemap
virtual void WindowRemap()=0
Remap the rendering window.
vtkRenderWindow::GetGenericParentId
virtual void * GetGenericParentId()=0
vtkOpenGLRenderWindow.h
vtkRenderWindow::GetGenericDisplayId
virtual void * GetGenericDisplayId()=0
vtkRenderWindow::GetGenericDrawable
virtual void * GetGenericDrawable()=0
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGenericOpenGLRenderWindow::PushState
void PushState()
no-op (for API compat with OpenGL1).
Definition: vtkGenericOpenGLRenderWindow.h:86
vtkRenderWindow::SetWindowId
virtual void SetWindowId(void *)=0
vtkRenderWindow::GetGenericWindowId
virtual void * GetGenericWindowId()=0
vtkRenderWindow::SetParentInfo
virtual void SetParentInfo(char *)=0
vtkRenderWindow::SetParentId
virtual void SetParentId(void *)=0
vtkRenderWindow::MakeCurrent
virtual void MakeCurrent()=0
Attempt to make this window the current graphics context for the calling thread.
vtkRenderWindow::GetGenericContext
virtual void * GetGenericContext()=0
vtkOpenGLRenderWindow::DestroyWindow
virtual void DestroyWindow()=0
Destroy a not-off-screen window.
vtkGenericOpenGLRenderWindow::PopState
void PopState()
no-op (for API compat with OpenGL1).
Definition: vtkGenericOpenGLRenderWindow.h:88
vtkRenderWindow::IsDirect
virtual int IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
Definition: vtkRenderWindow.h:656
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:38
vtkRenderWindow::Frame
virtual void Frame()=0
A termination method performed at the end of the rendering process to do things like swapping buffers...
vtkRenderWindow::SetNextWindowId
virtual void SetNextWindowId(void *)=0
vtkRenderWindow::New
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on,...
vtkRenderWindow::GetEventPending
virtual int GetEventPending()=0
Check to see if a mouse button has been pressed.
vtkOpenGLRenderWindow::CreateAWindow
virtual void CreateAWindow()=0
Create a not-off-screen window.