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(MaxEdges, vtkIdType);
00077   vtkGetMacro(MaxEdges, vtkIdType);
00079 
00080 protected:
00081   vtkMergeGraphs();
00082   ~vtkMergeGraphs();
00083 
00084   virtual int RequestData(
00085     vtkInformation*, 
00086     vtkInformationVector**, 
00087     vtkInformationVector*);
00088 
00089   virtual int FillInputPortInformation(int port, vtkInformation *info);
00090 
00091   vtkIdType MaxEdges;
00092 
00093 private:
00094   vtkMergeGraphs(const vtkMergeGraphs&); // Not implemented
00095   void operator=(const vtkMergeGraphs&);   // Not implemented
00096 };
00097 
00098 #endif
00099