VTK  9.1.0
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-------------------------------------------------------------------------*/
38#ifndef vtkTreeDFSIterator_h
39#define vtkTreeDFSIterator_h
40
41#include "vtkCommonDataModelModule.h" // For export macro
42#include "vtkTreeIterator.h"
43
44class vtkTreeDFSIteratorInternals;
45class vtkIntArray;
46
47class VTKCOMMONDATAMODEL_EXPORT vtkTreeDFSIterator : public vtkTreeIterator
48{
49public:
52 void PrintSelf(ostream& os, vtkIndent indent) override;
53
55 {
57 FINISH
58 };
59
61
69 void SetMode(int mode);
70 vtkGetMacro(Mode, int);
72
73protected:
76
77 void Initialize() override;
79
80 int Mode;
82 vtkTreeDFSIteratorInternals* Internals;
84
86 {
89 BLACK
90 };
91
92private:
94 void operator=(const vtkTreeDFSIterator&) = delete;
95};
96
97#endif
a simple class to control print indentation
Definition: vtkIndent.h:34
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:40
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.
vtkTreeDFSIteratorInternals * Internals
void SetMode(int mode)
Set the visit mode of the iterator.
void Initialize() override
static vtkTreeDFSIterator * New()
vtkIdType NextInternal() override
Abstract class for iterator over a vtkTree.
int vtkIdType
Definition: vtkType.h:332