VTK  9.2.6
vtkTreeBFSIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTreeBFSIterator.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 
53 #ifndef vtkTreeBFSIterator_h
54 #define vtkTreeBFSIterator_h
55 
56 #include "vtkCommonDataModelModule.h" // For export macro
57 #include "vtkTreeIterator.h"
58 
59 class vtkTreeBFSIteratorInternals;
60 class vtkIntArray;
61 
62 class VTKCOMMONDATAMODEL_EXPORT vtkTreeBFSIterator : public vtkTreeIterator
63 {
64 public:
67  void PrintSelf(ostream& os, vtkIndent indent) override;
68 
69 protected:
71  ~vtkTreeBFSIterator() override;
72 
73  void Initialize() override;
74  vtkIdType NextInternal() override;
75 
76  vtkTreeBFSIteratorInternals* Internals;
78 
79  enum ColorType
80  {
83  BLACK
84  };
85 
86 private:
87  vtkTreeBFSIterator(const vtkTreeBFSIterator&) = delete;
88  void operator=(const vtkTreeBFSIterator&) = delete;
89 };
90 
91 #endif
a simple class to control print indentation
Definition: vtkIndent.h:119
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:155
breadth first search iterator through a vtkTree
static vtkTreeBFSIterator * New()
void Initialize() override
vtkTreeBFSIteratorInternals * Internals
~vtkTreeBFSIterator() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType NextInternal() override
Abstract class for iterator over a vtkTree.
int vtkIdType
Definition: vtkType.h:332