VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
DataModel
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 "vtkCommonDataModelModule.h"
// For export macro
44
#include "
vtkObject.h
"
45
46
#include "
vtkGraph.h
"
// For edge type definitions
47
48
class
vtkGraphEdge
;
49
50
class
VTKCOMMONDATAMODEL_EXPORT
vtkOutEdgeIterator
:
public
vtkObject
51
{
52
public
:
53
static
vtkOutEdgeIterator
*
New
();
54
vtkTypeMacro(
vtkOutEdgeIterator
,
vtkObject
);
55
void
PrintSelf
(ostream& os,
vtkIndent
indent);
56
58
void
Initialize(
vtkGraph
*g,
vtkIdType
v);
59
61
62
vtkGetObjectMacro(Graph,
vtkGraph
);
63
vtkGetMacro(Vertex,
vtkIdType
);
65
66
//BTX
68
69
inline
vtkOutEdgeType
Next()
70
{
71
vtkOutEdgeType
e = *this->Current;
72
++this->Current;
73
return
e;
74
}
75
//ETX
77
82
vtkGraphEdge
*NextGraphEdge();
83
85
86
bool
HasNext()
87
{
88
return
this->Current != this->End;
89
}
91
92
protected
:
93
vtkOutEdgeIterator
();
94
~
vtkOutEdgeIterator
();
95
97
virtual
void
SetGraph(
vtkGraph
*graph);
98
99
vtkGraph
*
Graph
;
100
const
vtkOutEdgeType
*
Current
;
101
const
vtkOutEdgeType
*
End
;
102
vtkIdType
Vertex
;
103
vtkGraphEdge
*
GraphEdge
;
104
105
private
:
106
vtkOutEdgeIterator
(
const
vtkOutEdgeIterator
&);
// Not implemented.
107
void
operator=(
const
vtkOutEdgeIterator
&);
// Not implemented.
108
};
109
110
#endif
Generated on Thu May 24 2012 22:22:10 for VTK by
1.8.1