VTK
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 
44 #include "vtkRenderingExternalModule.h" // For export macro
46 
47 class VTKRENDERINGEXTERNAL_EXPORT vtkExternalOpenGLRenderWindow :
49 {
50 public:
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 
83 protected:
86 
88 
89 private:
91  void operator=(const vtkExternalOpenGLRenderWindow&) = delete;
92 };
93 #endif //vtkExternalOpenGLRenderWindow_h
bool IsCurrent() override
Returns if the context is current.
static vtkGenericOpenGLRenderWindow * New()
OpenGL render window that allows using an external window to render vtk objects.
void Start() override
Initialize the rendering process.
platform independent render window
a simple class to control print indentation
Definition: vtkIndent.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.