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 =========================================================================*/ 00023 #ifndef __vtkHierarchicalDataIterator_h 00024 #define __vtkHierarchicalDataIterator_h 00025 00026 #include "vtkCompositeDataIterator.h" 00027 00028 class vtkHierarchicalDataSet; 00029 class vtkHierarchicalDataIteratorInternal; 00030 00031 class VTK_FILTERING_EXPORT vtkHierarchicalDataIterator : public vtkCompositeDataIterator 00032 { 00033 public: 00034 static vtkHierarchicalDataIterator *New(); 00035 00036 vtkTypeRevisionMacro(vtkHierarchicalDataIterator,vtkCompositeDataIterator); 00037 void PrintSelf(ostream& os, vtkIndent indent); 00038 00040 virtual void GoToFirstItem(); 00041 00043 virtual void GoToNextItem(); 00044 00047 virtual int IsDoneWithTraversal(); 00048 00051 virtual vtkDataObject* GetCurrentDataObject(); 00052 00054 00055 void SetDataSet(vtkHierarchicalDataSet* dataset); 00056 vtkGetObjectMacro(DataSet, vtkHierarchicalDataSet); 00058 00059 protected: 00060 vtkHierarchicalDataIterator(); 00061 virtual ~vtkHierarchicalDataIterator(); 00062 00063 void GoToNextNonEmptyLevel(); 00064 00065 vtkHierarchicalDataSet* DataSet; 00066 vtkHierarchicalDataIteratorInternal* Internal; 00067 00068 private: 00069 vtkHierarchicalDataIterator(const vtkHierarchicalDataIterator&); // Not implemented. 00070 void operator=(const vtkHierarchicalDataIterator&); // Not implemented. 00071 }; 00072 00073 #endif 00074