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
48#include "vtkGenericOpenGLRenderWindow.h"
49
50class VTKRENDERINGEXTERNAL_EXPORT vtkExternalOpenGLRenderWindow :
52{
53public:
56 void PrintSelf(ostream &os, vtkIndent indent);
57
61 void Start(void);
62
67 void Render();
68
73 virtual bool IsCurrent();
74
76
87 vtkGetMacro(AutomaticWindowPositionAndResize,int);
88 vtkSetMacro(AutomaticWindowPositionAndResize,int);
89 vtkBooleanMacro(AutomaticWindowPositionAndResize,int);
91
92protected:
95
97
98private:
100 void operator=(const vtkExternalOpenGLRenderWindow&) VTK_DELETE_FUNCTION;
101};
102#endif //vtkExternalOpenGLRenderWindow_h
OpenGL render window that allows using an external window to render vtk objects.
static vtkExternalOpenGLRenderWindow * New()
virtual bool IsCurrent()
Tells if this window is the current graphics context for the calling thread.
void Render()
This computes the size of the render window before calling the superclass' Render() method.
void Start(void)
Begin the rendering process using the existing context.
void PrintSelf(ostream &os, vtkIndent indent)
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:40
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.