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

Graphics/vtkAppendFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkAppendFilter.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00036 #ifndef __vtkAppendFilter_h
00037 #define __vtkAppendFilter_h
00038 
00039 #include "vtkDataSetToUnstructuredGridFilter.h"
00040 
00041 class vtkDataSetCollection;
00042 
00043 class VTK_GRAPHICS_EXPORT vtkAppendFilter : public vtkDataSetToUnstructuredGridFilter
00044 {
00045 public:
00046   static vtkAppendFilter *New();
00047 
00048   vtkTypeRevisionMacro(vtkAppendFilter,vtkDataSetToUnstructuredGridFilter);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050 
00052   void AddInput(vtkDataSet *in);
00053 
00055 
00056   vtkDataSet *GetInput(int idx);
00057   vtkDataSet *GetInput() 
00058     {return this->GetInput( 0 );}
00060   
00062   void RemoveInput(vtkDataSet *in);
00063 
00066   vtkDataSetCollection *GetInputList();
00067 
00068 protected:
00069   vtkAppendFilter();
00070   ~vtkAppendFilter();
00071 
00072   // Usual data generation method
00073   void Execute();
00074 
00075   // list of data sets to append together.
00076   // Here as a convenience.  It is a copy of the input array.
00077   vtkDataSetCollection *InputList;
00078 
00079 private:
00080   // hide the superclass' AddInput() from the user and the compiler
00081   void AddInput(vtkDataObject *)
00082     { vtkErrorMacro( << "AddInput() must be called with a vtkDataSet not a vtkDataObject."); };
00083   void RemoveInput(vtkDataObject *input)
00084     { this->vtkProcessObject::RemoveInput(input); };
00085 private:
00086   vtkAppendFilter(const vtkAppendFilter&);  // Not implemented.
00087   void operator=(const vtkAppendFilter&);  // Not implemented.
00088 };
00089 
00090 
00091 #endif
00092 
00093