VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
18 
19 VTK_ABI_NAMESPACE_BEGIN
20 class VTKRENDERINGCONTEXTOPENGL2_EXPORT VTK_MARSHALAUTO vtkOpenGLContextActor
21  : public vtkContextActor
22 {
23 public:
24  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
27  static vtkOpenGLContextActor* New();
28 
34  void ReleaseGraphicsResources(vtkWindow* window) override;
35 
39  int RenderOverlay(vtkViewport* viewport) override;
40 
41 protected:
43  ~vtkOpenGLContextActor() override;
44 
48  void Initialize(vtkViewport* viewport) override;
49 
50 private:
52  void operator=(const vtkOpenGLContextActor&) = delete;
53 };
54 
55 VTK_ABI_NAMESPACE_END
56 #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:46
void ReleaseGraphicsResources(vtkWindow *window) override
Release any graphics resources that are being consumed by this actor.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:41
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.
#define VTK_MARSHALAUTO
virtual void Initialize(vtkViewport *viewport)
Initialize the actor - right now we just decide which device to initialize.