VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkOutEdgeIterator.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkOutEdgeIterator.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
-------------------------------------------------------------------------*/
40
#ifndef __vtkOutEdgeIterator_h
41
#define __vtkOutEdgeIterator_h
42
43
#include "
vtkObject.h
"
44
45
#include "
vtkGraph.h
"
// For edge type definitions
46
47
class
vtkGraphEdge
;
48
49
class
VTK_FILTERING_EXPORT
vtkOutEdgeIterator
:
public
vtkObject
50
{
51
public
:
52
static
vtkOutEdgeIterator
*
New
();
53
vtkTypeMacro(
vtkOutEdgeIterator
,
vtkObject
);
54
void
PrintSelf
(ostream& os,
vtkIndent
indent);
55
57
void
Initialize(
vtkGraph
*g,
vtkIdType
v);
58
60
61
vtkGetObjectMacro(Graph,
vtkGraph
);
62
vtkGetMacro(Vertex,
vtkIdType
);
64
65
//BTX
67
68
inline
vtkOutEdgeType
Next()
69
{
70
vtkOutEdgeType
e = *this->Current;
71
++this->Current;
72
return
e;
73
}
74
//ETX
76
81
vtkGraphEdge
*NextGraphEdge();
82
84
85
bool
HasNext()
86
{
87
return
this->Current != this->End;
88
}
90
91
protected
:
92
vtkOutEdgeIterator
();
93
~
vtkOutEdgeIterator
();
94
96
virtual
void
SetGraph(
vtkGraph
*graph);
97
98
vtkGraph
*
Graph
;
99
const
vtkOutEdgeType
*
Current
;
100
const
vtkOutEdgeType
*
End
;
101
vtkIdType
Vertex
;
102
vtkGraphEdge
*
GraphEdge
;
103
104
private
:
105
vtkOutEdgeIterator
(
const
vtkOutEdgeIterator
&);
// Not implemented.
106
void
operator=(
const
vtkOutEdgeIterator
&);
// Not implemented.
107
};
108
109
#endif
Generated on Sun Sep 9 2012 13:03:28 for VTK by
1.8.1.2