VTK
dox/Infovis/vtkTableToSparseArray.h
Go to the documentation of this file.
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 "vtkArrayDataAlgorithm.h"
00055 
00056 class VTK_INFOVIS_EXPORT vtkTableToSparseArray : public vtkArrayDataAlgorithm
00057 {
00058 public:
00059   static vtkTableToSparseArray* New();
00060   vtkTypeMacro(vtkTableToSparseArray, vtkArrayDataAlgorithm);
00061   void PrintSelf(ostream& os, vtkIndent indent);
00062 
00064 
00066   void ClearCoordinateColumns();
00067   void AddCoordinateColumn(const char* name);
00069 
00071 
00073   void SetValueColumn(const char* name);
00074   const char* GetValueColumn();
00076 
00078 
00079   void ClearOutputExtents();
00080   void SetOutputExtents(const vtkArrayExtents& extents);
00082 
00083 //BTX
00084 protected:
00085   vtkTableToSparseArray();
00086   ~vtkTableToSparseArray();
00087 
00088   int FillInputPortInformation(int, vtkInformation*);
00089 
00090   int RequestData(
00091     vtkInformation*,
00092     vtkInformationVector**,
00093     vtkInformationVector*);
00094 
00095 private:
00096   vtkTableToSparseArray(const vtkTableToSparseArray&); // Not implemented
00097   void operator=(const vtkTableToSparseArray&);   // Not implemented
00098 
00099   class implementation;
00100   implementation* const Implementation;
00101 //ETX
00102 };
00103 
00104 #endif
00105