13#ifndef vtkStringToImage_h
14#define vtkStringToImage_h
17#include "vtkRenderingCoreModule.h"
19VTK_ABI_NAMESPACE_BEGIN
65 vtkGetMacro(ScaleToPowerOfTwo,
bool);
topologically and geometrically regular array of data
a simple class to control print indentation
abstract base class for most VTK objects
Wrapper around std::string to keep symbols short.
base class for classes that render supplied text to an image.
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkStringToImage() override
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].
represent text properties.
Some derived classes for the different vectors commonly used.