Go to the documentation of this file.
27 #ifndef vtkQtStringToImage_h
28 #define vtkQtStringToImage_h
30 #include "vtkRenderingQtModule.h"
73 int textDims[2] = NULL);
77 int textDims[2] = NULL);
99 #endif //vtkQtStringToImage_h
Internals * Implementation
virtual vtkVector2i GetBounds(vtkTextProperty *property, const vtkUnicodeString &string, int dpi)
Given a text property and a string, get the bounding box [xmin, xmax] x [ymin, ymax].
base class for classes that render supplied text to an image.
virtual vtkVector2i GetBounds(vtkTextProperty *property, const vtkStdString &string, int dpi)
static vtkQtStringToImage * New()
Create image data from a QImage.
topologically and geometrically regular array of data
a simple class to control print indentation
String class that stores Unicode text.
vtkSmartPointer< vtkQImageToImageSource > QImageToImage
represent text properties.
uses Qt to render the supplied text to an image.
virtual int RenderString(vtkTextProperty *property, const vtkUnicodeString &string, int dpi, vtkImageData *data, int textDims[2]=NULL)
Given a text property and a string, this function initializes the vtkImageData *data and renders it i...
Some derived classes for the different vectors commonly used.
Wrapper around std::string to keep symbols short.
void DeepCopy(vtkQtStringToImage *utility)
Make a deep copy of the supplied utility class.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int RenderString(vtkTextProperty *property, const vtkStdString &string, int dpi, vtkImageData *data, int textDims[2]=NULL)