Go to the documentation of this file.
25 #ifndef vtkFreeTypeStringToImage_h
26 #define vtkFreeTypeStringToImage_h
28 #include "vtkRenderingFreeTypeModule.h"
71 int textDims[2] =
nullptr)
override;
75 int textDims[2] =
nullptr)
override;
101 #endif //vtkFreeTypeStringToImage_h
static vtkFreeTypeStringToImage * New()
vtkVector2i GetBounds(vtkTextProperty *property, const vtkStdString &string, int dpi) override
base class for classes that render supplied text to an image.
void SetScaleToPowerOfTwo(bool scale) override
Should we produce images at powers of 2, makes rendering on old OpenGL hardware easier.
vtkVector2i GetBounds(vtkTextProperty *property, const vtkUnicodeString &string, int dpi) override
Given a text property and a string, get the bounding box [xmin, xmax] x [ymin, ymax].
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Internals * Implementation
topologically and geometrically regular array of data
a simple class to control print indentation
String class that stores Unicode text.
~vtkFreeTypeStringToImage() override
represent text properties.
int RenderString(vtkTextProperty *property, const vtkStdString &string, int dpi, vtkImageData *data, int textDims[2]=nullptr) override
vtkFreeTypeStringToImage()
Some derived classes for the different vectors commonly used.
Wrapper around std::string to keep symbols short.
void DeepCopy(vtkFreeTypeStringToImage *utility)
Make a deep copy of the supplied utility class.
render the supplied text to an image.
int RenderString(vtkTextProperty *property, const vtkUnicodeString &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...