VTK  9.2.6
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-------------------------------------------------------------------------*/
41#ifndef vtkTreeDFSIterator_h
42#define vtkTreeDFSIterator_h
43
44#include "vtkCommonDataModelModule.h" // For export macro
45#include "vtkTreeIterator.h"
46
47class vtkTreeDFSIteratorInternals;
48class vtkIntArray;
49
50class VTKCOMMONDATAMODEL_EXPORT vtkTreeDFSIterator : public vtkTreeIterator
51{
52public:
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
58 {
60 FINISH
61 };
62
64
72 void SetMode(int mode);
73 vtkGetMacro(Mode, int);
75
76protected:
79
80 void Initialize() override;
82
83 int Mode;
85 vtkTreeDFSIteratorInternals* Internals;
87
89 {
92 BLACK
93 };
94
95private:
97 void operator=(const vtkTreeDFSIterator&) = delete;
98};
99
100#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:46
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.
int vtkIdType
Definition: vtkType.h:332