VTK  9.2.6
vtkFreeTypeLabelRenderStrategy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFreeTypeLabelRenderStrategy.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 vtkFreeTypeLabelRenderStrategy_h
25 #define vtkFreeTypeLabelRenderStrategy_h
26 
27 #include "vtkLabelRenderStrategy.h"
28 #include "vtkRenderingLabelModule.h" // For export macro
29 
30 class vtkActor2D;
31 class vtkTextRenderer;
32 class vtkTextMapper;
33 
34 class VTKRENDERINGLABEL_EXPORT vtkFreeTypeLabelRenderStrategy : public vtkLabelRenderStrategy
35 {
36 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
44  bool SupportsRotation() override { return false; }
45 
49  bool SupportsBoundedSize() override { return false; }
50 
54  void ComputeLabelBounds(vtkTextProperty* tprop, vtkStdString label, double bds[4]) override;
55 
60  void RenderLabel(int x[2], vtkTextProperty* tprop, vtkStdString label) override;
61 
67  void ReleaseGraphicsResources(vtkWindow* window) override;
68 
69 protected:
72 
76 
77 private:
79  void operator=(const vtkFreeTypeLabelRenderStrategy&) = delete;
80 };
81 
82 #endif
a actor that draws 2D data
Definition: vtkActor2D.h:155
bool SupportsBoundedSize() override
The free type render strategy currently does not support bounded size labels.
bool SupportsRotation() override
The free type render strategy currently does not support rotation.
void ReleaseGraphicsResources(vtkWindow *window) override
Release any graphics resources that are being consumed by this strategy.
~vtkFreeTypeLabelRenderStrategy() override
void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label) override
Render a label at a location in world coordinates.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkFreeTypeLabelRenderStrategy * New()
void ComputeLabelBounds(vtkTextProperty *tprop, vtkStdString label, double bds[4]) override
Compute the bounds of a label.
a simple class to control print indentation
Definition: vtkIndent.h:119
Superclass for label rendering implementations.
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:108
2D text annotation
represent text properties.
Interface for generating images and path data from string data, using multiple backends.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39