VTK
vtkVertexListIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVertexListIterator.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 -------------------------------------------------------------------------*/
36 #ifndef vtkVertexListIterator_h
37 #define vtkVertexListIterator_h
38 
39 #include "vtkCommonDataModelModule.h" // For export macro
40 #include "vtkObject.h"
41 
42 #include "vtkGraph.h" // For edge type definitions
43 
44 class vtkGraphEdge;
45 
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
54  virtual void SetGraph(vtkGraph *graph);
55 
57 
60 
62 
64  {
65  vtkIdType v = this->Current;
66  ++this->Current;
67  return v;
68  }
70 
72 
73  bool HasNext()
74  {
75  return this->Current != this->End;
76  }
78 
79 protected:
82 
86 
87 private:
88  vtkVertexListIterator(const vtkVertexListIterator&); // Not implemented.
89  void operator=(const vtkVertexListIterator&); // Not implemented.
90 };
91 
92 #endif
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkVertexListIterator::Graph
vtkGraph * Graph
Definition: vtkVertexListIterator.h:83
vtkVertexListIterator::Current
vtkIdType Current
Definition: vtkVertexListIterator.h:84
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkCommonDataModelModule.h
vtkVertexListIterator::HasNext
bool HasNext()
Definition: vtkVertexListIterator.h:73
vtkVertexListIterator::Next
vtkIdType Next()
Definition: vtkVertexListIterator.h:63
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkgl::v
const GLdouble * v
Definition: vtkgl.h:11595
vtkVertexListIterator::~vtkVertexListIterator
~vtkVertexListIterator()
vtkVertexListIterator::vtkVertexListIterator
vtkVertexListIterator()
vtkGraphEdge
Representation of a single graph edge.
Definition: vtkGraphEdge.h:39
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkVertexListIterator::New
static vtkVertexListIterator * New()
vtkGraph.h
vtkObject.h
vtkVertexListIterator::End
vtkIdType End
Definition: vtkVertexListIterator.h:85
vtkVertexListIterator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkVertexListIterator
Iterates all vertices in a graph.
Definition: vtkVertexListIterator.h:47
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:289
vtkVertexListIterator::SetGraph
virtual void SetGraph(vtkGraph *graph)