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 "vtkCommonDataModelModule.h" // For export macro 00051 #include "vtkGraph.h" 00052 00053 class VTKCOMMONDATAMODEL_EXPORT vtkUndirectedGraph : public vtkGraph 00054 { 00055 public: 00056 static vtkUndirectedGraph *New(); 00057 vtkTypeMacro(vtkUndirectedGraph, vtkGraph); 00058 void PrintSelf(ostream& os, vtkIndent indent); 00059 00061 virtual int GetDataObjectType() {return VTK_UNDIRECTED_GRAPH;} 00062 00064 virtual vtkIdType GetInDegree(vtkIdType v); 00065 00066 //BTX 00068 00070 virtual vtkInEdgeType GetInEdge(vtkIdType v, vtkIdType i); 00071 //ETX 00073 00075 00079 virtual void GetInEdge(vtkIdType v, vtkIdType i, vtkGraphEdge* e) 00080 { this->Superclass::GetInEdge(v, i, e); } 00082 00083 //BTX 00085 00086 static vtkUndirectedGraph *GetData(vtkInformation *info); 00087 static vtkUndirectedGraph *GetData(vtkInformationVector *v, int i=0); 00088 //ETX 00090 00092 00094 virtual void GetInEdges(vtkIdType v, vtkInEdgeIterator *it) 00095 { Superclass::GetInEdges(v, it); } 00097 00100 virtual bool IsStructureValid(vtkGraph *g); 00101 00102 protected: 00103 vtkUndirectedGraph(); 00104 ~vtkUndirectedGraph(); 00105 00106 //BTX 00108 00109 virtual void GetInEdges(vtkIdType v, const vtkInEdgeType *& edges, vtkIdType & nedges); 00110 //ETX 00112 00113 private: 00114 vtkUndirectedGraph(const vtkUndirectedGraph&); // Not implemented. 00115 void operator=(const vtkUndirectedGraph&); // Not implemented. 00116 }; 00117 00118 #endif