VTK  9.3.20240422
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
29#ifndef vtkQImageToImageSource_h
30#define vtkQImageToImageSource_h
31
32#include "vtkImageAlgorithm.h"
33#include "vtkRenderingQtModule.h" // For export macro
34
35class QImage;
36
37VTK_ABI_NAMESPACE_BEGIN
38
39class VTKRENDERINGQT_EXPORT vtkQImageToImageSource : public vtkImageAlgorithm
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
49 void SetQImage(QImage* image)
50 {
51 this->QtImage = image;
52 this->Modified();
53 }
54 const QImage* GetQImage() { return QtImage; }
55
56protected:
58 ~vtkQImageToImageSource() override = default;
59
60 const QImage* QtImage;
61 int DataExtent[6];
62
64 int RequestInformation(vtkInformation* vtkNotUsed(request),
65 vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* outputVector) override;
66
67private:
69 void operator=(const vtkQImageToImageSource&) = delete;
70};
71
72VTK_ABI_NAMESPACE_END
73#endif
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition vtkIndent.h:108
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.
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.
static vtkQImageToImageSource * New()