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 -------------------------------------------------------------------------*/
41 #ifndef vtkTreeDFSIterator_h
42 #define vtkTreeDFSIterator_h
43 
44 #include "vtkCommonDataModelModule.h" // For export macro
45 #include "vtkTreeIterator.h"
46 
47 class vtkTreeDFSIteratorInternals;
48 class vtkIntArray;
49 
50 class VTKCOMMONDATAMODEL_EXPORT vtkTreeDFSIterator : public vtkTreeIterator
51 {
52 public:
53  static vtkTreeDFSIterator* New();
55  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
56 
57  enum ModeType
58  {
60  FINISH
61  };
62 
64 
72  void SetMode(int mode);
73  vtkGetMacro(Mode, int);
75 
76 protected:
78  ~vtkTreeDFSIterator() VTK_OVERRIDE;
79 
80  void Initialize() VTK_OVERRIDE;
81  vtkIdType NextInternal() VTK_OVERRIDE;
82 
83  int Mode;
84  vtkIdType CurRoot;
85  vtkTreeDFSIteratorInternals* Internals;
87 
88  enum ColorType
89  {
92  BLACK
93  };
94 
95 private:
96  vtkTreeDFSIterator(const vtkTreeDFSIterator &) VTK_DELETE_FUNCTION;
97  void operator=(const vtkTreeDFSIterator &) VTK_DELETE_FUNCTION;
98 };
99 
100 
101 #endif
102 
Abstract class for iterator over a vtkTree.
int vtkIdType
Definition: vtkType.h:287
depth first iterator through a vtkGraph
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:45
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:39
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...