13 #ifndef vtkFreeTypeStringToImage_h
14 #define vtkFreeTypeStringToImage_h
16 #include "vtkRenderingFreeTypeModule.h"
20 VTK_ABI_NAMESPACE_BEGIN
render the supplied text to an image.
Internals * Implementation
vtkVector2i GetBounds(vtkTextProperty *property, const vtkStdString &string, int dpi) override
Given a text property and a string, get the bounding box [xmin, xmax] x [ymin, ymax].
void SetScaleToPowerOfTwo(bool scale) override
Should we produce images at powers of 2, makes rendering on old OpenGL hardware easier.
int RenderString(vtkTextProperty *property, const vtkStdString &string, int dpi, vtkImageData *data, int textDims[2]=nullptr) override
Given a text property and a string, this function initializes the vtkImageData *data and renders it i...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkFreeTypeStringToImage * New()
vtkFreeTypeStringToImage()
~vtkFreeTypeStringToImage() override
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.
Some derived classes for the different vectors commonly used.