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=========================================================================*/
31#ifndef vtkQImageToImageSource_h
32#define vtkQImageToImageSource_h
33
34#include "vtkImageAlgorithm.h"
35#include "vtkRenderingQtModule.h" // For export macro
36
37class QImage;
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
72#endif
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:43
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