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:
60  void PrintSelf(ostream& os, vtkIndent indent);
61 
63  virtual void SetGraph(vtkGraph *graph);
64 
65  //BTX
67 
69  //ETX
71 
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
vtkEdgeListIterator::Next
vtkEdgeType Next()
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkCommonDataModelModule.h
vtkEdgeListIterator::SetGraph
virtual void SetGraph(vtkGraph *graph)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkEdgeListIterator::NextGraphEdge
vtkGraphEdge * NextGraphEdge()
vtkEdgeListIterator::~vtkEdgeListIterator
~vtkEdgeListIterator()
vtkEdgeListIterator::Directed
bool Directed
Definition: vtkEdgeListIterator.h:91
vtkEdgeListIterator::Vertex
vtkIdType Vertex
Definition: vtkEdgeListIterator.h:90
vtkEdgeListIterator::GraphEdge
vtkGraphEdge * GraphEdge
Definition: vtkEdgeListIterator.h:92
vtkEdgeListIterator::HasNext
bool HasNext()
vtkEdgeType
Definition: vtkGraph.h:277
vtkEdgeListIterator::End
const vtkOutEdgeType * End
Definition: vtkEdgeListIterator.h:89
vtkGraphEdge
Representation of a single graph edge.
Definition: vtkGraphEdge.h:39
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkEdgeListIterator
Iterates through all edges in a graph.
Definition: vtkEdgeListIterator.h:56
vtkEdgeListIterator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkObject.h
vtkOutEdgeType
Definition: vtkGraph.h:259
vtkEdgeListIterator::vtkEdgeListIterator
vtkEdgeListIterator()
vtkEdgeListIterator::New
static vtkEdgeListIterator * New()
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkEdgeListIterator::Current
const vtkOutEdgeType * Current
Definition: vtkEdgeListIterator.h:88
vtkEdgeListIterator::Increment
void Increment()
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:289
vtkEdgeListIterator::Graph
vtkGraph * Graph
Definition: vtkEdgeListIterator.h:87