VTK  9.1.0
vtkExternalOpenGLRenderWindow.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkExternalOpenGLRenderWindow.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=========================================================================*/
41#ifndef vtkExternalOpenGLRenderWindow_h
42#define vtkExternalOpenGLRenderWindow_h
43
45#include "vtkRenderingExternalModule.h" // For export macro
46
47class VTKRENDERINGEXTERNAL_EXPORT vtkExternalOpenGLRenderWindow
49{
50public:
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
58 void Start(void) override;
59
64 bool IsCurrent() override;
65
67
78 vtkGetMacro(AutomaticWindowPositionAndResize, int);
79 vtkSetMacro(AutomaticWindowPositionAndResize, int);
80 vtkBooleanMacro(AutomaticWindowPositionAndResize, int);
82
84
89 vtkGetMacro(UseExternalContent, bool);
90 vtkSetMacro(UseExternalContent, bool);
91 vtkBooleanMacro(UseExternalContent, bool);
93
94protected:
97
100
101private:
103 void operator=(const vtkExternalOpenGLRenderWindow&) = delete;
104};
105#endif // vtkExternalOpenGLRenderWindow_h
OpenGL render window that allows using an external window to render vtk objects.
static vtkExternalOpenGLRenderWindow * New()
void Start(void) override
Begin the rendering process using the existing context.
~vtkExternalOpenGLRenderWindow() override
bool IsCurrent() override
Tells if this window is the current graphics context for the calling thread.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
platform independent render window
a simple class to control print indentation
Definition: vtkIndent.h:113