00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkMutableDirectedGraph.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 -------------------------------------------------------------------------*/ 00040 #ifndef __vtkMutableDirectedGraph_h 00041 #define __vtkMutableDirectedGraph_h 00042 00043 #include "vtkDirectedGraph.h" 00044 00045 class vtkEdgeListIterator; 00046 class vtkGraphEdge; 00047 00048 class VTK_FILTERING_EXPORT vtkMutableDirectedGraph : public vtkDirectedGraph 00049 { 00050 public: 00051 static vtkMutableDirectedGraph *New(); 00052 vtkTypeRevisionMacro(vtkMutableDirectedGraph, vtkDirectedGraph); 00053 void PrintSelf(ostream& os, vtkIndent indent); 00054 00056 vtkIdType AddVertex(); 00057 00058 //BTX 00060 00062 vtkEdgeType AddEdge(vtkIdType u, vtkIdType v); 00063 //ETX 00065 00069 vtkGraphEdge *AddGraphEdge(vtkIdType u, vtkIdType v); 00070 00074 vtkIdType AddChild(vtkIdType parent); 00075 00076 protected: 00077 vtkMutableDirectedGraph(); 00078 ~vtkMutableDirectedGraph(); 00079 00081 vtkGraphEdge *GraphEdge; 00082 00083 private: 00084 vtkMutableDirectedGraph(const vtkMutableDirectedGraph&); // Not implemented. 00085 void operator=(const vtkMutableDirectedGraph&); // Not implemented. 00086 }; 00087 00088 #endif