VTK  9.1.0
vtkTreeDFSIterator.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkTreeDFSIterator.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/*-------------------------------------------------------------------------
16 Copyright 2008 Sandia Corporation.
17 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18 the U.S. Government retains certain rights in this software.
19-------------------------------------------------------------------------*/
47#ifndef vtkTreeDFSIterator_h
48#define vtkTreeDFSIterator_h
49
50#include "vtkCommonDataModelModule.h" // For export macro
51#include "vtkTreeIterator.h"
52
53class vtkTreeDFSIteratorInternals;
54class vtkIntArray;
55
56class VTKCOMMONDATAMODEL_EXPORT vtkTreeDFSIterator : public vtkTreeIterator
57{
58public:
61 void PrintSelf(ostream& os, vtkIndent indent) override;
62
64 {
66 FINISH
67 };
68
70
78 void SetMode(int mode);
79 vtkGetMacro(Mode, int);
81
82protected:
85
86 void Initialize() override;
88
89 int Mode;
91 vtkTreeDFSIteratorInternals* Internals;
93
95 {
98 BLACK
99 };
100
101private:
102 vtkTreeDFSIterator(const vtkTreeDFSIterator&) = delete;
103 void operator=(const vtkTreeDFSIterator&) = delete;
104};
105
106#endif
a simple class to control print indentation
Definition: vtkIndent.h:43
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:49
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.
@ mode
Definition: vtkX3D.h:253
int vtkIdType
Definition: vtkType.h:332