00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkUndirectedGraph.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 -------------------------------------------------------------------------*/ 00044 #ifndef __vtkUndirectedGraph_h 00045 #define __vtkUndirectedGraph_h 00046 00047 #include "vtkGraph.h" 00048 00049 class VTK_FILTERING_EXPORT vtkUndirectedGraph : public vtkGraph 00050 { 00051 public: 00052 static vtkUndirectedGraph *New(); 00053 vtkTypeRevisionMacro(vtkUndirectedGraph, vtkGraph); 00054 void PrintSelf(ostream& os, vtkIndent indent); 00055 00057 virtual int GetDataObjectType() {return VTK_UNDIRECTED_GRAPH;} 00058 00060 virtual vtkIdType GetInDegree(vtkIdType v); 00061 00062 //BTX 00064 00065 static vtkUndirectedGraph *GetData(vtkInformation *info); 00066 static vtkUndirectedGraph *GetData(vtkInformationVector *v, int i=0); 00067 //ETX 00069 00071 00073 virtual void GetInEdges(vtkIdType v, vtkInEdgeIterator *it) 00074 { Superclass::GetInEdges(v, it); } 00076 00077 protected: 00078 vtkUndirectedGraph(); 00079 ~vtkUndirectedGraph(); 00080 00082 virtual bool IsStructureValid(vtkGraph *g); 00083 00084 //BTX 00086 00087 virtual void GetInEdges(vtkIdType v, const vtkInEdgeType *& edges, vtkIdType & nedges); 00088 //ETX 00090 00091 private: 00092 vtkUndirectedGraph(const vtkUndirectedGraph&); // Not implemented. 00093 void operator=(const vtkUndirectedGraph&); // Not implemented. 00094 }; 00095 00096 #endif