VTK
vtkQImageToImageSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkQImageToImageSource.h
5 
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
24 #ifndef vtkQImageToImageSource_h
25 #define vtkQImageToImageSource_h
26 
27 #include "vtkRenderingQtModule.h" // For export macro
28 #include "vtkImageAlgorithm.h"
29 
30 //BTX
31 class QImage;
32 //ETX
33 
34 class VTKRENDERINGQT_EXPORT vtkQImageToImageSource : public vtkImageAlgorithm
35 {
36 public:
37  static vtkQImageToImageSource *New();
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
43  void SetQImage( QImage* image )
44  {this->QtImage = image; this->Modified();}
45  const QImage* GetQImage(){return QtImage;}
47 
48 protected:
51 
52  const QImage* QtImage;
53  int DataExtent[6];
54 
56  int RequestInformation ( vtkInformation * vtkNotUsed(request),
57  vtkInformationVector ** vtkNotUsed( inputVector ),
58  vtkInformationVector *outputVector);
59 private:
60  vtkQImageToImageSource(const vtkQImageToImageSource&); // Not implemented.
61  void operator=(const vtkQImageToImageSource&); // Not implemented.
62 };
63 
64 
65 #endif
Create image data from a QImage.
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual void Modified()
void SetQImage(QImage *image)
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)