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 -------------------------------------------------------------------------*/
50 #ifndef vtkTreeDFSIterator_h
51 #define vtkTreeDFSIterator_h
52 
53 #include "vtkCommonDataModelModule.h" // For export macro
54 #include "vtkTreeIterator.h"
55 
56 class vtkTreeDFSIteratorInternals;
57 class vtkIntArray;
58 
59 class VTKCOMMONDATAMODEL_EXPORT vtkTreeDFSIterator : public vtkTreeIterator
60 {
61 public:
64  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
66  enum ModeType
67  {
69  FINISH
70  };
71 
73 
81  void SetMode(int mode);
82  vtkGetMacro(Mode, int);
84 
85 protected:
87  ~vtkTreeDFSIterator() override;
88 
89  void Initialize() override;
90  vtkIdType NextInternal() override;
91 
92  int Mode;
94  vtkTreeDFSIteratorInternals* Internals;
96 
97  enum ColorType
98  {
101  BLACK
102  };
103 
104 private:
105  vtkTreeDFSIterator(const vtkTreeDFSIterator&) = delete;
106  void operator=(const vtkTreeDFSIterator&) = delete;
107 };
108 
109 #endif
a simple class to control print indentation
Definition: vtkIndent.h:49
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:55
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