00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkHierarchicalDataIterator.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 =========================================================================*/ 00034 #ifndef __vtkHierarchicalDataIterator_h 00035 #define __vtkHierarchicalDataIterator_h 00036 00037 #include "vtkCompositeDataIterator.h" 00038 00039 class vtkHierarchicalDataSet; 00040 class vtkHierarchicalDataIteratorInternal; 00041 00042 class VTK_FILTERING_EXPORT vtkHierarchicalDataIterator : public vtkCompositeDataIterator 00043 { 00044 public: 00045 static vtkHierarchicalDataIterator *New(); 00046 00047 vtkTypeRevisionMacro(vtkHierarchicalDataIterator,vtkCompositeDataIterator); 00048 void PrintSelf(ostream& os, vtkIndent indent); 00049 00051 virtual void GoToFirstItem(); 00052 00054 virtual void GoToNextItem(); 00055 00058 virtual int IsDoneWithTraversal(); 00059 00062 virtual vtkDataObject* GetCurrentDataObject(); 00063 00065 00066 void SetDataSet(vtkHierarchicalDataSet* dataset); 00067 vtkGetObjectMacro(DataSet, vtkHierarchicalDataSet); 00069 00070 protected: 00071 vtkHierarchicalDataIterator(); 00072 virtual ~vtkHierarchicalDataIterator(); 00073 00074 void GoToNextNonEmptyLevel(); 00075 00076 vtkHierarchicalDataSet* DataSet; 00077 vtkHierarchicalDataIteratorInternal* Internal; 00078 00079 private: 00080 vtkHierarchicalDataIterator(const vtkHierarchicalDataIterator&); // Not implemented. 00081 void operator=(const vtkHierarchicalDataIterator&); // Not implemented. 00082 }; 00083 00084 #endif 00085