VTK  9.3.0
vtkTreeDFSIterator.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
25#ifndef vtkTreeDFSIterator_h
26#define vtkTreeDFSIterator_h
27
28#include "vtkCommonDataModelModule.h" // For export macro
29#include "vtkTreeIterator.h"
30
31VTK_ABI_NAMESPACE_BEGIN
32class vtkTreeDFSIteratorInternals;
33class vtkIntArray;
34
35class VTKCOMMONDATAMODEL_EXPORT vtkTreeDFSIterator : public vtkTreeIterator
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43 {
45 FINISH
46 };
47
49
57 void SetMode(int mode);
58 vtkGetMacro(Mode, int);
60
61protected:
64
65 void Initialize() override;
67
68 int Mode;
70 vtkTreeDFSIteratorInternals* Internals;
72
74 {
77 BLACK
78 };
79
80private:
82 void operator=(const vtkTreeDFSIterator&) = delete;
83};
84
85VTK_ABI_NAMESPACE_END
86#endif
a simple class to control print indentation
Definition vtkIndent.h:29
dynamic, self-adjusting array of int
Definition vtkIntArray.h:35
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:315