Go to the documentation of this file.
25 #ifndef vtkStringToImage_h
26 #define vtkStringToImage_h
28 #include "vtkRenderingCoreModule.h"
74 int textDims[2] = NULL) = 0;
78 int text_dims[2] = NULL) = 0;
86 vtkGetMacro(ScaleToPowerOfTwo,
bool)
100 #endif //vtkStringToImage_h
virtual int RenderString(vtkTextProperty *property, const vtkUnicodeString &string, int dpi, vtkImageData *data, int textDims[2]=NULL)=0
Given a text property and a string, this function initializes the vtkImageData *data and renders it i...
abstract base class for most VTK objects
base class for classes that render supplied text to an image.
virtual vtkVector2i GetBounds(vtkTextProperty *property, const vtkStdString &string, int dpi)=0
topologically and geometrically regular array of data
a simple class to control print indentation
String class that stores Unicode text.
represent text properties.
virtual int RenderString(vtkTextProperty *property, const vtkStdString &string, int dpi, vtkImageData *data, int text_dims[2]=NULL)=0
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
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.