00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkStreamGraph.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 -------------------------------------------------------------------------*/ 00038 #ifndef __vtkStreamGraph_h 00039 #define __vtkStreamGraph_h 00040 00041 #include "vtkGraphAlgorithm.h" 00042 00043 class vtkBitArray; 00044 class vtkMergeGraphs; 00045 class vtkMutableDirectedGraph; 00046 class vtkMutableGraphHelper; 00047 class vtkStringArray; 00048 class vtkTable; 00049 00050 class VTK_INFOVIS_EXPORT vtkStreamGraph : public vtkGraphAlgorithm 00051 { 00052 public: 00053 static vtkStreamGraph* New(); 00054 vtkTypeMacro(vtkStreamGraph,vtkGraphAlgorithm); 00055 void PrintSelf(ostream& os, vtkIndent indent); 00056 00058 00060 vtkSetMacro(MaxEdges, vtkIdType); 00061 vtkGetMacro(MaxEdges, vtkIdType); 00063 00064 protected: 00065 vtkStreamGraph(); 00066 ~vtkStreamGraph(); 00067 00068 virtual int RequestData( 00069 vtkInformation*, 00070 vtkInformationVector**, 00071 vtkInformationVector*); 00072 00073 vtkMutableGraphHelper* CurrentGraph; 00074 vtkMergeGraphs* MergeGraphs; 00075 vtkIdType MaxEdges; 00076 00077 private: 00078 vtkStreamGraph(const vtkStreamGraph&); // Not implemented 00079 void operator=(const vtkStreamGraph&); // Not implemented 00080 }; 00081 00082 #endif 00083