represent text properties.
uses vtkTextRenderer to render the supplied text to an image.
virtual void SetScaleToPowerOfTwo(bool scale)
Should we produce images at powers of 2, makes rendering on old OpenGL hardware easier.
virtual int RenderString(vtkTextProperty *property, const vtkStdString &string, int dpi, vtkImageData *data, int textDims[2]=NULL)
static vtkTextRendererStringToImage * New()
virtual vtkVector2i GetBounds(vtkTextProperty *property, const vtkStdString &string, int dpi)
void DeepCopy(vtkTextRendererStringToImage *utility)
Make a deep copy of the supplied utility class.
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
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkTextRendererStringToImage()
~vtkTextRendererStringToImage()
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...