VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
DataModel
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
-------------------------------------------------------------------------*/
40
#ifndef __vtkTreeDFSIterator_h
41
#define __vtkTreeDFSIterator_h
42
43
#include "vtkCommonDataModelModule.h"
// For export macro
44
#include "
vtkTreeIterator.h
"
45
46
class
vtkTreeDFSIteratorInternals;
47
class
vtkIntArray
;
48
49
class
VTKCOMMONDATAMODEL_EXPORT
vtkTreeDFSIterator
:
public
vtkTreeIterator
50
{
51
public
:
52
static
vtkTreeDFSIterator
*
New
();
53
vtkTypeMacro(
vtkTreeDFSIterator
,
vtkTreeIterator
);
54
virtual
void
PrintSelf
(ostream& os,
vtkIndent
indent);
55
56
//BTX
57
enum
ModeType
58
{
59
DISCOVER
,
60
FINISH
61
};
62
//ETX
63
65
70
void
SetMode(
int
mode
);
71
vtkGetMacro(Mode,
int
);
73
74
protected
:
75
vtkTreeDFSIterator
();
76
~
vtkTreeDFSIterator
();
77
78
virtual
void
Initialize
();
79
virtual
vtkIdType
NextInternal
();
80
81
int
Mode
;
82
vtkIdType
CurRoot
;
83
vtkTreeDFSIteratorInternals*
Internals
;
84
vtkIntArray
*
Color
;
85
86
//BTX
87
enum
ColorType
88
{
89
WHITE
,
90
GRAY
,
91
BLACK
92
};
93
//ETX
94
95
private
:
96
vtkTreeDFSIterator
(
const
vtkTreeDFSIterator
&);
// Not implemented.
97
void
operator=(
const
vtkTreeDFSIterator
&);
// Not implemented.
98
};
99
100
101
#endif
102
Generated on Thu May 24 2012 22:22:12 for VTK by
1.8.1