VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkTreeBFSIterator.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 00033 #ifndef __vtkTreeBFSIterator_h 00034 #define __vtkTreeBFSIterator_h 00035 00036 #include "vtkCommonDataModelModule.h" // For export macro 00037 #include "vtkTreeIterator.h" 00038 00039 class vtkTreeBFSIteratorInternals; 00040 class vtkIntArray; 00041 00042 class VTKCOMMONDATAMODEL_EXPORT vtkTreeBFSIterator : public vtkTreeIterator 00043 { 00044 public: 00045 static vtkTreeBFSIterator* New(); 00046 vtkTypeMacro(vtkTreeBFSIterator, vtkTreeIterator); 00047 virtual void PrintSelf(ostream& os, vtkIndent indent); 00048 00049 protected: 00050 vtkTreeBFSIterator(); 00051 ~vtkTreeBFSIterator(); 00052 00053 virtual void Initialize(); 00054 virtual vtkIdType NextInternal(); 00055 00056 vtkTreeBFSIteratorInternals* Internals; 00057 vtkIntArray* Color; 00058 00059 //BTX 00060 enum ColorType 00061 { 00062 WHITE, 00063 GRAY, 00064 BLACK 00065 }; 00066 //ETX 00067 00068 private: 00069 vtkTreeBFSIterator(const vtkTreeBFSIterator &); // Not implemented. 00070 void operator=(const vtkTreeBFSIterator &); // Not implemented. 00071 }; 00072 00073 #endif