VTK
dox/Filtering/vtkTableAlgorithm.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkTableAlgorithm.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 =========================================================================*/
00015 /*-------------------------------------------------------------------------
00016   Copyright 2008 Sandia Corporation.
00017   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00018   the U.S. Government retains certain rights in this software.
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   vtkTypeMacro(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   // convenience method
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   // see algorithm for more info
00110   virtual int FillOutputPortInformation(int port, vtkInformation* info);
00111   virtual int FillInputPortInformation(int port, vtkInformation* info);
00112 
00113 private:
00114   vtkTableAlgorithm(const vtkTableAlgorithm&);  // Not implemented.
00115   void operator=(const vtkTableAlgorithm&);  // Not implemented.
00116 };
00117 
00118 #endif