VTK  9.3.1
vtkOpenGLContextActor.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
12 #ifndef vtkOpenGLContextActor_h
13 #define vtkOpenGLContextActor_h
14 
15 #include "vtkContextActor.h"
16 #include "vtkRenderingContextOpenGL2Module.h" // For export macro
17 
18 VTK_ABI_NAMESPACE_BEGIN
19 class VTKRENDERINGCONTEXTOPENGL2_EXPORT vtkOpenGLContextActor : public vtkContextActor
20 {
21 public:
22  void PrintSelf(ostream& os, vtkIndent indent) override;
24 
25  static vtkOpenGLContextActor* New();
26 
32  void ReleaseGraphicsResources(vtkWindow* window) override;
33 
37  int RenderOverlay(vtkViewport* viewport) override;
38 
39 protected:
41  ~vtkOpenGLContextActor() override;
42 
46  void Initialize(vtkViewport* viewport) override;
47 
48 private:
50  void operator=(const vtkOpenGLContextActor&) = delete;
51 };
52 
53 VTK_ABI_NAMESPACE_END
54 #endif
static vtkContextActor * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for Viewports
Definition: vtkViewport.h:44
void ReleaseGraphicsResources(vtkWindow *window) override
Release any graphics resources that are being consumed by this actor.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:27
a simple class to control print indentation
Definition: vtkIndent.h:28
provides a vtkProp derived object.
provides a vtkProp derived object.
int RenderOverlay(vtkViewport *viewport) override
We only render in the overlay for the context scene.
virtual void Initialize(vtkViewport *viewport)
Initialize the actor - right now we just decide which device to initialize.