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 "vtkRenderingQtModule.h" // For export macro
34 #include "vtkLabelRenderStrategy.h"
35 
38 class vtkPlaneSource;
41 class vtkTexture;
42 class vtkTexturedActor2D;
44 
46 {
47  public:
48  void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
55  virtual void ComputeLabelBounds(vtkTextProperty* tprop, vtkStdString label,
56  double bds[4])
57  { this->Superclass::ComputeLabelBounds(tprop, label, bds); }
59  double bds[4]);
61 
63 
65  virtual void RenderLabel(int x[2], vtkTextProperty* tprop, vtkStdString label)
66  { this->Superclass::RenderLabel(x, tprop, label); }
67  virtual void RenderLabel(int x[2], vtkTextProperty* tprop, vtkStdString label,
68  int maxWidth)
69  { this->Superclass::RenderLabel(x, tprop, label, maxWidth); }
70  virtual void RenderLabel(int x[2], vtkTextProperty* tprop,
71  vtkUnicodeString label);
72  virtual void RenderLabel(int x[2], vtkTextProperty* tprop,
73  vtkUnicodeString label, int maxWidth);
75 
77  virtual void StartFrame();
78 
80  virtual void EndFrame();
81 
85  virtual void ReleaseGraphicsResources(vtkWindow *window);
86 
87 protected:
90 
91  //BTX
92  class Internals;
93  Internals* Implementation;
94  //ETX
95 
102  bool AntialiasText; // Should the text be antialiased, inherited from render window.
103 
104 private:
105  vtkQtLabelRenderStrategy(const vtkQtLabelRenderStrategy&); // Not implemented.
106  void operator=(const vtkQtLabelRenderStrategy&); // Not implemented.
107 };
108 
109 #endif
vtkQtLabelRenderStrategy::vtkQtLabelRenderStrategy
vtkQtLabelRenderStrategy()
vtkQtLabelRenderStrategy::RenderLabel
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkUnicodeString label, int maxWidth)
vtkPolyDataMapper2D
draw vtkPolyData onto the image plane
Definition: vtkPolyDataMapper2D.h:51
vtkQtLabelRenderStrategy::ComputeLabelBounds
virtual void ComputeLabelBounds(vtkTextProperty *tprop, vtkStdString label, double bds[4])
Definition: vtkQtLabelRenderStrategy.h:55
vtkTexturedActor2D
actor that draws 2D data with texture support
Definition: vtkTexturedActor2D.h:41
vtkQtLabelRenderStrategy::RenderLabel
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label, int maxWidth)
Definition: vtkQtLabelRenderStrategy.h:67
vtkPlaneSource
create an array of quadrilaterals located in a plane
Definition: vtkPlaneSource.h:60
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkQtLabelRenderStrategy::Actor
vtkTexturedActor2D * Actor
Definition: vtkQtLabelRenderStrategy.h:101
vtkQtLabelRenderStrategy::AntialiasText
bool AntialiasText
Definition: vtkQtLabelRenderStrategy.h:102
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
VTKRENDERINGQT_EXPORT
#define VTKRENDERINGQT_EXPORT
Definition: vtkRenderingQtModule.h:15
vtkQtLabelRenderStrategy::StartFrame
virtual void StartFrame()
vtkQtLabelRenderStrategy::~vtkQtLabelRenderStrategy
~vtkQtLabelRenderStrategy()
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkQtLabelRenderStrategy
Renders labels with Qt.
Definition: vtkQtLabelRenderStrategy.h:46
vtkQtLabelRenderStrategy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTextureMapToPlane
generate texture coordinates by mapping points to plane
Definition: vtkTextureMapToPlane.h:52
vtkTexture
handles properties associated with a texture map
Definition: vtkTexture.h:70
vtkLabelSizeCalculator
Definition: vtkLabelSizeCalculator.h:51
vtkQtLabelRenderStrategy::EndFrame
virtual void EndFrame()
vtkQImageToImageSource
Create image data from a QImage.
Definition: vtkQImageToImageSource.h:35
vtkLabelRenderStrategy.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkUnicodeString
String class that stores Unicode text.
Definition: vtkUnicodeString.h:72
vtkQtLabelRenderStrategy::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *window)
vtkQtLabelRenderStrategy::Mapper
vtkPolyDataMapper2D * Mapper
Definition: vtkQtLabelRenderStrategy.h:100
vtkQtLabelRenderStrategy::PlaneSource
vtkPlaneSource * PlaneSource
Definition: vtkQtLabelRenderStrategy.h:97
vtkQtLabelRenderStrategy::TextureMapToPlane
vtkTextureMapToPlane * TextureMapToPlane
Definition: vtkQtLabelRenderStrategy.h:98
vtkLabelRenderStrategy
Superclass for label rendering implementations.
Definition: vtkLabelRenderStrategy.h:36
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:39
vtkQtLabelRenderStrategy::QImageToImage
vtkQImageToImageSource * QImageToImage
Definition: vtkQtLabelRenderStrategy.h:96
vtkLabeledDataMapper
draw text labels at dataset points
Definition: vtkLabeledDataMapper.h:74
vtkQtLabelRenderStrategy::RenderLabel
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkUnicodeString label)
vtkQtLabelRenderStrategy::Texture
vtkTexture * Texture
Definition: vtkQtLabelRenderStrategy.h:99
vtkQtLabelRenderStrategy::RenderLabel
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label)
Definition: vtkQtLabelRenderStrategy.h:65
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:48
vtkRenderingQtModule.h
vtkQtLabelRenderStrategy::Implementation
Internals * Implementation
Definition: vtkQtLabelRenderStrategy.h:92
vtkQtLabelRenderStrategy::ComputeLabelBounds
virtual void ComputeLabelBounds(vtkTextProperty *tprop, vtkUnicodeString label, double bds[4])
vtkQtLabelRenderStrategy::New
static vtkQtLabelRenderStrategy * New()