VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkUndirectedGraph.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 -------------------------------------------------------------------------*/ 00047 #ifndef __vtkUndirectedGraph_h 00048 #define __vtkUndirectedGraph_h 00049 00050 #include "vtkGraph.h" 00051 00052 class VTK_FILTERING_EXPORT vtkUndirectedGraph : public vtkGraph 00053 { 00054 public: 00055 static vtkUndirectedGraph *New(); 00056 vtkTypeMacro(vtkUndirectedGraph, vtkGraph); 00057 void PrintSelf(ostream& os, vtkIndent indent); 00058 00060 virtual int GetDataObjectType() {return VTK_UNDIRECTED_GRAPH;} 00061 00063 virtual vtkIdType GetInDegree(vtkIdType v); 00064 00065 //BTX 00067 00069 virtual vtkInEdgeType GetInEdge(vtkIdType v, vtkIdType i); 00070 //ETX 00072 00074 00078 virtual void GetInEdge(vtkIdType v, vtkIdType i, vtkGraphEdge* e) 00079 { this->Superclass::GetInEdge(v, i, e); } 00081 00082 //BTX 00084 00085 static vtkUndirectedGraph *GetData(vtkInformation *info); 00086 static vtkUndirectedGraph *GetData(vtkInformationVector *v, int i=0); 00087 //ETX 00089 00091 00093 virtual void GetInEdges(vtkIdType v, vtkInEdgeIterator *it) 00094 { Superclass::GetInEdges(v, it); } 00096 00099 virtual bool IsStructureValid(vtkGraph *g); 00100 00101 protected: 00102 vtkUndirectedGraph(); 00103 ~vtkUndirectedGraph(); 00104 00105 //BTX 00107 00108 virtual void GetInEdges(vtkIdType v, const vtkInEdgeType *& edges, vtkIdType & nedges); 00109 //ETX 00111 00112 private: 00113 vtkUndirectedGraph(const vtkUndirectedGraph&); // Not implemented. 00114 void operator=(const vtkUndirectedGraph&); // Not implemented. 00115 }; 00116 00117 #endif