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
10 #ifndef vtkQImageToImageSource_h
11 #define vtkQImageToImageSource_h
12 
13 #include "vtkImageAlgorithm.h"
14 #include "vtkRenderingQtModule.h" // For export macro
15 
16 class QImage;
17 
18 VTK_ABI_NAMESPACE_BEGIN
19 
20 class VTKRENDERINGQT_EXPORT vtkQImageToImageSource : public vtkImageAlgorithm
21 {
22 public:
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
30  void SetQImage(QImage* image)
31  {
32  this->QtImage = image;
33  this->Modified();
34  }
35  const QImage* GetQImage() { return QtImage; }
36 
37 protected:
39  ~vtkQImageToImageSource() override = default;
40 
41  const QImage* QtImage;
42  int DataExtent[6];
43 
45  int RequestInformation(vtkInformation* vtkNotUsed(request),
46  vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* outputVector) override;
47 
48 private:
50  void operator=(const vtkQImageToImageSource&) = delete;
51 };
52 
53 VTK_ABI_NAMESPACE_END
54 #endif
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:29
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