VTK
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-------------------------------------------------------------------------*/
41#ifndef vtkTreeDFSIterator_h
42#define vtkTreeDFSIterator_h
43
44#include "vtkCommonDataModelModule.h" // For export macro
45#include "vtkTreeIterator.h"
46
47class vtkTreeDFSIteratorInternals;
48class vtkIntArray;
49
50class VTKCOMMONDATAMODEL_EXPORT vtkTreeDFSIterator : public vtkTreeIterator
51{
52public:
55 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
56
58 {
60 FINISH
61 };
62
64
72 void SetMode(int mode);
73 vtkGetMacro(Mode, int);
75
76protected:
78 ~vtkTreeDFSIterator() VTK_OVERRIDE;
79
80 void Initialize() VTK_OVERRIDE;
81 vtkIdType NextInternal() VTK_OVERRIDE;
82
83 int Mode;
84 vtkIdType CurRoot;
85 vtkTreeDFSIteratorInternals* Internals;
87
89 {
92 BLACK
93 };
94
95private:
96 vtkTreeDFSIterator(const vtkTreeDFSIterator &) VTK_DELETE_FUNCTION;
97 void operator=(const vtkTreeDFSIterator &) VTK_DELETE_FUNCTION;
98};
99
100
101#endif
102
a simple class to control print indentation
Definition: vtkIndent.h:40
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:46
depth first iterator through a vtkGraph
~vtkTreeDFSIterator() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetMode(int mode)
Set the visit mode of the iterator.
static vtkTreeDFSIterator * New()
Abstract class for iterator over a vtkTree.
@ Color
Definition: vtkX3D.h:46
@ mode
Definition: vtkX3D.h:247
int vtkIdType
Definition: vtkType.h:287