VTK: Common/DataModel/vtkTreeBFSIterator.h Source File

| VTK 9.3.1

vtkTreeBFSIterator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3
31 #ifndef vtkTreeBFSIterator_h
32 #define vtkTreeBFSIterator_h
33
34 #include "vtkCommonDataModelModule.h" // For export macro
35 #include "vtkTreeIterator.h"
36
37 VTK_ABI_NAMESPACE_BEGIN
38 class vtkTreeBFSIteratorInternals;
39 class vtkIntArray;
40
41 class VTKCOMMONDATAMODEL_EXPORT vtkTreeBFSIterator : public vtkTreeIterator
42 {
43 public:
44 static vtkTreeBFSIterator* New();
45 vtkTypeMacro(vtkTreeBFSIterator, vtkTreeIterator);
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
48 protected:
49 vtkTreeBFSIterator();
50 ~vtkTreeBFSIterator() override;
51
52 void Initialize() override;
53 vtkIdType NextInternal() override;
54
55 vtkTreeBFSIteratorInternals* Internals;
56 vtkIntArray* Color;
57
58 enum ColorType
59 {
60 WHITE,
61 GRAY,
62 BLACK
63 };
64
65 private:
66 vtkTreeBFSIterator(const vtkTreeBFSIterator&) = delete;
67 void operator=(const vtkTreeBFSIterator&) = delete;
68 };
69
70 VTK_ABI_NAMESPACE_END
71 #endif
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkIntArray
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:44
vtkTreeBFSIterator
breadth first search iterator through a vtkTree
Definition: vtkTreeBFSIterator.h:42
vtkTreeBFSIterator::New
static vtkTreeBFSIterator * New()
vtkTreeBFSIterator::Color
vtkIntArray * Color
Definition: vtkTreeBFSIterator.h:56
vtkTreeBFSIterator::Initialize
void Initialize() override
vtkTreeBFSIterator::Internals
vtkTreeBFSIteratorInternals * Internals
Definition: vtkTreeBFSIterator.h:55
vtkTreeBFSIterator::ColorType
ColorType
Definition: vtkTreeBFSIterator.h:59
vtkTreeBFSIterator::GRAY
@ GRAY
Definition: vtkTreeBFSIterator.h:61
vtkTreeBFSIterator::WHITE
@ WHITE
Definition: vtkTreeBFSIterator.h:60
vtkTreeBFSIterator::~vtkTreeBFSIterator
~vtkTreeBFSIterator() override
vtkTreeBFSIterator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTreeBFSIterator::vtkTreeBFSIterator
vtkTreeBFSIterator()
vtkTreeBFSIterator::NextInternal
vtkIdType NextInternal() override
vtkTreeIterator
Abstract class for iterator over a vtkTree.
Definition: vtkTreeIterator.h:29
vtkTreeIterator.h
vtkIdType
int vtkIdType
Definition: vtkType.h:315