VTK
vtkFreeTypeLabelRenderStrategy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFreeTypeLabelRenderStrategy.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 =========================================================================*/
23 #ifndef vtkFreeTypeLabelRenderStrategy_h
24 #define vtkFreeTypeLabelRenderStrategy_h
25 
26 #include "vtkRenderingLabelModule.h" // For export macro
27 #include "vtkLabelRenderStrategy.h"
28 
29 class vtkActor2D;
30 class vtkTextRenderer;
31 class vtkTextMapper;
32 
34 {
35  public:
36  void PrintSelf(ostream& os, vtkIndent indent);
39 
41 
42  virtual bool SupportsRotation()
43  { return false; }
45 
47 
49  virtual bool SupportsBoundedSize()
50  { return false; }
52 
54 
56  virtual void ComputeLabelBounds(vtkTextProperty* tprop, vtkStdString label, double bds[4])
57  { this->Superclass::ComputeLabelBounds(tprop, label, bds); }
58  virtual void ComputeLabelBounds(vtkTextProperty* tprop, vtkUnicodeString label, 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, int width)
67  { this->Superclass::RenderLabel(x, tprop, label, width); }
68  virtual void RenderLabel(int x[2], vtkTextProperty* tprop, vtkUnicodeString label);
69  virtual void RenderLabel(int x[2], vtkTextProperty* tprop, vtkUnicodeString label, int width)
70  { this->Superclass::RenderLabel(x, tprop, label, width); }
72 
76  virtual void ReleaseGraphicsResources(vtkWindow *window);
77 
78 protected:
81 
85 
86 private:
88  void operator=(const vtkFreeTypeLabelRenderStrategy&); // Not implemented.
89 };
90 
91 #endif
92 
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:46
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label, int width)
Superclass for label rendering implementations.
a actor that draws 2D data
Definition: vtkActor2D.h:44
2D text annotation
Definition: vtkTextMapper.h:52
virtual void ComputeLabelBounds(vtkTextProperty *tprop, vtkStdString label, double bds[4])
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKRENDERINGLABEL_EXPORT
virtual void ReleaseGraphicsResources(vtkWindow *)
virtual void ComputeLabelBounds(vtkTextProperty *tprop, vtkStdString label, double bds[4])
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkUnicodeString label, int width)
represent text properties.
Interface for generating images and path data from string data, using multiple backends.
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label)
static vtkObject * New()
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label)
String class that stores Unicode text.