VTK
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 
34 #ifndef vtkTreeBFSIterator_h
35 #define vtkTreeBFSIterator_h
36 
37 #include "vtkCommonDataModelModule.h" // For export macro
38 #include "vtkTreeIterator.h"
39 
40 class vtkTreeBFSIteratorInternals;
41 class vtkIntArray;
42 
43 class VTKCOMMONDATAMODEL_EXPORT vtkTreeBFSIterator : public vtkTreeIterator
44 {
45 public:
46  static vtkTreeBFSIterator* New();
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
50 protected:
52  ~vtkTreeBFSIterator() override;
53 
54  void Initialize() override;
55  vtkIdType NextInternal() override;
56 
57  vtkTreeBFSIteratorInternals* Internals;
59 
60  enum ColorType
61  {
64  BLACK
65  };
66 
67 private:
68  vtkTreeBFSIterator(const vtkTreeBFSIterator &) = delete;
69  void operator=(const vtkTreeBFSIterator &) = delete;
70 };
71 
72 #endif
vtkTreeBFSIteratorInternals * Internals
Abstract class for iterator over a vtkTree.
virtual vtkIdType NextInternal()=0
int vtkIdType
Definition: vtkType.h:347
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:45
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
breadth first search iterator through a vtkTree
virtual void Initialize()=0
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...