VTK
dox/Common/ExecutionModel/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 -------------------------------------------------------------------------*/
00038 #ifndef __vtkTableAlgorithm_h
00039 #define __vtkTableAlgorithm_h
00040 
00041 #include "vtkCommonExecutionModelModule.h" // For export macro
00042 #include "vtkAlgorithm.h"
00043 
00044 class vtkDataSet;
00045 class vtkTable;
00046 
00047 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkTableAlgorithm : public vtkAlgorithm
00048 {
00049 public:
00050   static vtkTableAlgorithm *New();
00051   vtkTypeMacro(vtkTableAlgorithm,vtkAlgorithm);
00052   void PrintSelf(ostream& os, vtkIndent indent);
00053 
00055 
00056   virtual int ProcessRequest(vtkInformation*,
00057                              vtkInformationVector**,
00058                              vtkInformationVector*);
00060 
00062 
00063   vtkTable* GetOutput() { return this->GetOutput(0); }
00064   vtkTable* GetOutput(int index);
00066 
00068 
00071   void SetInputData(vtkDataObject * obj) { this->SetInputData(0, obj); }
00072   void SetInputData(int index, vtkDataObject* obj);
00074 
00075 protected:
00076   vtkTableAlgorithm();
00077   ~vtkTableAlgorithm();
00078 
00079   // convenience method
00080   virtual int RequestInformation(vtkInformation* request,
00081                                  vtkInformationVector** inputVector,
00082                                  vtkInformationVector* outputVector);
00083 
00085 
00087   virtual int RequestData(vtkInformation* request,
00088                           vtkInformationVector** inputVector,
00089                           vtkInformationVector* outputVector);
00091 
00093 
00095   virtual int RequestUpdateExtent(vtkInformation*,
00096                                   vtkInformationVector**,
00097                                   vtkInformationVector*);
00099 
00100   // see algorithm for more info
00101   virtual int FillOutputPortInformation(int port, vtkInformation* info);
00102   virtual int FillInputPortInformation(int port, vtkInformation* info);
00103 
00104 private:
00105   vtkTableAlgorithm(const vtkTableAlgorithm&);  // Not implemented.
00106   void operator=(const vtkTableAlgorithm&);  // Not implemented.
00107 };
00108 
00109 #endif