27 #ifndef vtkFreeTypeStringToImage_h
28 #define vtkFreeTypeStringToImage_h
30 #include "vtkRenderingFreeTypeModule.h"
73 int textDims[2] = NULL);
77 int textDims[2] = NULL);
uses Qt to render the supplied text to an image.
virtual int RenderString(vtkTextProperty *property, const vtkUnicodeString &string, int dpi, vtkImageData *data, int textDims[2]=NULL)
Given a text property and a string, this function initializes the vtkImageData *data and renders it i...
virtual vtkVector2i GetBounds(vtkTextProperty *property, const vtkUnicodeString &string, int dpi)
Given a text property and a string, get the bounding box [xmin, xmax] x [ymin, ymax].
Internals * Implementation
~vtkFreeTypeStringToImage()
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int RenderString(vtkTextProperty *property, const vtkStdString &string, int dpi, vtkImageData *data, int textDims[2]=NULL)
static vtkFreeTypeStringToImage * New()
virtual vtkVector2i GetBounds(vtkTextProperty *property, const vtkStdString &string, int dpi)
vtkFreeTypeStringToImage()
virtual void SetScaleToPowerOfTwo(bool scale)
Should we produce images at powers of 2, makes rendering on old OpenGL hardware easier.
void DeepCopy(vtkFreeTypeStringToImage *utility)
Make a deep copy of the supplied utility class.
topologically and geometrically regular array of data
a simple class to control print indentation
Wrapper around std::string to keep symbols short.
base class for classes that render supplied text to an image.
represent text properties.
String class that stores Unicode text.
Some derived classes for the different vectors commonly used.