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 
vtkRenderingLabelModule.h
vtkFreeTypeLabelRenderStrategy::RenderLabel
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkUnicodeString label)
vtkFreeTypeLabelRenderStrategy::~vtkFreeTypeLabelRenderStrategy
~vtkFreeTypeLabelRenderStrategy()
vtkFreeTypeLabelRenderStrategy::SupportsRotation
virtual bool SupportsRotation()
Definition: vtkFreeTypeLabelRenderStrategy.h:42
vtkFreeTypeLabelRenderStrategy::RenderLabel
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label, int width)
Definition: vtkFreeTypeLabelRenderStrategy.h:66
vtkFreeTypeLabelRenderStrategy::RenderLabel
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label)
Definition: vtkFreeTypeLabelRenderStrategy.h:64
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
VTKRENDERINGLABEL_EXPORT
#define VTKRENDERINGLABEL_EXPORT
Definition: vtkRenderingLabelModule.h:15
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkFreeTypeLabelRenderStrategy
Renders labels with freetype.
Definition: vtkFreeTypeLabelRenderStrategy.h:34
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkFreeTypeLabelRenderStrategy::RenderLabel
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkUnicodeString label, int width)
Definition: vtkFreeTypeLabelRenderStrategy.h:69
vtkFreeTypeLabelRenderStrategy::ComputeLabelBounds
virtual void ComputeLabelBounds(vtkTextProperty *tprop, vtkStdString label, double bds[4])
Definition: vtkFreeTypeLabelRenderStrategy.h:56
vtkTextMapper
2D text annotation
Definition: vtkTextMapper.h:53
vtkLabelRenderStrategy.h
vtkFreeTypeLabelRenderStrategy::TextRenderer
vtkTextRenderer * TextRenderer
Definition: vtkFreeTypeLabelRenderStrategy.h:82
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkUnicodeString
String class that stores Unicode text.
Definition: vtkUnicodeString.h:72
vtkFreeTypeLabelRenderStrategy::Actor
vtkActor2D * Actor
Definition: vtkFreeTypeLabelRenderStrategy.h:84
vtkFreeTypeLabelRenderStrategy::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *window)
vtkFreeTypeLabelRenderStrategy::Mapper
vtkTextMapper * Mapper
Definition: vtkFreeTypeLabelRenderStrategy.h:83
vtkLabelRenderStrategy
Superclass for label rendering implementations.
Definition: vtkLabelRenderStrategy.h:36
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:39
vtkgl::width
GLint GLint GLsizei width
Definition: vtkgl.h:11316
vtkActor2D
a actor that draws 2D data
Definition: vtkActor2D.h:45
vtkFreeTypeLabelRenderStrategy::New
static vtkFreeTypeLabelRenderStrategy * New()
vtkFreeTypeLabelRenderStrategy::ComputeLabelBounds
virtual void ComputeLabelBounds(vtkTextProperty *tprop, vtkUnicodeString label, double bds[4])
vtkTextRenderer
Interface for generating images and path data from string data, using multiple backends.
Definition: vtkTextRenderer.h:75
vtkFreeTypeLabelRenderStrategy::vtkFreeTypeLabelRenderStrategy
vtkFreeTypeLabelRenderStrategy()
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:48
vtkFreeTypeLabelRenderStrategy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkFreeTypeLabelRenderStrategy::SupportsBoundedSize
virtual bool SupportsBoundedSize()
Definition: vtkFreeTypeLabelRenderStrategy.h:49