VTK  9.7.1
vtkOpenGLTextActor.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
3 
9 #ifndef vtkOpenGLTextActor_h
10 #define vtkOpenGLTextActor_h
11 
12 #include "vtkRenderingOpenGL2Module.h" // For export macro
13 #include "vtkTextActor.h"
14 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
15 
16 VTK_ABI_NAMESPACE_BEGIN
19 
20 class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkOpenGLTextActor : public vtkTextActor
21 {
22 public:
23  static vtkOpenGLTextActor* New();
25  static vtkOverrideAttribute* CreateOverrideAttributes();
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
29  int RenderOverlay(vtkViewport* viewport) override;
30 
31 protected:
33  ~vtkOpenGLTextActor() override;
34 
35  int RenderGL2PS(vtkViewport* viewport, vtkOpenGLGL2PSHelper* gl2ps);
36 
37 private:
38  vtkOpenGLTextActor(const vtkOpenGLTextActor&) = delete;
39  void operator=(const vtkOpenGLTextActor&) = delete;
40 };
41 
42 #define vtkOpenGLTextActor_OVERRIDE_ATTRIBUTES vtkOpenGLTextActor::CreateOverrideAttributes()
43 VTK_ABI_NAMESPACE_END
44 #endif // vtkOpenGLTextActor_h
Attribute for vtkObjectFactory overrides.
abstract specification for Viewports
Definition: vtkViewport.h:46
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTextActor override.
Access GL2PS functionality.
An actor that displays text.
Definition: vtkTextActor.h:48
a simple class to control print indentation
Definition: vtkIndent.h:28
static vtkTextActor * New()
Instantiate object with a rectangle in normaled view coordinates of (0.2,0.85, 0.8, 0.95).
#define VTK_NEWINSTANCE
#define VTK_MARSHALAUTO
int RenderOverlay(vtkViewport *viewport) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...