VTK  9.7.1
vtkUniformGridAMRIterator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkUniformGridAMRIterator_h
18 #define vtkUniformGridAMRIterator_h
19 
20 #include "vtkCommonDataModelModule.h" // For export macro
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class VTKCOMMONDATAMODEL_EXPORT vtkUniformGridAMRIterator : public vtkDataObjectTreeIterator
25 {
26 public:
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
35  void GoToFirstItem() override;
36 
41  void GoToNextItem() override;
42 
47  [[nodiscard]] unsigned int GetCurrentLevel() const;
48 
53  [[nodiscard]] unsigned int GetCurrentIndex() const;
54 
63 
64 protected:
66  ~vtkUniformGridAMRIterator() override;
67 
68 private:
70  void operator=(const vtkUniformGridAMRIterator&) = delete;
71 
76  [[nodiscard]] bool IsValid() VTK_FUTURE_CONST;
77 
82  void CheckItemAndLoopIfNeeded();
83 
84  unsigned int CurrentLevel = 0;
85  unsigned int CurrentIndex = 0;
86 };
87 
88 VTK_ABI_NAMESPACE_END
89 #endif
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GoToNextItem() override
Move the iterator to the next item in the collection.
static vtkDataObjectTreeIterator * New()
specialized vtkDataObjectTreeIterator for AMR
a simple class to control print indentation
Definition: vtkIndent.h:28
vtkDataObjectTreeIndex GetCurrentIndex()
Returns the index for the current data object.
superclass for composite data iterators
vtkInformation * GetCurrentMetaData() override
Returns the meta-data associated with the current item.
void GoToFirstItem() override
Move the iterator to the beginning of the collection.