30 #ifndef __vtkMathTextFreeTypeTextRenderer_h
31 #define __vtkMathTextFreeTypeTextRenderer_h
33 #include "vtkRenderingFreeTypeModule.h"
34 #include "vtkTextRenderer.h"
40 public vtkTextRenderer
44 void PrintSelf(ostream &os, vtkIndent indent);
50 ~vtkMathTextFreeTypeTextRenderer();
54 bool GetBoundingBoxInternal(vtkTextProperty *tprop, const vtkStdString &str,
55 int bbox[4],
int dpi,
int backend);
56 bool GetBoundingBoxInternal(vtkTextProperty *tprop,
57 const vtkUnicodeString &str,
58 int bbox[4],
int dpi,
int backend);
59 bool RenderStringInternal(vtkTextProperty *tprop, const vtkStdString &str,
60 vtkImageData *data,
int textDims[2],
int dpi,
62 bool RenderStringInternal(vtkTextProperty *tprop, const vtkUnicodeString &str,
63 vtkImageData *data,
int textDims[2],
int dpi,
65 int GetConstrainedFontSizeInternal(const vtkStdString &str,
66 vtkTextProperty *tprop,
67 int targetWidth,
int targetHeight,
int dpi,
69 int GetConstrainedFontSizeInternal(const vtkUnicodeString &str,
70 vtkTextProperty *tprop,
71 int targetWidth,
int targetHeight,
int dpi,
73 bool StringToPathInternal(vtkTextProperty *tprop, const vtkStdString &str,
74 vtkPath *path,
int backend);
75 bool StringToPathInternal(vtkTextProperty *tprop, const vtkUnicodeString &str,
76 vtkPath *path,
int backend);
77 void SetScaleToPowerOfTwoInternal(
bool scale);
81 vtkMathTextFreeTypeTextRenderer(const vtkMathTextFreeTypeTextRenderer &);
82 void operator=(const vtkMathTextFreeTypeTextRenderer &);
88 #endif //__vtkMathTextFreeTypeTextRenderer_h
Default implementation of vtkTextRenderer.
Abstract interface to equation rendering.