VTK
vtkTreeBFSIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: $RCSfile: vtkTreeBFSIterator.h,v $
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 
33 #ifndef vtkTreeBFSIterator_h
34 #define vtkTreeBFSIterator_h
35 
36 #include "vtkCommonDataModelModule.h" // For export macro
37 #include "vtkTreeIterator.h"
38 
39 class vtkTreeBFSIteratorInternals;
40 class vtkIntArray;
41 
43 {
44 public:
45  static vtkTreeBFSIterator* New();
47  virtual void PrintSelf(ostream& os, vtkIndent indent);
48 
49 protected:
52 
53  virtual void Initialize();
54  virtual vtkIdType NextInternal();
55 
56  vtkTreeBFSIteratorInternals* Internals;
58 
59  //BTX
60  enum ColorType
61  {
64  BLACK
65  };
66  //ETX
67 
68 private:
69  vtkTreeBFSIterator(const vtkTreeBFSIterator &); // Not implemented.
70  void operator=(const vtkTreeBFSIterator &); // Not implemented.
71 };
72 
73 #endif
vtkTreeBFSIteratorInternals * Internals
Abstract class for iterator over a vtkTree.
virtual vtkIdType NextInternal()=0
virtual void PrintSelf(ostream &os, vtkIndent indent)
int vtkIdType
Definition: vtkType.h:275
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:49
a simple class to control print indentation
Definition: vtkIndent.h:38
breadth first search iterator through a vtkTree
virtual void Initialize()=0
static vtkObject * New()
#define VTKCOMMONDATAMODEL_EXPORT