00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00044 #ifndef __vtkTableAlgorithm_h
00045 #define __vtkTableAlgorithm_h
00046 
00047 #include "vtkAlgorithm.h"
00048 
00049 class vtkDataSet;
00050 class vtkTable;
00051 
00052 class VTK_FILTERING_EXPORT vtkTableAlgorithm : public vtkAlgorithm
00053 {
00054 public:
00055   static vtkTableAlgorithm *New();
00056   vtkTypeRevisionMacro(vtkTableAlgorithm,vtkAlgorithm);
00057   void PrintSelf(ostream& os, vtkIndent indent);
00058 
00060 
00061   virtual int ProcessRequest(vtkInformation*,
00062                              vtkInformationVector**,
00063                              vtkInformationVector*);
00065 
00067 
00068   vtkTable* GetOutput() { return this->GetOutput(0); }
00069   vtkTable* GetOutput(int index);
00071 
00073 
00080   void SetInput(vtkDataObject * obj) { this->SetInput(0, obj); }
00081   void SetInput(int index, vtkDataObject* obj);
00083 
00084 protected:
00085   vtkTableAlgorithm();
00086   ~vtkTableAlgorithm();
00087 
00088   
00089   virtual int RequestInformation(vtkInformation* request,
00090                                  vtkInformationVector** inputVector,
00091                                  vtkInformationVector* outputVector);
00092 
00094 
00096   virtual int RequestData(vtkInformation* request,
00097                           vtkInformationVector** inputVector,
00098                           vtkInformationVector* outputVector);
00100 
00102 
00104   virtual int RequestUpdateExtent(vtkInformation*,
00105                                   vtkInformationVector**,
00106                                   vtkInformationVector*);
00108 
00109   
00110   virtual int FillOutputPortInformation(int port, vtkInformation* info);
00111   virtual int FillInputPortInformation(int port, vtkInformation* info);
00112 
00113 private:
00114   vtkTableAlgorithm(const vtkTableAlgorithm&);  
00115   void operator=(const vtkTableAlgorithm&);  
00116 };
00117 
00118 #endif