VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTableToArray.h 00005 00006 ------------------------------------------------------------------------- 00007 Copyright 2008 Sandia Corporation. 00008 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00009 the U.S. Government retains certain rights in this software. 00010 ------------------------------------------------------------------------- 00011 00012 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00013 All rights reserved. 00014 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00015 00016 This software is distributed WITHOUT ANY WARRANTY; without even 00017 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00018 PURPOSE. See the above copyright notice for more information. 00019 00020 =========================================================================*/ 00021 00046 #ifndef __vtkTableToArray_h 00047 #define __vtkTableToArray_h 00048 00049 #include "vtkInfovisCoreModule.h" // For export macro 00050 #include "vtkArrayDataAlgorithm.h" 00051 00052 class VTKINFOVISCORE_EXPORT vtkTableToArray : public vtkArrayDataAlgorithm 00053 { 00054 public: 00055 static vtkTableToArray* New(); 00056 vtkTypeMacro(vtkTableToArray, vtkArrayDataAlgorithm); 00057 void PrintSelf(ostream& os, vtkIndent indent); 00058 00061 void ClearColumns(); 00064 void AddColumn(const char* name); 00067 void AddColumn(vtkIdType index); 00069 void AddAllColumns(); 00070 00071 //BTX 00072 protected: 00073 vtkTableToArray(); 00074 ~vtkTableToArray(); 00075 00076 int FillInputPortInformation(int, vtkInformation*); 00077 00078 int RequestData( 00079 vtkInformation*, 00080 vtkInformationVector**, 00081 vtkInformationVector*); 00082 00083 private: 00084 vtkTableToArray(const vtkTableToArray&); // Not implemented 00085 void operator=(const vtkTableToArray&); // Not implemented 00086 00087 class implementation; 00088 implementation* const Implementation; 00089 //ETX 00090 }; 00091 00092 #endif 00093