VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkOpenGLFreeTypeTextMapper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLFreeTypeTextMapper.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 =========================================================================*/
29 #ifndef __vtkOpenGLFreeTypeTextMapper_h
30 #define __vtkOpenGLFreeTypeTextMapper_h
31 
32 #include "vtkRenderingFreeTypeOpenGLModule.h" // For export macro
33 #include "vtkTextMapper.h"
34 
36  : public vtkTextMapper
37 {
38 public:
41  virtual void PrintSelf(ostream& os, vtkIndent indent);
42 
43  void SetInput(const char *inputString);
44 
46  void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor);
47 
51  virtual void ReleaseGraphicsResources(vtkWindow *);
52 
54  virtual void GetSize(vtkViewport* viewport, int size[2]);
55 
56 protected:
59 
61  int LastSize[2];
63  int LineSize;
67 
69 
70  char *NextLine(const char *input, int lineNum);
71  void GetMultiLineSize(vtkViewport* viewport, int size[2]);
72  void RenderOverlayMultipleLines(vtkViewport *viewport, vtkActor2D *actor);
74 
75 private:
76  vtkOpenGLFreeTypeTextMapper(const vtkOpenGLFreeTypeTextMapper&); // Not implemented.
77  void operator=(const vtkOpenGLFreeTypeTextMapper&); // Not implemented.
78 };
79 
80 #endif
GLsizeiptr size
Definition: vtkgl.h:11843
virtual void GetSize(vtkViewport *, int size[2])
static vtkTextMapper * New()
GLenum GLenum GLenum input
Definition: vtkgl.h:15941
abstract specification for Viewports
Definition: vtkViewport.h:46
a actor that draws 2D data
Definition: vtkActor2D.h:44
record modification and/or execution time
Definition: vtkTimeStamp.h:34
virtual void SetInput(const char *)
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
2D text annotation
Definition: vtkTextMapper.h:59
window superclass for vtkRenderWindow
Definition: vtkWindow.h:33
void ReleaseGraphicsResources(vtkWindow *)
a simple class to control print indentation
Definition: vtkIndent.h:38
void RenderOverlay(vtkViewport *, vtkActor2D *)
#define VTKRENDERINGFREETYPEOPENGL_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)