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 "vtkArrayDataAlgorithm.h" 00050 00051 class VTK_INFOVIS_EXPORT vtkTableToArray : public vtkArrayDataAlgorithm 00052 { 00053 public: 00054 static vtkTableToArray* New(); 00055 vtkTypeMacro(vtkTableToArray, vtkArrayDataAlgorithm); 00056 void PrintSelf(ostream& os, vtkIndent indent); 00057 00060 void ClearColumns(); 00063 void AddColumn(const char* name); 00066 void AddColumn(vtkIdType index); 00068 void AddAllColumns(); 00069 00070 //BTX 00071 protected: 00072 vtkTableToArray(); 00073 ~vtkTableToArray(); 00074 00075 int FillInputPortInformation(int, vtkInformation*); 00076 00077 int RequestData( 00078 vtkInformation*, 00079 vtkInformationVector**, 00080 vtkInformationVector*); 00081 00082 private: 00083 vtkTableToArray(const vtkTableToArray&); // Not implemented 00084 void operator=(const vtkTableToArray&); // Not implemented 00085 00086 class implementation; 00087 implementation* const Implementation; 00088 //ETX 00089 }; 00090 00091 #endif 00092