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

vtkImageAppend.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageAppend.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 =========================================================================*/
00042 #ifndef __vtkImageAppend_h
00043 #define __vtkImageAppend_h
00044 
00045 
00046 #include "vtkImageMultipleInputFilter.h"
00047 
00048 class VTK_IMAGING_EXPORT vtkImageAppend : public vtkImageMultipleInputFilter
00049 {
00050 public:
00051   static vtkImageAppend *New();
00052   vtkTypeRevisionMacro(vtkImageAppend,vtkImageMultipleInputFilter);
00053   void PrintSelf(ostream& os, vtkIndent indent);
00054   
00056 
00059   vtkSetMacro(AppendAxis, int);
00060   vtkGetMacro(AppendAxis, int);
00062   
00064 
00070   vtkSetMacro(PreserveExtents, int);
00071   vtkGetMacro(PreserveExtents, int);
00072   vtkBooleanMacro(PreserveExtents, int);
00074 
00075 protected:
00076   vtkImageAppend();
00077   ~vtkImageAppend();
00078 
00079   int PreserveExtents;
00080   int AppendAxis;
00081   // Array holds the AppendAxisExtent shift for each input.
00082   int *Shifts;
00083 
00084   void ExecuteInformation(vtkImageData **inputs, vtkImageData *output);
00085   void ComputeInputUpdateExtent(int inExt[6], int outExt[6], int whichInput);
00086   void ExecuteInformation(){this->vtkImageMultipleInputFilter::ExecuteInformation();};
00087   
00088   void ThreadedExecute(vtkImageData **inDatas, vtkImageData *outData,
00089                        int extent[6], int id);
00090 
00091   void InitOutput(int outExt[6], vtkImageData *outData);
00092 private:
00093   vtkImageAppend(const vtkImageAppend&);  // Not implemented.
00094   void operator=(const vtkImageAppend&);  // Not implemented.
00095 };
00096 
00097 #endif
00098 
00099 
00100 
00101