VTK
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=========================================================================*/
31#ifndef vtkQtLabelRenderStrategy_h
32#define vtkQtLabelRenderStrategy_h
33
34#include "vtkRenderingQtModule.h" // For export macro
36
39class vtkPlaneSource;
42class vtkTexture;
45
46class VTKRENDERINGQT_EXPORT vtkQtLabelRenderStrategy : public vtkLabelRenderStrategy
47{
48 public:
49 void PrintSelf(ostream& os, vtkIndent indent);
52
57 double bds[4])
58 { this->Superclass::ComputeLabelBounds(tprop, label, bds); }
60 double bds[4]);
61
63
67 virtual void RenderLabel(int x[2], vtkTextProperty* tprop, vtkStdString label)
68 { this->Superclass::RenderLabel(x, tprop, label); }
69 virtual void RenderLabel(int x[2], vtkTextProperty* tprop, vtkStdString label,
70 int maxWidth)
71 { this->Superclass::RenderLabel(x, tprop, label, maxWidth); }
72 virtual void RenderLabel(int x[2], vtkTextProperty* tprop,
73 vtkUnicodeString label);
74 virtual void RenderLabel(int x[2], vtkTextProperty* tprop,
75 vtkUnicodeString label, int maxWidth);
77
81 virtual void StartFrame();
82
86 virtual void EndFrame();
87
93 virtual void ReleaseGraphicsResources(vtkWindow *window);
94
95protected:
98
99 class Internals;
100 Internals* Implementation;
101
108 bool AntialiasText; // Should the text be antialiased, inherited from render window.
109
110private:
111 vtkQtLabelRenderStrategy(const vtkQtLabelRenderStrategy&) VTK_DELETE_FUNCTION;
112 void operator=(const vtkQtLabelRenderStrategy&) VTK_DELETE_FUNCTION;
113};
114
115#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.
virtual void EndFrame()
End a rendering frame.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void ReleaseGraphicsResources(vtkWindow *window)
Release any graphics resources that are being consumed by this strategy.
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label, int maxWidth)
virtual void ComputeLabelBounds(vtkTextProperty *tprop, vtkUnicodeString label, double bds[4])
vtkTextureMapToPlane * TextureMapToPlane
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label)
Render a label at a location in world coordinates.
virtual void StartFrame()
Start a rendering frame.
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkUnicodeString label)
virtual void ComputeLabelBounds(vtkTextProperty *tprop, vtkStdString label, double bds[4])
Compute the bounds of a label.
vtkQImageToImageSource * QImageToImage
static vtkQtLabelRenderStrategy * New()
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkUnicodeString label, int maxWidth)
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:49
represent text properties.
generate texture coordinates by mapping points to plane
handles properties associated with a texture map
Definition: vtkTexture.h:71
actor that draws 2D data with texture support
String class that stores Unicode text.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35