VTK  9.1.0
vtkQImageToImageSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: Visualization Toolkit
4Module: vtkQImageToImageSource.h
5
6Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7All rights reserved.
8See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10This software is distributed WITHOUT ANY WARRANTY; without even
11the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12PURPOSE. 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
47class QImage;
48
49class VTKRENDERINGQT_EXPORT vtkQImageToImageSource : public vtkImageAlgorithm
50{
51public:
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
66protected:
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
77private:
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:113
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()
@ image
Definition: vtkX3D.h:380