27 #ifndef vtkQtStringToImage_h 28 #define vtkQtStringToImage_h 30 #include "vtkRenderingQtModule.h" 73 int textDims[2] =
nullptr)
override;
77 int textDims[2] =
nullptr)
override;
99 #endif //vtkQtStringToImage_h
Create image data from a QImage.
Wrapper around std::string to keep symbols short.
vtkSmartPointer< vtkQImageToImageSource > QImageToImage
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...
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.
uses Qt to render the supplied text to an image.
Internals * Implementation
a simple class to control print indentation
topologically and geometrically regular array of data
Some derived classes for the different vectors commonly used.
represent text properties.
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].
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
String class that stores Unicode text.