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 =========================================================================*/
22 #ifndef vtkUniformGridAMRDataIterator_h
23 #define vtkUniformGridAMRDataIterator_h
24 
25 #include "vtkCommonDataModelModule.h" // For export macro
27 #include "vtkSmartPointer.h" //for member variable Information
28 
29 class vtkInformation;
30 class vtkAMRInformation;
32 class vtkUniformGridAMR;
33 class AMRIndexIterator;
34 
35 class VTKCOMMONDATAMODEL_EXPORT vtkUniformGridAMRDataIterator :
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
42 
49  vtkInformation* GetCurrentMetaData() VTK_OVERRIDE;
50 
51  int HasCurrentMetaData() VTK_OVERRIDE { return 1;}
52 
56  vtkDataObject* GetCurrentDataObject() VTK_OVERRIDE;
57 
63  unsigned int GetCurrentFlatIndex() VTK_OVERRIDE;
64 
68  virtual unsigned int GetCurrentLevel();
69 
74  virtual unsigned int GetCurrentIndex();
75 
79  void GoToFirstItem() VTK_OVERRIDE;
80 
84  void GoToNextItem() VTK_OVERRIDE;
85 
92  int IsDoneWithTraversal() VTK_OVERRIDE;
93 
94 protected:
96  ~vtkUniformGridAMRDataIterator() VTK_OVERRIDE;
97  vtkSmartPointer<AMRIndexIterator> Iter;
98 private:
100  void operator=(const vtkUniformGridAMRDataIterator&) VTK_DELETE_FUNCTION;
101 
102  vtkSmartPointer<vtkInformation> Information;
104  vtkAMRInformation* AMRInfo;
105  vtkAMRDataInternals* AMRData;
106 
107  void GetCurrentIndexPair(unsigned int& level, unsigned int& id);
108 
109 };
110 
111 #endif
subclass of vtkCompositeDataIterator with API to get current level and dataset index.
Store vtkAlgorithm input/output information.
virtual vtkInformation * GetCurrentMetaData()=0
Returns the meta-data associated with the current item.
Hold a reference to a vtkObjectBase instance.
superclass for composite data iterators
Meta data that describes the structure of an AMR data set.
a simple class to control print indentation
Definition: vtkIndent.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
container of vtkUniformGrid for an AMR data set
virtual vtkDataObject * GetCurrentDataObject()=0
Returns the current item.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
general representation of visualization data
Definition: vtkDataObject.h:58