VTK  9.2.6
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 =========================================================================*/
41 #ifndef vtkQImageToImageSource_h
42 #define vtkQImageToImageSource_h
43 
44 #include "vtkImageAlgorithm.h"
45 #include "vtkRenderingQtModule.h" // For export macro
46 
47 class QImage;
48 
49 class VTKRENDERINGQT_EXPORT vtkQImageToImageSource : public vtkImageAlgorithm
50 {
51 public:
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
59  void SetQImage(QImage* image)
60  {
61  this->QtImage = image;
62  this->Modified();
63  }
64  const QImage* GetQImage() { return QtImage; }
65 
66 protected:
68  ~vtkQImageToImageSource() override = default;
69 
70  const QImage* QtImage;
71  int DataExtent[6];
72 
74  int RequestInformation(vtkInformation* vtkNotUsed(request),
75  vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* outputVector) override;
76 
77 private:
79  void operator=(const vtkQImageToImageSource&) = delete;
80 };
81 
82 #endif
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
virtual void Modified()
Update the modification time for this object.
Create image data from a QImage.
void SetQImage(QImage *image)
Set/Get QImage surface to be used.
static vtkQImageToImageSource * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkQImageToImageSource() override=default
int RequestInformation(vtkInformation *vtkNotUsed(request), vtkInformationVector **vtkNotUsed(inputVector), vtkInformationVector *outputVector) override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
@ image
Definition: vtkX3D.h:380