VTK
dox/Graphics/vtkAppendFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkAppendFilter.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 =========================================================================*/
00032 #ifndef __vtkAppendFilter_h
00033 #define __vtkAppendFilter_h
00034 
00035 #include "vtkUnstructuredGridAlgorithm.h"
00036 
00037 class vtkDataSetCollection;
00038 
00039 class VTK_GRAPHICS_EXPORT vtkAppendFilter : public vtkUnstructuredGridAlgorithm
00040 {
00041 public:
00042   static vtkAppendFilter *New();
00043 
00044   vtkTypeMacro(vtkAppendFilter,vtkUnstructuredGridAlgorithm);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048 
00049   vtkDataSet *GetInput(int idx);
00050   vtkDataSet *GetInput() 
00051     {return this->GetInput( 0 );}
00053 //ETX
00054 
00056   void RemoveInput(vtkDataSet *in);
00057 
00060   vtkDataSetCollection *GetInputList();
00061 
00062 protected:
00063   vtkAppendFilter();
00064   ~vtkAppendFilter();
00065 
00066   // Usual data generation method
00067   virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00068 
00069   virtual int FillInputPortInformation(int port, vtkInformation *info);
00070   
00072 
00077   int     AppendBlocksWithPointLocator( vtkInformationVector ** inputVector,
00078                                         vtkInformationVector  * outputVector );
00080   
00081 
00082   // list of data sets to append together.
00083   // Here as a convenience.  It is a copy of the input array.
00084   vtkDataSetCollection *InputList;
00085 
00086 private:
00087   vtkAppendFilter(const vtkAppendFilter&);  // Not implemented.
00088   void operator=(const vtkAppendFilter&);  // Not implemented.
00089 };
00090 
00091 
00092 #endif
00093 
00094