Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkImageMultipleInputOutputFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageMultipleInputOutputFilter.h,v $
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 =========================================================================*/
00035 #ifndef __vtkImageMultipleInputOutputFilter_h
00036 #define __vtkImageMultipleInputOutputFilter_h
00037 
00038 
00039 #include "vtkImageMultipleInputFilter.h"
00040 
00041 
00042 class VTK_FILTERING_EXPORT vtkImageMultipleInputOutputFilter : public vtkImageMultipleInputFilter
00043 {
00044 public:
00045   vtkTypeRevisionMacro(vtkImageMultipleInputOutputFilter,vtkImageMultipleInputFilter);
00046   void PrintSelf(ostream& os, vtkIndent indent);
00047 
00049 
00050   vtkImageData *GetOutput(int num);
00051   vtkImageData *GetOutput();
00053 
00055 
00058   virtual void ThreadedExecute(vtkImageData **inDatas, 
00059                                vtkImageData **outDatas,
00060                                int extent[6], int threadId);
00062 
00063 protected:
00064   vtkImageMultipleInputOutputFilter();
00065   ~vtkImageMultipleInputOutputFilter();
00066 
00067   void ComputeInputUpdateExtents( vtkDataObject *output );
00068   
00069   virtual void ComputeInputUpdateExtent( int inExt[6], 
00070                                          int outExt[6], 
00071                                          int whichInput );
00072 
00073 
00074   void ExecuteData(vtkDataObject *out);
00075 
00076   // this should never be called
00077   virtual void ThreadedExecute(vtkImageData **inDatas, 
00078                                vtkImageData *outData,
00079                                int extent[6], int threadId);
00080   virtual void ExecuteInformation(vtkImageData **, vtkImageData *) {};
00081 
00082   // This one gets called by the superclass.
00083   void ExecuteInformation();
00084   // This is the one you should override.
00085   virtual void ExecuteInformation(vtkImageData **, vtkImageData **) {};
00086 private:
00087   vtkImageMultipleInputOutputFilter(const vtkImageMultipleInputOutputFilter&);  // Not implemented.
00088   void operator=(const vtkImageMultipleInputOutputFilter&);  // Not implemented.
00089 };
00090 
00091 #endif
00092 
00093 
00094 
00095 
00096 
00097 
00098