VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTableToSparseArray.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 00051 #ifndef __vtkTableToSparseArray_h 00052 #define __vtkTableToSparseArray_h 00053 00054 #include "vtkInfovisCoreModule.h" // For export macro 00055 #include "vtkArrayDataAlgorithm.h" 00056 00057 class VTKINFOVISCORE_EXPORT vtkTableToSparseArray : public vtkArrayDataAlgorithm 00058 { 00059 public: 00060 static vtkTableToSparseArray* New(); 00061 vtkTypeMacro(vtkTableToSparseArray, vtkArrayDataAlgorithm); 00062 void PrintSelf(ostream& os, vtkIndent indent); 00063 00065 00067 void ClearCoordinateColumns(); 00068 void AddCoordinateColumn(const char* name); 00070 00072 00074 void SetValueColumn(const char* name); 00075 const char* GetValueColumn(); 00077 00079 00080 void ClearOutputExtents(); 00081 void SetOutputExtents(const vtkArrayExtents& extents); 00083 00084 //BTX 00085 protected: 00086 vtkTableToSparseArray(); 00087 ~vtkTableToSparseArray(); 00088 00089 int FillInputPortInformation(int, vtkInformation*); 00090 00091 int RequestData( 00092 vtkInformation*, 00093 vtkInformationVector**, 00094 vtkInformationVector*); 00095 00096 private: 00097 vtkTableToSparseArray(const vtkTableToSparseArray&); // Not implemented 00098 void operator=(const vtkTableToSparseArray&); // Not implemented 00099 00100 class implementation; 00101 implementation* const Implementation; 00102 //ETX 00103 }; 00104 00105 #endif 00106