VTK
dox/Filtering/vtkTreeBFSIterator.h
Go to the documentation of this file.
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 "vtkTreeIterator.h"
00037 
00038 class vtkTreeBFSIteratorInternals;
00039 class vtkIntArray;
00040 
00041 class VTK_FILTERING_EXPORT vtkTreeBFSIterator : public vtkTreeIterator
00042 {
00043 public:
00044   static vtkTreeBFSIterator* New();
00045   vtkTypeMacro(vtkTreeBFSIterator, vtkTreeIterator);
00046   virtual void PrintSelf(ostream& os, vtkIndent indent);
00047 
00048 protected:
00049   vtkTreeBFSIterator();
00050   ~vtkTreeBFSIterator();
00051 
00052   virtual void Initialize();
00053   virtual vtkIdType NextInternal();
00054 
00055   vtkTreeBFSIteratorInternals* Internals;
00056   vtkIntArray* Color;
00057 
00058   //BTX
00059   enum ColorType
00060     {
00061     WHITE,
00062     GRAY,
00063     BLACK
00064     };
00065   //ETX
00066 
00067 private:
00068   vtkTreeBFSIterator(const vtkTreeBFSIterator &);  // Not implemented.
00069   void operator=(const vtkTreeBFSIterator &);        // Not implemented.
00070 };
00071 
00072 #endif