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 "vtkLabelRenderStrategy.h"
27 
28 class vtkActor2D;
30 class vtkTextMapper;
31 
33 {
34  public:
35  void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
41  virtual bool SupportsRotation()
42  { return false; }
44 
46 
48  virtual bool SupportsBoundedSize()
49  { return false; }
51 
53 
55  virtual void ComputeLabelBounds(vtkTextProperty* tprop, vtkStdString label, double bds[4])
56  { this->Superclass::ComputeLabelBounds(tprop, label, bds); }
57  virtual void ComputeLabelBounds(vtkTextProperty* tprop, vtkUnicodeString label, double bds[4]);
59 
61 
63  virtual void RenderLabel(int x[2], vtkTextProperty* tprop, vtkStdString label)
64  { this->Superclass::RenderLabel(x, tprop, label); }
65  virtual void RenderLabel(int x[2], vtkTextProperty* tprop, vtkStdString label, int width)
66  { this->Superclass::RenderLabel(x, tprop, label, width); }
67  virtual void RenderLabel(int x[2], vtkTextProperty* tprop, vtkUnicodeString label);
68  virtual void RenderLabel(int x[2], vtkTextProperty* tprop, vtkUnicodeString label, int width)
69  { this->Superclass::RenderLabel(x, tprop, label, width); }
71 
75  virtual void ReleaseGraphicsResources(vtkWindow *window);
76 
77 protected:
80 
84 
85 private:
87  void operator=(const vtkFreeTypeLabelRenderStrategy&); // Not implemented.
88 };
89 
90 #endif
91