VTK  9.4.20241226
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
19VTK_ABI_NAMESPACE_BEGIN
20class VTKRENDERINGCONTEXTOPENGL2_EXPORT VTK_MARSHALAUTO vtkOpenGLContextActor
21 : public vtkContextActor
22{
23public:
24 void PrintSelf(ostream& os, vtkIndent indent) override;
26
28
34 void ReleaseGraphicsResources(vtkWindow* window) override;
35
39 int RenderOverlay(vtkViewport* viewport) override;
40
41protected:
44
48 void Initialize(vtkViewport* viewport) override;
49
50private:
52 void operator=(const vtkOpenGLContextActor&) = delete;
53};
54
55VTK_ABI_NAMESPACE_END
56#endif
provides a vtkProp derived object.
a simple class to control print indentation
Definition vtkIndent.h:108
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:65
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
#define VTK_MARSHALAUTO