VTK
dox/Rendering/vtkQImageToImageSource.h
Go to the documentation of this file.
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 "vtkImageAlgorithm.h"
00028 
00029 //BTX
00030 class QImage;
00031 //ETX
00032 
00033 class VTK_RENDERING_EXPORT vtkQImageToImageSource : public vtkImageAlgorithm
00034 {
00035 public:
00036   static vtkQImageToImageSource *New();
00037   vtkTypeMacro(vtkQImageToImageSource,vtkImageAlgorithm);
00038   void PrintSelf(ostream& os, vtkIndent indent);
00039 
00041 
00042   void SetQImage( QImage* image )
00043       {this->QtImage = image; this->Modified();}
00044   const QImage* GetQImage(){return QtImage;}
00046 
00047 protected:
00048   vtkQImageToImageSource();
00049   ~vtkQImageToImageSource() {};
00050 
00051   const QImage* QtImage;
00052   int DataExtent[6];
00053 
00054   virtual int RequestData( vtkInformation*, vtkInformationVector**, vtkInformationVector*);
00055   int RequestInformation ( vtkInformation * vtkNotUsed(request),
00056                            vtkInformationVector ** vtkNotUsed( inputVector ),
00057                            vtkInformationVector *outputVector);
00058 private:
00059   vtkQImageToImageSource(const vtkQImageToImageSource&);  // Not implemented.
00060   void operator=(const vtkQImageToImageSource&);  // Not implemented.
00061 };
00062 
00063 
00064 #endif