VTK
|
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 "vtkInfovisCoreModule.h" // For export macro 00045 #include "vtkTableAlgorithm.h" 00046 00047 class VTKINFOVISCORE_EXPORT vtkMergeTables : public vtkTableAlgorithm 00048 { 00049 public: 00050 static vtkMergeTables* New(); 00051 vtkTypeMacro(vtkMergeTables,vtkTableAlgorithm); 00052 void PrintSelf(ostream& os, vtkIndent indent); 00053 00055 00057 vtkSetStringMacro(FirstTablePrefix); 00058 vtkGetStringMacro(FirstTablePrefix); 00060 00062 00064 vtkSetStringMacro(SecondTablePrefix); 00065 vtkGetStringMacro(SecondTablePrefix); 00067 00069 00072 vtkSetMacro(MergeColumnsByName, bool); 00073 vtkGetMacro(MergeColumnsByName, bool); 00074 vtkBooleanMacro(MergeColumnsByName, bool); 00076 00078 00081 vtkSetMacro(PrefixAllButMerged, bool); 00082 vtkGetMacro(PrefixAllButMerged, bool); 00083 vtkBooleanMacro(PrefixAllButMerged, bool); 00085 00086 protected: 00087 vtkMergeTables(); 00088 ~vtkMergeTables(); 00089 00090 bool MergeColumnsByName; 00091 bool PrefixAllButMerged; 00092 char* FirstTablePrefix; 00093 char* SecondTablePrefix; 00094 00095 int RequestData( 00096 vtkInformation*, 00097 vtkInformationVector**, 00098 vtkInformationVector*); 00099 00100 private: 00101 vtkMergeTables(const vtkMergeTables&); // Not implemented 00102 void operator=(const vtkMergeTables&); // Not implemented 00103 }; 00104 00105 #endif 00106