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 
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 "vtkDataSetToUnstructuredGridFilter.h"
00036 
00037 class vtkDataSetCollection;
00038 
00039 class VTK_GRAPHICS_EXPORT vtkAppendFilter : public vtkDataSetToUnstructuredGridFilter
00040 {
00041 public:
00042   static vtkAppendFilter *New();
00043 
00044   vtkTypeRevisionMacro(vtkAppendFilter,vtkDataSetToUnstructuredGridFilter);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048   void AddInput(vtkDataSet *in);
00049 
00051 
00052   vtkDataSet *GetInput(int idx);
00053   vtkDataSet *GetInput() 
00054     {return this->GetInput( 0 );}
00056   
00058   void RemoveInput(vtkDataSet *in);
00059 
00062   vtkDataSetCollection *GetInputList();
00063 
00064 protected:
00065   vtkAppendFilter();
00066   ~vtkAppendFilter();
00067 
00068   // Usual data generation method
00069   void Execute();
00070 
00071   // list of data sets to append together.
00072   // Here as a convenience.  It is a copy of the input array.
00073   vtkDataSetCollection *InputList;
00074 
00075 private:
00076   // hide the superclass' AddInput() from the user and the compiler
00077   void AddInput(vtkDataObject *)
00078     { vtkErrorMacro( << "AddInput() must be called with a vtkDataSet not a vtkDataObject."); };
00079   void RemoveInput(vtkDataObject *input)
00080     { this->vtkProcessObject::RemoveInput(input); };
00081 private:
00082   vtkAppendFilter(const vtkAppendFilter&);  // Not implemented.
00083   void operator=(const vtkAppendFilter&);  // Not implemented.
00084 };
00085 
00086 
00087 #endif
00088 
00089