dox/Filtering/vtkMutableDirectedGraph.h

Go to the documentation of this file.
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 class vtkVariant;
00048 
00049 class VTK_FILTERING_EXPORT vtkMutableDirectedGraph : public vtkDirectedGraph
00050 {
00051 public:
00052   static vtkMutableDirectedGraph *New();
00053   vtkTypeRevisionMacro(vtkMutableDirectedGraph, vtkDirectedGraph);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055 
00064   vtkIdType AddVertex();
00065 
00079   vtkIdType AddVertex(vtkVariantArray *propertyArr);
00080 
00081   //BTX
00083 
00093   vtkIdType AddVertex(const vtkVariant& pedigreeId);
00094   //ETX
00096 
00103   vtkEdgeType AddEdge(vtkIdType u, vtkIdType v);
00104   
00106 
00111   vtkEdgeType AddEdge(vtkIdType u, vtkIdType v, 
00112                       vtkVariantArray *propertyArr);
00114 
00115   //BTX  
00117 
00124   vtkEdgeType AddEdge(const vtkVariant& uPedigreeId, vtkIdType v, 
00125                       vtkVariantArray *propertyArr = 0);
00127 
00129 
00136   vtkEdgeType AddEdge(vtkIdType u, const vtkVariant& vPedigreeId, 
00137                       vtkVariantArray *propertyArr = 0);
00139 
00141 
00148   vtkEdgeType AddEdge(const vtkVariant& uPedigreeId, 
00149                       const vtkVariant& vPedigreeId, 
00150                       vtkVariantArray *propertyArr = 0);
00151   //ETX
00153 
00158   void LazyAddVertex();
00159   
00164   void LazyAddVertex(vtkVariantArray *propertyArr);
00165 
00166   //BTX
00170   void LazyAddVertex(const vtkVariant& pedigreeId);
00171 
00178   void LazyAddEdge(vtkIdType u, vtkIdType v, vtkVariantArray *propertyArr = 0);
00179 
00181 
00189   void LazyAddEdge(const vtkVariant& uPedigreeId, vtkIdType v, 
00190                    vtkVariantArray *propertyArr = 0);
00192 
00194 
00202   void LazyAddEdge(vtkIdType u, const vtkVariant& vPedigreeId, 
00203                    vtkVariantArray *propertyArr = 0);
00205 
00207 
00215   void LazyAddEdge(const vtkVariant& uPedigreeId, 
00216                    const vtkVariant& vPedigreeId, 
00217                    vtkVariantArray *propertyArr = 0);
00218   //ETX
00220 
00224   vtkGraphEdge *AddGraphEdge(vtkIdType u, vtkIdType v);
00225 
00227 
00232   vtkIdType AddChild(vtkIdType parent,
00233                      vtkVariantArray *propertyArr);
00234   vtkIdType AddChild(vtkIdType parent)
00235     { return this->AddChild(parent, 0); }
00237 
00238 protected:
00239   vtkMutableDirectedGraph();
00240   ~vtkMutableDirectedGraph();
00241 
00243   vtkGraphEdge *GraphEdge;
00244 
00245 private:
00246   vtkMutableDirectedGraph(const vtkMutableDirectedGraph&);  // Not implemented.
00247   void operator=(const vtkMutableDirectedGraph&);  // Not implemented.
00248 };
00249 
00250 #endif

Generated on Thu Jan 8 14:38:25 2009 for VTK by  doxygen 1.4.7