VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkQImageToImageSource.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00024 #ifndef __vtkQImageToImageSource_h 00025 #define __vtkQImageToImageSource_h 00026 00027 #include "vtkRenderingQtModule.h" // For export macro 00028 #include "vtkImageAlgorithm.h" 00029 00030 //BTX 00031 class QImage; 00032 //ETX 00033 00034 class VTKRENDERINGQT_EXPORT vtkQImageToImageSource : public vtkImageAlgorithm 00035 { 00036 public: 00037 static vtkQImageToImageSource *New(); 00038 vtkTypeMacro(vtkQImageToImageSource,vtkImageAlgorithm); 00039 void PrintSelf(ostream& os, vtkIndent indent); 00040 00042 00043 void SetQImage( QImage* image ) 00044 {this->QtImage = image; this->Modified();} 00045 const QImage* GetQImage(){return QtImage;} 00047 00048 protected: 00049 vtkQImageToImageSource(); 00050 ~vtkQImageToImageSource() {} 00051 00052 const QImage* QtImage; 00053 int DataExtent[6]; 00054 00055 virtual int RequestData( vtkInformation*, vtkInformationVector**, vtkInformationVector*); 00056 int RequestInformation ( vtkInformation * vtkNotUsed(request), 00057 vtkInformationVector ** vtkNotUsed( inputVector ), 00058 vtkInformationVector *outputVector); 00059 private: 00060 vtkQImageToImageSource(const vtkQImageToImageSource&); // Not implemented. 00061 void operator=(const vtkQImageToImageSource&); // Not implemented. 00062 }; 00063 00064 00065 #endif