VTK
vtkUniformGridAMRDataIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUniformGridAMRDataIterator.h
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 =========================================================================*/
24 #ifndef vtkUniformGridAMRDataIterator_h
25 #define vtkUniformGridAMRDataIterator_h
26 
27 #include "vtkCommonDataModelModule.h" // For export macro
29 #include "vtkSmartPointer.h" //for member variable Information
30 
31 class vtkInformation;
32 class vtkAMRInformation;
34 class vtkUniformGridAMR;
35 class AMRIndexIterator;
36 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
50 
51  virtual int HasCurrentMetaData() { return 1;}
52 
56 
60  unsigned int GetCurrentFlatIndex();
61 
63  virtual unsigned int GetCurrentLevel();
64 
67  virtual unsigned int GetCurrentIndex();
68 
70  virtual void GoToFirstItem();
71 
73  virtual void GoToNextItem();
74 
78  virtual int IsDoneWithTraversal();
79 
80 
81 //BTX
82 protected:
86 private:
88  void operator=(const vtkUniformGridAMRDataIterator&); // Not implemented.
89 
92  vtkAMRInformation* AMRInfo;
93  vtkAMRDataInternals* AMRData;
94 
95  void GetCurrentIndexPair(unsigned int& level, unsigned int& id);
96 //ETX
97 };
98 
99 #endif
virtual int IsDoneWithTraversal()=0
subclass of vtkCompositeDataIterator with API to get current level and dataset index.
Store vtkAlgorithm input/output information.
virtual vtkInformation * GetCurrentMetaData()=0
vtkSmartPointer< AMRIndexIterator > Iter
virtual void GoToNextItem()=0
superclass for composite data iterators
virtual void GoToFirstItem()=0
Meta data that describes the structure of an AMR data set.
a simple class to control print indentation
Definition: vtkIndent.h:38
container of vtkUniformGrid for an AMR data set
virtual vtkDataObject * GetCurrentDataObject()=0
static vtkObject * New()
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)
virtual unsigned int GetCurrentFlatIndex()=0
#define VTKCOMMONDATAMODEL_EXPORT