10 #ifndef vtkTextRendererStringToImage_h
11 #define vtkTextRendererStringToImage_h
13 #include "vtkRenderingFreeTypeModule.h"
16 VTK_ABI_NAMESPACE_BEGIN
78 #endif // vtkTextRendererStringToImage_h
Wrapper around std::string to keep symbols short.
Internals * Implementation
base class for classes that render supplied text to an image.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual vtkVector2i GetBounds(vtkTextProperty *property, const vtkStdString &string, int dpi)=0
Given a text property and a string, get the bounding box [xmin, xmax] x [ymin, ymax].
a simple class to control print indentation
topologically and geometrically regular array of data
uses vtkTextRenderer to render the supplied text to an image.
Some derived classes for the different vectors commonly used.
represent text properties.
virtual int RenderString(vtkTextProperty *property, const vtkStdString &string, int dpi, vtkImageData *data, int text_dims[2]=nullptr)=0
Given a text property and a string, this function initializes the vtkImageData *data and renders it i...
virtual void SetScaleToPowerOfTwo(bool scale)
Should we produce images at powers of 2, makes rendering on old OpenGL hardware easier.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...