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 -------------------------------------------------------------------------*/
67 #ifndef vtkTreeDFSIterator_h
68 #define vtkTreeDFSIterator_h
69 
70 #include "vtkCommonDataModelModule.h" // For export macro
71 #include "vtkTreeIterator.h"
72 
73 class vtkTreeDFSIteratorInternals;
74 class vtkIntArray;
75 
76 class VTKCOMMONDATAMODEL_EXPORT vtkTreeDFSIterator : public vtkTreeIterator
77 {
78 public:
81  void PrintSelf(ostream& os, vtkIndent indent) override;
82 
83  enum ModeType
84  {
86  FINISH
87  };
88 
90 
98  void SetMode(int mode);
99  vtkGetMacro(Mode, int);
101 
102 protected:
105 
106  void Initialize() override;
108 
109  int Mode;
111  vtkTreeDFSIteratorInternals* Internals;
113 
115  {
118  BLACK
119  };
120 
121 private:
122  vtkTreeDFSIterator(const vtkTreeDFSIterator&) = delete;
123  void operator=(const vtkTreeDFSIterator&) = delete;
124 };
125 
126 #endif
a simple class to control print indentation
Definition: vtkIndent.h:113
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:149
depth first iterator through a vtkGraph
static vtkTreeDFSIterator * New()
~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
vtkIdType NextInternal() override
Abstract class for iterator over a vtkTree.
@ mode
Definition: vtkX3D.h:253
int vtkIdType
Definition: vtkType.h:332