VTK  9.2.6
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=========================================================================*/
21
22#ifndef vtkQImageToImageSource_h
23#define vtkQImageToImageSource_h
24
25#include "vtkImageAlgorithm.h"
26#include "vtkRenderingQtModule.h" // For export macro
27
28class QImage;
29
30class VTKRENDERINGQT_EXPORT vtkQImageToImageSource : public vtkImageAlgorithm
31{
32public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
40 void SetQImage(QImage* image)
41 {
42 this->QtImage = image;
43 this->Modified();
44 }
45 const QImage* GetQImage() { return QtImage; }
46
47protected:
49 ~vtkQImageToImageSource() override = default;
50
51 const QImage* QtImage;
52 int DataExtent[6];
53
55 int RequestInformation(vtkInformation* vtkNotUsed(request),
56 vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* outputVector) override;
57
58private:
60 void operator=(const vtkQImageToImageSource&) = delete;
61};
62
63#endif
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
virtual void Modified()
Update the modification time for this object.
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()