VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
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 "
vtkObject.h
"
40
41
#include "
vtkGraph.h
"
// For edge type definitions
42
43
class
vtkGraphEdge
;
44
45
class
VTK_FILTERING_EXPORT
vtkVertexListIterator
:
public
vtkObject
46
{
47
public
:
48
static
vtkVertexListIterator
*
New
();
49
vtkTypeMacro(
vtkVertexListIterator
,
vtkObject
);
50
void
PrintSelf
(ostream& os,
vtkIndent
indent);
51
53
virtual
void
SetGraph(
vtkGraph
*graph);
54
56
57
vtkGetObjectMacro(Graph,
vtkGraph
);
59
61
62
vtkIdType
Next()
63
{
64
vtkIdType
v = this->Current;
65
++this->Current;
66
return
v;
67
}
69
71
72
bool
HasNext()
73
{
74
return
this->Current != this->End;
75
}
77
78
protected
:
79
vtkVertexListIterator
();
80
~
vtkVertexListIterator
();
81
82
vtkGraph
*
Graph
;
83
vtkIdType
Current
;
84
vtkIdType
End
;
85
86
private
:
87
vtkVertexListIterator
(
const
vtkVertexListIterator
&);
// Not implemented.
88
void
operator=(
const
vtkVertexListIterator
&);
// Not implemented.
89
};
90
91
#endif
Generated on Wed May 30 2012 13:21:57 for VTK by
1.8.1