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=========================================================================*/
25#ifndef vtkQtLabelRenderStrategy_h
26#define vtkQtLabelRenderStrategy_h
27
29#include "vtkRenderingQtModule.h" // For export macro
30
33class vtkPlaneSource;
36class vtkTexture;
39
40class VTKRENDERINGQT_EXPORT vtkQtLabelRenderStrategy : public vtkLabelRenderStrategy
41{
42public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
46
50 void ComputeLabelBounds(vtkTextProperty* tprop, vtkStdString label, double bds[4]) override;
51
53
57 void RenderLabel(int x[2], vtkTextProperty* tprop, vtkStdString label) override;
58 void RenderLabel(int x[2], vtkTextProperty* tprop, vtkStdString label, int maxWidth) override;
60
64 void StartFrame() override;
65
69 void EndFrame() override;
70
76 void ReleaseGraphicsResources(vtkWindow* window) override;
77
78protected:
81
82 class Internals;
84
91 bool AntialiasText; // Should the text be antialiased, inherited from render window.
92
93private:
95 void operator=(const vtkQtLabelRenderStrategy&) = delete;
96};
97
98#endif
a simple class to control print indentation
Definition vtkIndent.h:34
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.
represent text properties.
generate texture coordinates by mapping points to plane
handles properties associated with a texture map
Definition vtkTexture.h:66
actor that draws 2D data with texture support
window superclass for vtkRenderWindow
Definition vtkWindow.h:39