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 
43 #ifndef vtkTreeBFSIterator_h
44 #define vtkTreeBFSIterator_h
45 
46 #include "vtkCommonDataModelModule.h" // For export macro
47 #include "vtkTreeIterator.h"
48 
49 class vtkTreeBFSIteratorInternals;
50 class vtkIntArray;
51 
52 class VTKCOMMONDATAMODEL_EXPORT vtkTreeBFSIterator : public vtkTreeIterator
53 {
54 public:
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
59 protected:
61  ~vtkTreeBFSIterator() override;
62 
63  void Initialize() override;
64  vtkIdType NextInternal() override;
65 
66  vtkTreeBFSIteratorInternals* Internals;
68 
69  enum ColorType
70  {
73  BLACK
74  };
75 
76 private:
77  vtkTreeBFSIterator(const vtkTreeBFSIterator&) = delete;
78  void operator=(const vtkTreeBFSIterator&) = delete;
79 };
80 
81 #endif
a simple class to control print indentation
Definition: vtkIndent.h:49
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:55
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