VTK  9.1.0
vtkOpenGLContextActor.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkOpenGLContextActor.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=========================================================================*/
24#ifndef vtkOpenGLContextActor_h
25#define vtkOpenGLContextActor_h
26
27#include "vtkContextActor.h"
28#include "vtkRenderingContextOpenGL2Module.h" // For export macro
29
30class VTKRENDERINGCONTEXTOPENGL2_EXPORT vtkOpenGLContextActor : public vtkContextActor
31{
32public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
35
37
43 void ReleaseGraphicsResources(vtkWindow* window) override;
44
48 int RenderOverlay(vtkViewport* viewport) override;
49
50protected:
53
57 void Initialize(vtkViewport* viewport) override;
58
59private:
61 void operator=(const vtkOpenGLContextActor&) = delete;
62};
63
64#endif
provides a vtkProp derived object.
a simple class to control print indentation
Definition: vtkIndent.h:113
provides a vtkProp derived object.
void Initialize(vtkViewport *viewport) override
Initialize the actor - right now we just decide which device to initialize.
static vtkOpenGLContextActor * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ReleaseGraphicsResources(vtkWindow *window) override
Release any graphics resources that are being consumed by this actor.
int RenderOverlay(vtkViewport *viewport) override
We only render in the overlay for the context scene.
~vtkOpenGLContextActor() override
abstract specification for Viewports
Definition: vtkViewport.h:47
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36