VTK
dox/Imaging/Core/vtkImageAppendComponents.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageAppendComponents.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 =========================================================================*/
00028 #ifndef __vtkImageAppendComponents_h
00029 #define __vtkImageAppendComponents_h
00030 
00031 
00032 #include "vtkImagingCoreModule.h" // For export macro
00033 #include "vtkThreadedImageAlgorithm.h"
00034 
00035 class VTKIMAGINGCORE_EXPORT vtkImageAppendComponents : public vtkThreadedImageAlgorithm
00036 {
00037 public:
00038   static vtkImageAppendComponents *New();
00039   vtkTypeMacro(vtkImageAppendComponents,vtkThreadedImageAlgorithm);
00040 
00045   virtual void ReplaceNthInputConnection(int idx, vtkAlgorithmOutput* input);
00046 
00048 
00051   void SetInputData(int num, vtkDataObject *input);
00052   void SetInputData(vtkDataObject *input) { this->SetInputData(0, input); };
00054 
00056 
00059   vtkDataObject *GetInput(int num);
00060   vtkDataObject *GetInput() { return this->GetInput(0); };
00062 
00066   int GetNumberOfInputs() { return this->GetNumberOfInputConnections(0); };
00067 
00068 protected:
00069   vtkImageAppendComponents() {};
00070   ~vtkImageAppendComponents() {};
00071 
00072   virtual int RequestInformation (vtkInformation *, vtkInformationVector **,
00073                                   vtkInformationVector *);
00074 
00075   void ThreadedRequestData (vtkInformation* request,
00076                             vtkInformationVector** inputVector,
00077                             vtkInformationVector* outputVector,
00078                             vtkImageData ***inData, vtkImageData **outData,
00079                             int ext[6], int id);
00080 
00081   // Implement methods required by vtkAlgorithm.
00082   virtual int FillInputPortInformation(int, vtkInformation*);
00083 
00084 private:
00085   vtkImageAppendComponents(const vtkImageAppendComponents&);  // Not implemented.
00086   void operator=(const vtkImageAppendComponents&);  // Not implemented.
00087 };
00088 
00089 #endif
00090 
00091 
00092 
00093 
00094 // VTK-HeaderTest-Exclude: vtkImageAppendComponents.h