dox/Imaging/vtkImageSimpleMIP.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   BioImageXD
00004   Module:    $RCSfile: vtkImageSimpleMIP.h,v $
00005 
00006  Copyright (C) 2005  BioImageXD Project
00007  See CREDITS.txt for details
00008 
00009  This program is free software; you can redistribute it and/or modify
00010  it under the terms of the GNU General Public License as published by
00011  the Free Software Foundation; either version 2 of the License, or
00012  (at your option) any later version.
00013 
00014  This program is distributed in the hope that it will be useful,
00015  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  GNU General Public License for more details.
00018 
00019  You should have received a copy of the GNU General Public License
00020  along with this program; if not, write to the Free Software
00021  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 
00023 
00024 =========================================================================*/
00037 #ifndef __vtkImageSimpleMIP_h
00038 #define __vtkImageSimpleMIP_h
00039 
00040 #include "vtkThreadedImageAlgorithm.h"
00041 
00042 class VTK_IMAGING_EXPORT vtkImageSimpleMIP : public vtkThreadedImageAlgorithm
00043 {
00044 public:
00045   vtkTypeRevisionMacro(vtkImageSimpleMIP,vtkThreadedImageAlgorithm);
00046   void PrintSelf(ostream& os, vtkIndent indent);
00047 
00049   static vtkImageSimpleMIP *New();
00050      
00051 
00052 
00053 protected:
00054   vtkImageSimpleMIP();
00055   ~vtkImageSimpleMIP() {};
00056   int SplitExtent(int splitExt[6],
00057                                  int startExt[6],
00058                                  int num, int total);
00059 
00060   // Method that is used to retrieve information about the resulting output dataset
00061   virtual int RequestInformation (vtkInformation *, vtkInformationVector **,
00062                                   vtkInformationVector *);
00063   
00064   virtual int RequestUpdateExtent (
00065   vtkInformation* vtkNotUsed(request),
00066   vtkInformationVector** inputVector,
00067   vtkInformationVector* outputVector);  
00068   // Method that can be called by multiple threads that is given the input data and an input extent
00069   // and is responsible for producing the matching output data.
00070   void ThreadedRequestData (vtkInformation* request,
00071                             vtkInformationVector** inputVector,
00072                             vtkInformationVector* outputVector,
00073                             vtkImageData ***inData, vtkImageData **outData,
00074                             int ext[6], int id);
00075 
00076   // Implement methods required by vtkAlgorithm.
00077   virtual int FillInputPortInformation(int, vtkInformation*);  
00078 
00079 private:
00080   vtkImageSimpleMIP(const vtkImageSimpleMIP&);  // Not implemented.
00081   void operator=(const vtkImageSimpleMIP&);  // Not implemented.
00082 };
00083 
00084 #endif
00085 
00086 

Generated on Fri Sep 7 17:44:06 2007 for VTK by  doxygen 1.5.3