VTK
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 -------------------------------------------------------------------------*/
38 #ifndef vtkTreeDFSIterator_h
39 #define vtkTreeDFSIterator_h
40 
41 #include "vtkCommonDataModelModule.h" // For export macro
42 #include "vtkTreeIterator.h"
43 
44 class vtkTreeDFSIteratorInternals;
45 class vtkIntArray;
46 
47 class VTKCOMMONDATAMODEL_EXPORT vtkTreeDFSIterator : public vtkTreeIterator
48 {
49 public:
50  static vtkTreeDFSIterator* New();
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
54  enum ModeType
55  {
57  FINISH
58  };
59 
61 
69  void SetMode(int mode);
70  vtkGetMacro(Mode, int);
72 
73 protected:
75  ~vtkTreeDFSIterator() override;
76 
77  void Initialize() override;
78  vtkIdType NextInternal() override;
79 
80  int Mode;
82  vtkTreeDFSIteratorInternals* Internals;
84 
85  enum ColorType
86  {
89  BLACK
90  };
91 
92 private:
93  vtkTreeDFSIterator(const vtkTreeDFSIterator &) = delete;
94  void operator=(const vtkTreeDFSIterator &) = delete;
95 };
96 
97 
98 #endif
99 
Abstract class for iterator over a vtkTree.
virtual vtkIdType NextInternal()=0
vtkTreeDFSIteratorInternals * Internals
int vtkIdType
Definition: vtkType.h:347
depth first iterator through a vtkGraph
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual void Initialize()=0
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.