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
35
36class VTKRENDERINGOPENGL_EXPORT vtkGenericOpenGLRenderWindow : public vtkOpenGLRenderWindow
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent);
42protected:
45
46public:
47
49 void Finalize();
50
53 void Frame();
54
58
62 bool IsCurrent();
63
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*);
93 void SetDisplayId(void*);
94 void SetParentId(void*);
99 void SetWindowInfo(char*);
100 void SetParentInfo(char*);
102 void Start();
105 void SetFullScreen(int);
108 void SetNextWindowId(void*);
109 void SetNextWindowInfo(char*);
112 // }@
113
115
119 void SetIsDirect(int newValue);
120 void SetSupportsOpenGL(int newValue);
121 void SetIsCurrent(bool newValue);
123
124protected:
128
129private:
131 void operator=(const vtkGenericOpenGLRenderWindow&) VTK_DELETE_FUNCTION;
132};
133
134#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
static vtkGenericOpenGLRenderWindow * New()
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 * GetScreenSize()
Get the current size of the screen in pixels.
int IsDirect()
Returns if the context is direct.
void PopState()
convenience function to pop the state and pop the transform matrices
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()
convenience function to push the state and push/init the transform matrices
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...
a simple class to control print indentation
Definition: vtkIndent.h:40
OpenGL rendering window.