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 =========================================================================*/
25 #ifndef vtkQImageToImageSource_h
26 #define vtkQImageToImageSource_h
27 
28 #include "vtkRenderingQtModule.h" // For export macro
29 #include "vtkImageAlgorithm.h"
30 
31 class QImage;
32 
33 class VTKRENDERINGQT_EXPORT vtkQImageToImageSource : public vtkImageAlgorithm
34 {
35 public:
36  static vtkQImageToImageSource *New();
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
43  void SetQImage( QImage* image )
44  {this->QtImage = image; this->Modified();}
45  const QImage* GetQImage(){return QtImage;}
46 
47 protected:
50 
51  const QImage* QtImage;
52  int DataExtent[6];
53 
55  int RequestInformation ( vtkInformation * vtkNotUsed(request),
56  vtkInformationVector ** vtkNotUsed( inputVector ),
57  vtkInformationVector *outputVector);
58 private:
59  vtkQImageToImageSource(const vtkQImageToImageSource&) VTK_DELETE_FUNCTION;
60  void operator=(const vtkQImageToImageSource&) VTK_DELETE_FUNCTION;
61 };
62 
63 
64 #endif
Create image data from a QImage.
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
virtual void Modified()
Update the modification time for this object.
void SetQImage(QImage *image)
Set/Get QImage surface to be used.
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.