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 =========================================================================*/
25 #ifndef vtkUniformGridAMRDataIterator_h
26 #define vtkUniformGridAMRDataIterator_h
27 
28 #include "vtkCommonDataModelModule.h" // For export macro
30 #include "vtkSmartPointer.h" //for member variable Information
31 
32 class vtkInformation;
33 class vtkAMRInformation;
35 class vtkUniformGridAMR;
36 class AMRIndexIterator;
37 
38 class VTKCOMMONDATAMODEL_EXPORT vtkUniformGridAMRDataIterator :
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45 
53 
54  int HasCurrentMetaData() VTK_OVERRIDE { return 1;}
55 
60 
66  unsigned int GetCurrentFlatIndex() VTK_OVERRIDE;
67 
71  virtual unsigned int GetCurrentLevel();
72 
77  virtual unsigned int GetCurrentIndex();
78 
82  void GoToFirstItem() VTK_OVERRIDE;
83 
87  void GoToNextItem() VTK_OVERRIDE;
88 
95  int IsDoneWithTraversal() VTK_OVERRIDE;
96 
97 protected:
100  vtkSmartPointer<AMRIndexIterator> Iter;
101 private:
103  void operator=(const vtkUniformGridAMRDataIterator&) VTK_DELETE_FUNCTION;
104 
105  vtkSmartPointer<vtkInformation> Information;
107  vtkAMRInformation* AMRInfo;
108  vtkAMRDataInternals* AMRData;
109 
110  void GetCurrentIndexPair(unsigned int& level, unsigned int& id);
111 
112 };
113 
114 #endif
vtkAMRInformation
Meta data that describes the structure of an AMR data set.
Definition: vtkAMRInformation.h:49
vtkCompositeDataIterator.h
vtkUniformGridAMRDataIterator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSmartPointer
Hold a reference to a vtkObjectBase instance.
Definition: vtkSmartPointer.h:36
vtkUniformGridAMRDataIterator::GetCurrentDataObject
vtkDataObject * GetCurrentDataObject() override
Returns the current item.
vtkX3D::level
@ level
Definition: vtkX3D.h:395
vtkUniformGridAMRDataIterator
subclass of vtkCompositeDataIterator with API to get current level and dataset index.
Definition: vtkUniformGridAMRDataIterator.h:40
vtkCompositeDataIterator
superclass for composite data iterators
Definition: vtkCompositeDataIterator.h:39
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkSmartPointer.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkUniformGridAMRDataIterator::GetCurrentMetaData
vtkInformation * GetCurrentMetaData() override
Returns the meta-data associated with the current item.
vtkUniformGridAMR
Definition: vtkUniformGridAMR.h:34
vtkUniformGridAMRDataIterator::New
static vtkUniformGridAMRDataIterator * New()
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkAMRDataInternals
container of vtkUniformGrid for an AMR data set
Definition: vtkAMRDataInternals.h:36