VTK
dox/Infovis/vtkMergeTables.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkMergeTables.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 -------------------------------------------------------------------------*/
00041 #ifndef __vtkMergeTables_h
00042 #define __vtkMergeTables_h
00043 
00044 #include "vtkTableAlgorithm.h"
00045 
00046 class VTK_INFOVIS_EXPORT vtkMergeTables : public vtkTableAlgorithm
00047 {
00048 public:
00049   static vtkMergeTables* New();
00050   vtkTypeMacro(vtkMergeTables,vtkTableAlgorithm);
00051   void PrintSelf(ostream& os, vtkIndent indent);
00052   
00054 
00056   vtkSetStringMacro(FirstTablePrefix);
00057   vtkGetStringMacro(FirstTablePrefix);
00059   
00061 
00063   vtkSetStringMacro(SecondTablePrefix);
00064   vtkGetStringMacro(SecondTablePrefix);
00066   
00068 
00071   vtkSetMacro(MergeColumnsByName, bool);
00072   vtkGetMacro(MergeColumnsByName, bool);
00073   vtkBooleanMacro(MergeColumnsByName, bool);
00075 
00077 
00080   vtkSetMacro(PrefixAllButMerged, bool);
00081   vtkGetMacro(PrefixAllButMerged, bool);
00082   vtkBooleanMacro(PrefixAllButMerged, bool);
00084 
00085 protected:
00086   vtkMergeTables();
00087   ~vtkMergeTables();
00088   
00089   bool MergeColumnsByName;
00090   bool PrefixAllButMerged;
00091   char* FirstTablePrefix;
00092   char* SecondTablePrefix;
00093 
00094   int RequestData(
00095     vtkInformation*, 
00096     vtkInformationVector**, 
00097     vtkInformationVector*);
00098 
00099 private:
00100   vtkMergeTables(const vtkMergeTables&); // Not implemented
00101   void operator=(const vtkMergeTables&);   // Not implemented
00102 };
00103 
00104 #endif
00105