VTK
vtkUndirectedGraph.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUndirectedGraph.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
47 #ifndef __vtkUndirectedGraph_h
48 #define __vtkUndirectedGraph_h
49 
50 #include "vtkGraph.h"
51 
53 {
54 public:
55  static vtkUndirectedGraph *New();
56  vtkTypeMacro(vtkUndirectedGraph, vtkGraph);
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
60  virtual int GetDataObjectType() {return VTK_UNDIRECTED_GRAPH;}
61 
63  virtual vtkIdType GetInDegree(vtkIdType v);
64 
65  //BTX
67 
70  //ETX
72 
74 
78  virtual void GetInEdge(vtkIdType v, vtkIdType i, vtkGraphEdge* e)
79  { this->Superclass::GetInEdge(v, i, e); }
81 
82  //BTX
84 
86  static vtkUndirectedGraph *GetData(vtkInformationVector *v, int i=0);
87  //ETX
89 
91 
93  virtual void GetInEdges(vtkIdType v, vtkInEdgeIterator *it)
94  { Superclass::GetInEdges(v, it); }
96 
99  virtual bool IsStructureValid(vtkGraph *g);
100 
101 protected:
104 
105  //BTX
107 
108  virtual void GetInEdges(vtkIdType v, const vtkInEdgeType *& edges, vtkIdType & nedges);
109  //ETX
111 
112 private:
113  vtkUndirectedGraph(const vtkUndirectedGraph&); // Not implemented.
114  void operator=(const vtkUndirectedGraph&); // Not implemented.
115 };
116 
117 #endif