VTK
dox/Rendering/vtkQtStringToImage.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkQtStringToImage.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 
00026 #ifndef __vtkQtStringToImage_h
00027 #define __vtkQtStringToImage_h
00028 
00029 #include "vtkStringToImage.h"
00030 #include "vtkSmartPointer.h" // For SP ivars
00031 
00032 class vtkQImageToImageSource;
00033 
00034 class VTK_RENDERING_EXPORT vtkQtStringToImage : public vtkStringToImage
00035 {
00036 public:
00037   vtkTypeMacro(vtkQtStringToImage, vtkStringToImage);
00038   virtual void PrintSelf(ostream &os, vtkIndent indent);
00039 
00040   static vtkQtStringToImage *New();
00041 
00043 
00052   virtual vtkVector2i GetBounds(vtkTextProperty *property,
00053                                 const vtkUnicodeString& string);
00054   virtual vtkVector2i GetBounds(vtkTextProperty *property,
00055                                 const vtkStdString& string);
00057 
00059 
00061   virtual int RenderString(vtkTextProperty *property,
00062                            const vtkUnicodeString& string,
00063                            vtkImageData *data);
00064   virtual int RenderString(vtkTextProperty *property,
00065                            const vtkStdString& string,
00066                            vtkImageData *data);
00068 
00070   void DeepCopy(vtkQtStringToImage *utility);
00071 
00072 protected:
00073   vtkQtStringToImage();
00074   ~vtkQtStringToImage();
00075 
00076   class Internals;
00077   Internals* Implementation;
00078 
00079   vtkSmartPointer<vtkQImageToImageSource> QImageToImage;
00080 
00081 private:
00082   vtkQtStringToImage(const vtkQtStringToImage &); // Not implemented.
00083   void operator=(const vtkQtStringToImage &);   // Not implemented.
00084 };
00085 
00086 #endif //__vtkQtStringToImage_h