VTK
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=========================================================================*/
25#ifndef vtkQImageToImageSource_h
26#define vtkQImageToImageSource_h
27
28#include "vtkRenderingQtModule.h" // For export macro
29#include "vtkImageAlgorithm.h"
30
31class QImage;
32
33class VTKRENDERINGQT_EXPORT vtkQImageToImageSource : public vtkImageAlgorithm
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent);
39
43 void SetQImage( QImage* image )
44 {this->QtImage = image; this->Modified();}
45 const QImage* GetQImage(){return QtImage;}
46
47protected:
50
51 const QImage* QtImage;
52 int DataExtent[6];
53
55 int RequestInformation ( vtkInformation * vtkNotUsed(request),
56 vtkInformationVector ** vtkNotUsed( inputVector ),
57 vtkInformationVector *outputVector);
58private:
59 vtkQImageToImageSource(const vtkQImageToImageSource&) VTK_DELETE_FUNCTION;
60 void operator=(const vtkQImageToImageSource&) VTK_DELETE_FUNCTION;
61};
62
63
64#endif
Generic algorithm superclass for image algs.
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.
Create image data from a QImage.
int RequestInformation(vtkInformation *vtkNotUsed(request), vtkInformationVector **vtkNotUsed(inputVector), vtkInformationVector *outputVector)
void SetQImage(QImage *image)
Set/Get QImage surface to be used.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called in response to a REQUEST_DATA request from the executive.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkQImageToImageSource * New()
@ image
Definition: vtkX3D.h:374