VTK  9.2.6
vtkQtLabelRenderStrategy.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkQtLabelRenderStrategy.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=========================================================================*/
28#ifndef vtkQtLabelRenderStrategy_h
29#define vtkQtLabelRenderStrategy_h
30
32#include "vtkRenderingQtModule.h" // For export macro
33
36class vtkPlaneSource;
39class vtkTexture;
42
43class VTKRENDERINGQT_EXPORT vtkQtLabelRenderStrategy : public vtkLabelRenderStrategy
44{
45public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
49
53 void ComputeLabelBounds(vtkTextProperty* tprop, vtkStdString label, double bds[4]) override;
54
56
60 void RenderLabel(int x[2], vtkTextProperty* tprop, vtkStdString label) override;
61 void RenderLabel(int x[2], vtkTextProperty* tprop, vtkStdString label, int maxWidth) override;
63
67 void StartFrame() override;
68
72 void EndFrame() override;
73
79 void ReleaseGraphicsResources(vtkWindow* window) override;
80
81protected:
84
85 class Internals;
87
94 bool AntialiasText; // Should the text be antialiased, inherited from render window.
95
96private:
98 void operator=(const vtkQtLabelRenderStrategy&) = delete;
99};
100
101#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Superclass for label rendering implementations.
This filter takes an input dataset, an array to process (which must be a string array),...
draw text labels at dataset points
create an array of quadrilaterals located in a plane
draw vtkPolyData onto the image plane
Create image data from a QImage.
void EndFrame() override
End a rendering frame.
void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label) override
Render a label at a location in world coordinates.
void ReleaseGraphicsResources(vtkWindow *window) override
Release any graphics resources that are being consumed by this strategy.
vtkTextureMapToPlane * TextureMapToPlane
void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label, int maxWidth) 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.
~vtkQtLabelRenderStrategy() override
vtkQImageToImageSource * QImageToImage
void StartFrame() override
Start a rendering frame.
void ComputeLabelBounds(vtkTextProperty *tprop, vtkStdString label, double bds[4]) override
Compute the bounds of a label.
static vtkQtLabelRenderStrategy * New()
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:39
represent text properties.
generate texture coordinates by mapping points to plane
handles properties associated with a texture map
Definition: vtkTexture.h:69
actor that draws 2D data with texture support
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39