VTK
vtkEdgeListIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkEdgeListIterator.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 -------------------------------------------------------------------------*/
43 #ifndef vtkEdgeListIterator_h
44 #define vtkEdgeListIterator_h
45 
46 #include "vtkCommonDataModelModule.h" // For export macro
47 #include "vtkObject.h"
48 
49 class vtkGraph;
50 class vtkGraphEdge;
51 //BTX
52 struct vtkEdgeType;
53 struct vtkOutEdgeType;
54 //ETX
56 {
57 public:
58  static vtkEdgeListIterator *New();
60  void PrintSelf(ostream& os, vtkIndent indent);
61 
62  vtkGetObjectMacro(Graph, vtkGraph);
63  virtual void SetGraph(vtkGraph *graph);
64 
65  //BTX
67 
68  vtkEdgeType Next();
69  //ETX
71 
76  vtkGraphEdge *NextGraphEdge();
77 
79  bool HasNext();
80 
81 protected:
84 
85  void Increment();
86 
91  bool Directed;
93 
94 private:
95  vtkEdgeListIterator(const vtkEdgeListIterator&); // Not implemented.
96  void operator=(const vtkEdgeListIterator&); // Not implemented.
97 };
98 
99 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
const vtkOutEdgeType * Current
Iterates through all edges in a graph.
Representation of a single graph edge.
Definition: vtkGraphEdge.h:38
int vtkIdType
Definition: vtkType.h:247
Base class for graph data types.
Definition: vtkGraph.h:288
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkGraphEdge * GraphEdge
const vtkOutEdgeType * End
static vtkObject * New()
#define VTKCOMMONDATAMODEL_EXPORT