VTK  9.3.0
vtkQImageToImageSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
19 #ifndef vtkQImageToImageSource_h
20 #define vtkQImageToImageSource_h
21 
22 #include "vtkImageAlgorithm.h"
23 #include "vtkRenderingQtModule.h" // For export macro
24 
25 class QImage;
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 
29 class VTKRENDERINGQT_EXPORT vtkQImageToImageSource : public vtkImageAlgorithm
30 {
31 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
39  void SetQImage(QImage* image)
40  {
41  this->QtImage = image;
42  this->Modified();
43  }
44  const QImage* GetQImage() { return QtImage; }
45 
46 protected:
48  ~vtkQImageToImageSource() override = default;
49 
50  const QImage* QtImage;
51  int DataExtent[6];
52 
54  int RequestInformation(vtkInformation* vtkNotUsed(request),
55  vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* outputVector) override;
56 
57 private:
59  void operator=(const vtkQImageToImageSource&) = delete;
60 };
61 
62 VTK_ABI_NAMESPACE_END
63 #endif
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:38
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:374