VTK
dox/Graphics/vtkAppendCompositeDataLeaves.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkAppendCompositeDataLeaves.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 =========================================================================*/
00035 #ifndef __vtkAppendCompositeDataLeaves_h
00036 #define __vtkAppendCompositeDataLeaves_h
00037 
00038 #include "vtkCompositeDataSetAlgorithm.h"
00039 
00040 class vtkAppendFilter;
00041 class vtkAppendPolyData;
00042 class vtkCompositeDataIterator;
00043 class vtkDataSet;
00044 class vtkPolyData;
00045 class vtkUnstructuredGrid;
00046 
00047 class VTK_GRAPHICS_EXPORT vtkAppendCompositeDataLeaves : public vtkCompositeDataSetAlgorithm
00048 {
00049 public:
00050   static vtkAppendCompositeDataLeaves* New();
00051 
00052   vtkTypeMacro(vtkAppendCompositeDataLeaves,vtkCompositeDataSetAlgorithm);
00053   void PrintSelf( ostream& os, vtkIndent indent );
00054 
00055 //BTX
00057 
00058   vtkCompositeDataSet* GetInput( int idx );
00059   vtkCompositeDataSet* GetInput() 
00060     { return this->GetInput( 0 ); }
00061 //ETX
00063 
00065   void RemoveInput( vtkDataSet* in );
00066 
00068 
00073   vtkSetMacro(AppendFieldData,int);
00074   vtkGetMacro(AppendFieldData,int);
00075   vtkBooleanMacro(AppendFieldData,int);
00077 
00078 protected:
00079   vtkAppendCompositeDataLeaves();
00080   ~vtkAppendCompositeDataLeaves();
00081 
00084   virtual int RequestDataObject( vtkInformation*, vtkInformationVector**, vtkInformationVector* );
00085   
00087   virtual int RequestData( vtkInformation*, vtkInformationVector**, vtkInformationVector* );
00088 
00090   virtual int FillInputPortInformation( int port, vtkInformation* info );
00091 
00094   virtual void AppendUnstructuredGrids( int i, int numInputs, vtkCompositeDataIterator* iter, vtkCompositeDataSet* output );
00095 
00098   virtual void AppendPolyData( int i, int numInputs, vtkCompositeDataIterator* iter, vtkCompositeDataSet* output );
00099 
00104   virtual void AppendFieldDataArrays( int i, int numInputs, vtkCompositeDataIterator* iter, vtkDataSet* dset );
00105 
00106   int AppendFieldData;
00107   vtkAppendFilter* AppendUG;
00108   vtkAppendPolyData* AppendPD;
00109 
00110 private:
00111   vtkAppendCompositeDataLeaves ( const vtkAppendCompositeDataLeaves& ); // Not implemented.
00112   void operator = ( const vtkAppendCompositeDataLeaves& ); // Not implemented.
00113 };
00114 
00115 #endif // __vtkAppendCompositeDataLeaves_h