Go to the documentation of this file.
22 #ifndef vtkTextRendererStringToImage_h
23 #define vtkTextRendererStringToImage_h
25 #include "vtkRenderingFreeTypeModule.h"
71 int textDims[2] =
nullptr)
override;
76 int textDims[2] =
nullptr)
override;
102 #endif //vtkTextRendererStringToImage_h
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
base class for classes that render supplied text to an image.
virtual int RenderString(vtkTextProperty *property, const vtkUnicodeString &string, int dpi, vtkImageData *data, int textDims[2]=nullptr)=0
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.
Internals * Implementation
topologically and geometrically regular array of data
a simple class to control print indentation
String class that stores Unicode text.
represent text properties.
virtual void SetScaleToPowerOfTwo(bool scale)
Should we produce images at powers of 2, makes rendering on old OpenGL hardware easier.
virtual vtkVector2i GetBounds(vtkTextProperty *property, const vtkUnicodeString &string, int dpi)=0
Given a text property and a string, get the bounding box [xmin, xmax] x [ymin, ymax].
Some derived classes for the different vectors commonly used.
Wrapper around std::string to keep symbols short.
uses vtkTextRenderer to render the supplied text to an image.