VTK  9.3.20240424
vtkExternalOpenGLRenderWindow.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
29#ifndef vtkExternalOpenGLRenderWindow_h
30#define vtkExternalOpenGLRenderWindow_h
31
33#include "vtkRenderingExternalModule.h" // For export macro
34
35VTK_ABI_NAMESPACE_BEGIN
36class VTKRENDERINGEXTERNAL_EXPORT vtkExternalOpenGLRenderWindow
38{
39public:
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
47 void Start() override;
48
53 bool IsCurrent() override;
54
56
67 vtkGetMacro(AutomaticWindowPositionAndResize, int);
68 vtkSetMacro(AutomaticWindowPositionAndResize, int);
69 vtkBooleanMacro(AutomaticWindowPositionAndResize, int);
71
73
78 vtkGetMacro(UseExternalContent, bool);
79 vtkSetMacro(UseExternalContent, bool);
80 vtkBooleanMacro(UseExternalContent, bool);
82
83protected:
86
89
90private:
92 void operator=(const vtkExternalOpenGLRenderWindow&) = delete;
93};
94VTK_ABI_NAMESPACE_END
95#endif // vtkExternalOpenGLRenderWindow_h
OpenGL render window that allows using an external window to render vtk objects.
static vtkExternalOpenGLRenderWindow * New()
void Start() 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:108