VTK
dox/Infovis/Core/vtkMergeGraphs.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkMergeGraphs.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 -------------------------------------------------------------------------*/
00052 #ifndef __vtkMergeGraphs_h
00053 #define __vtkMergeGraphs_h
00054 
00055 #include "vtkInfovisCoreModule.h" // For export macro
00056 #include "vtkGraphAlgorithm.h"
00057 
00058 class vtkBitArray;
00059 class vtkMutableGraphHelper;
00060 class vtkStringArray;
00061 class vtkTable;
00062 
00063 class VTKINFOVISCORE_EXPORT vtkMergeGraphs : public vtkGraphAlgorithm
00064 {
00065 public:
00066   static vtkMergeGraphs* New();
00067   vtkTypeMacro(vtkMergeGraphs,vtkGraphAlgorithm);
00068   void PrintSelf(ostream& os, vtkIndent indent);
00069 
00072   int ExtendGraph(vtkMutableGraphHelper* g1, vtkGraph* g2);
00073 
00075 
00077   vtkSetMacro(UseEdgeWindow, bool);
00078   vtkGetMacro(UseEdgeWindow, bool);
00079   vtkBooleanMacro(UseEdgeWindow, bool);
00081 
00083 
00084   vtkSetStringMacro(EdgeWindowArrayName);
00085   vtkGetStringMacro(EdgeWindowArrayName);
00087 
00089 
00092   vtkSetMacro(EdgeWindow, double);
00093   vtkGetMacro(EdgeWindow, double);
00095 
00096 protected:
00097   vtkMergeGraphs();
00098   ~vtkMergeGraphs();
00099 
00100   virtual int RequestData(
00101     vtkInformation*,
00102     vtkInformationVector**,
00103     vtkInformationVector*);
00104 
00105   virtual int FillInputPortInformation(int port, vtkInformation *info);
00106 
00107   bool UseEdgeWindow;
00108   char* EdgeWindowArrayName;
00109   double EdgeWindow;
00110 
00111 private:
00112   vtkMergeGraphs(const vtkMergeGraphs&); // Not implemented
00113   void operator=(const vtkMergeGraphs&);   // Not implemented
00114 };
00115 
00116 #endif
00117