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-------------------------------------------------------------------------*/
70#ifndef vtkTreeDFSIterator_h
71#define vtkTreeDFSIterator_h
72
73#include "vtkCommonDataModelModule.h" // For export macro
74#include "vtkTreeIterator.h"
75
76class vtkTreeDFSIteratorInternals;
77class vtkIntArray;
78
79class VTKCOMMONDATAMODEL_EXPORT vtkTreeDFSIterator : public vtkTreeIterator
80{
81public:
84 void PrintSelf(ostream& os, vtkIndent indent) override;
85
87 {
89 FINISH
90 };
91
93
101 void SetMode(int mode);
102 vtkGetMacro(Mode, int);
104
105protected:
108
109 void Initialize() override;
111
112 int Mode;
114 vtkTreeDFSIteratorInternals* Internals;
116
118 {
121 BLACK
122 };
123
124private:
125 vtkTreeDFSIterator(const vtkTreeDFSIterator&) = delete;
126 void operator=(const vtkTreeDFSIterator&) = delete;
127};
128
129#endif
a simple class to control print indentation
Definition: vtkIndent.h:119
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:155
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