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 -------------------------------------------------------------------------*/
40 #ifndef vtkTreeDFSIterator_h
41 #define vtkTreeDFSIterator_h
42 
43 #include "vtkCommonDataModelModule.h" // For export macro
44 #include "vtkTreeIterator.h"
45 
46 class vtkTreeDFSIteratorInternals;
47 class vtkIntArray;
48 
50 {
51 public:
52  static vtkTreeDFSIterator* New();
54  virtual void PrintSelf(ostream& os, vtkIndent indent);
55 
56  //BTX
57  enum ModeType
58  {
60  FINISH
61  };
62  //ETX
63 
65 
70  void SetMode(int mode);
71  vtkGetMacro(Mode, int);
73 
74 protected:
77 
78  virtual void Initialize();
79  virtual vtkIdType NextInternal();
80 
81  int Mode;
83  vtkTreeDFSIteratorInternals* Internals;
85 
86  //BTX
87  enum ColorType
88  {
91  BLACK
92  };
93  //ETX
94 
95 private:
96  vtkTreeDFSIterator(const vtkTreeDFSIterator &); // Not implemented.
97  void operator=(const vtkTreeDFSIterator &); // Not implemented.
98 };
99 
100 
101 #endif
102 
Abstract class for iterator over a vtkTree.
virtual vtkIdType NextInternal()=0
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkTreeDFSIteratorInternals * Internals
int vtkIdType
Definition: vtkType.h:275
depth first iterator through a vtkGraph
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:49
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void Initialize()=0
static vtkObject * New()
#define VTKCOMMONDATAMODEL_EXPORT