VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkTreeDFSIterator.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkTreeDFSIterator.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 __vtkTreeDFSIterator_h
37
#define __vtkTreeDFSIterator_h
38
39
#include "
vtkObject.h
"
40
41
class
vtkTree
;
42
class
vtkTreeDFSIteratorInternals;
43
class
vtkIntArray
;
44
class
vtkIdList
;
45
46
class
VTK_FILTERING_EXPORT
vtkTreeDFSIterator
:
public
vtkObject
47
{
48
public
:
49
static
vtkTreeDFSIterator
*
New
();
50
vtkTypeMacro(
vtkTreeDFSIterator
,
vtkObject
);
51
void
PrintSelf
(ostream& os,
vtkIndent
indent);
52
53
//BTX
54
enum
ModeType
55
{
56
DISCOVER
,
57
FINISH
58
};
59
//ETX
60
62
void
SetTree(
vtkTree
* graph);
63
65
70
void
SetMode(
int
mode
);
71
vtkGetMacro(Mode,
int
);
73
75
78
void
SetStartVertex(
vtkIdType
vertex);
79
vtkGetMacro(StartVertex,
vtkIdType
);
81
83
vtkIdType
Next();
84
86
bool
HasNext();
87
88
protected
:
89
vtkTreeDFSIterator
();
90
~
vtkTreeDFSIterator
();
91
92
void
Initialize();
93
vtkIdType
NextInternal();
94
95
vtkTree
*
Tree
;
96
int
Mode
;
97
vtkIdType
StartVertex
;
98
vtkIdType
CurRoot
;
99
vtkTreeDFSIteratorInternals*
Internals
;
100
vtkIntArray
*
Color
;
101
vtkIdType
NextId
;
102
103
//BTX
104
enum
ColorType
105
{
106
WHITE
,
107
GRAY
,
108
BLACK
109
};
110
//ETX
111
112
private
:
113
vtkTreeDFSIterator
(
const
vtkTreeDFSIterator
&);
// Not implemented.
114
void
operator=(
const
vtkTreeDFSIterator
&);
// Not implemented.
115
};
116
117
118
#endif
119
Generated on Sun Sep 9 2012 13:03:29 for VTK by
1.8.1.2