VTK
dox/Infovis/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 "vtkGraphAlgorithm.h"
00056 
00057 class vtkBitArray;
00058 class vtkMutableGraphHelper;
00059 class vtkStringArray;
00060 class vtkTable;
00061 
00062 class VTK_INFOVIS_EXPORT vtkMergeGraphs : public vtkGraphAlgorithm
00063 {
00064 public:
00065   static vtkMergeGraphs* New();
00066   vtkTypeMacro(vtkMergeGraphs,vtkGraphAlgorithm);
00067   void PrintSelf(ostream& os, vtkIndent indent);
00068 
00071   int ExtendGraph(vtkMutableGraphHelper* g1, vtkGraph* g2);
00072 
00074 
00076   vtkSetMacro(UseEdgeWindow, bool);
00077   vtkGetMacro(UseEdgeWindow, bool);
00078   vtkBooleanMacro(UseEdgeWindow, bool);
00080 
00082 
00083   vtkSetStringMacro(EdgeWindowArrayName);
00084   vtkGetStringMacro(EdgeWindowArrayName);
00086 
00088 
00091   vtkSetMacro(EdgeWindow, double);
00092   vtkGetMacro(EdgeWindow, double);
00094 
00095 protected:
00096   vtkMergeGraphs();
00097   ~vtkMergeGraphs();
00098 
00099   virtual int RequestData(
00100     vtkInformation*, 
00101     vtkInformationVector**, 
00102     vtkInformationVector*);
00103 
00104   virtual int FillInputPortInformation(int port, vtkInformation *info);
00105 
00106   bool UseEdgeWindow;
00107   char* EdgeWindowArrayName;
00108   double EdgeWindow;
00109 
00110 private:
00111   vtkMergeGraphs(const vtkMergeGraphs&); // Not implemented
00112   void operator=(const vtkMergeGraphs&);   // Not implemented
00113 };
00114 
00115 #endif
00116