VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
DataModel
vtkTreeIterator.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: $RCSfile: vtkTreeIterator.h,v $
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
30
#ifndef __vtkTreeIterator_h
31
#define __vtkTreeIterator_h
32
33
#include "vtkCommonDataModelModule.h"
// For export macro
34
#include "
vtkObject.h
"
35
36
class
vtkTree
;
37
38
class
VTKCOMMONDATAMODEL_EXPORT
vtkTreeIterator
:
public
vtkObject
39
{
40
public
:
41
vtkTypeMacro(
vtkTreeIterator
,
vtkObject
);
42
virtual
void
PrintSelf
(ostream& os,
vtkIndent
indent);
43
45
46
void
SetTree(
vtkTree
* graph);
47
vtkGetMacro(Tree,
vtkTree
*);
49
51
54
void
SetStartVertex(
vtkIdType
vertex);
55
vtkGetMacro(StartVertex,
vtkIdType
);
57
59
vtkIdType
Next();
60
62
bool
HasNext();
63
65
void
Restart();
66
67
protected
:
68
vtkTreeIterator
();
69
~
vtkTreeIterator
();
70
71
virtual
void
Initialize() = 0;
72
virtual
vtkIdType
NextInternal() = 0;
73
74
vtkTree
*
Tree
;
75
vtkIdType
StartVertex
;
76
vtkIdType
NextId
;
77
78
private
:
79
vtkTreeIterator
(
const
vtkTreeIterator
&);
// Not implemented.
80
void
operator=(
const
vtkTreeIterator
&);
// Not implemented.
81
};
82
83
#endif
Generated on Thu May 24 2012 22:22:12 for VTK by
1.8.1