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 
Wrapper around vtkstd::string to keep symbols short.
Definition: vtkStdString.h:45
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:43
2D text annotation
Definition: vtkTextMapper.h:43
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 *)
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.
#define VTK_RENDERING_EXPORT
FreeType library support.
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.