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 =========================================================================*/
44 #ifndef vtkExternalOpenGLRenderWindow_h
45 #define vtkExternalOpenGLRenderWindow_h
46 
47 #include "vtkRenderingExternalModule.h" // For export macro
49 
50 class VTKRENDERINGEXTERNAL_EXPORT vtkExternalOpenGLRenderWindow :
52 {
53 public:
56  void PrintSelf(ostream &os, vtkIndent indent) override;
57 
61  void Start(void) override;
62 
67  bool IsCurrent() override;
68 
70 
81  vtkGetMacro(AutomaticWindowPositionAndResize,int);
82  vtkSetMacro(AutomaticWindowPositionAndResize,int);
83  vtkBooleanMacro(AutomaticWindowPositionAndResize,int);
85 
86 protected:
89 
91 
92 private:
94  void operator=(const vtkExternalOpenGLRenderWindow&) = delete;
95 };
96 #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:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.