00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkMergeGraphs.h,v $ 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 -------------------------------------------------------------------------*/ 00049 #ifndef __vtkMergeGraphs_h 00050 #define __vtkMergeGraphs_h 00051 00052 #include "vtkGraphAlgorithm.h" 00053 00054 class vtkBitArray; 00055 class vtkMutableGraphHelper; 00056 class vtkStringArray; 00057 class vtkTable; 00058 00059 class VTK_INFOVIS_EXPORT vtkMergeGraphs : public vtkGraphAlgorithm 00060 { 00061 public: 00062 static vtkMergeGraphs* New(); 00063 vtkTypeRevisionMacro(vtkMergeGraphs,vtkGraphAlgorithm); 00064 void PrintSelf(ostream& os, vtkIndent indent); 00065 00068 int ExtendGraph(vtkMutableGraphHelper* g1, vtkGraph* g2); 00069 00071 00073 vtkSetMacro(MaxEdges, vtkIdType); 00074 vtkGetMacro(MaxEdges, vtkIdType); 00076 00077 protected: 00078 vtkMergeGraphs(); 00079 ~vtkMergeGraphs(); 00080 00081 virtual int RequestData( 00082 vtkInformation*, 00083 vtkInformationVector**, 00084 vtkInformationVector*); 00085 00086 virtual int FillInputPortInformation(int port, vtkInformation *info); 00087 00088 vtkIdType MaxEdges; 00089 00090 private: 00091 vtkMergeGraphs(const vtkMergeGraphs&); // Not implemented 00092 void operator=(const vtkMergeGraphs&); // Not implemented 00093 }; 00094 00095 #endif 00096