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 =========================================================================*/
30 #ifndef __vtkQtLabelRenderStrategy_h
31 #define __vtkQtLabelRenderStrategy_h
32 
33 #include "vtkLabelRenderStrategy.h"
34 
37 class vtkPlaneSource;
40 class vtkTexture;
41 class vtkTexturedActor2D;
43 
45 {
46  public:
47  void PrintSelf(ostream& os, vtkIndent indent);
49  static vtkQtLabelRenderStrategy* New();
50 
52 
54  virtual void ComputeLabelBounds(vtkTextProperty* tprop, vtkStdString label,
55  double bds[4])
56  { this->Superclass::ComputeLabelBounds(tprop, label, bds); }
57  virtual void ComputeLabelBounds(vtkTextProperty* tprop, vtkUnicodeString label,
58  double bds[4]);
60 
62 
64  virtual void RenderLabel(int x[2], vtkTextProperty* tprop, vtkStdString label)
65  { this->Superclass::RenderLabel(x, tprop, label); }
66  virtual void RenderLabel(int x[2], vtkTextProperty* tprop, vtkStdString label,
67  int maxWidth)
68  { this->Superclass::RenderLabel(x, tprop, label, maxWidth); }
69  virtual void RenderLabel(int x[2], vtkTextProperty* tprop,
70  vtkUnicodeString label);
71  virtual void RenderLabel(int x[2], vtkTextProperty* tprop,
72  vtkUnicodeString label, int maxWidth);
74 
76  virtual void StartFrame();
77 
79  virtual void EndFrame();
80 
84  virtual void ReleaseGraphicsResources(vtkWindow *window);
85 
86 protected:
89 
90  //BTX
91  class Internals;
92  Internals* Implementation;
93  //ETX
94 
101  bool AntialiasText; // Should the text be antialiased, inherited from render window.
102 
103 private:
104  vtkQtLabelRenderStrategy(const vtkQtLabelRenderStrategy&); // Not implemented.
105  void operator=(const vtkQtLabelRenderStrategy&); // Not implemented.
106 };
107 
108 #endif
Create image data from a QImage.
Wrapper around vtkstd::string to keep symbols short.
Definition: vtkStdString.h:45
Superclass for label rendering implementations.
actor that draws 2D data with texture support
vtkTextureMapToPlane * TextureMapToPlane
vtkQImageToImageSource * QImageToImage
Renders labels with Qt.
draw text labels at dataset points
virtual void ComputeLabelBounds(vtkTextProperty *tprop, vtkStdString label, double bds[4])
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual void ReleaseGraphicsResources(vtkWindow *)
handles properties associated with a texture map
Definition: vtkTexture.h:68
represent text properties.
create an array of quadrilaterals located in a plane
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label, int maxWidth)
#define VTK_RENDERING_EXPORT
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label)
static vtkObject * New()
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label)
virtual void ComputeLabelBounds(vtkTextProperty *tprop, vtkStdString label, double bds[4])
draw vtkPolyData onto the image plane
generate texture coordinates by mapping points to plane
String class that stores Unicode text.