VTK
vtkCompositeDataIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCompositeDataIterator.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 =========================================================================*/
26 #ifndef vtkCompositeDataIterator_h
27 #define vtkCompositeDataIterator_h
28 
29 #include "vtkCommonDataModelModule.h" // For export macro
30 #include "vtkObject.h"
31 
33 class vtkCompositeDataSetInternals;
34 class vtkCompositeDataSetIndex;
35 class vtkDataObject;
36 class vtkInformation;
37 
38 class VTKCOMMONDATAMODEL_EXPORT vtkCompositeDataIterator : public vtkObject
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
43 
45 
49  virtual void SetDataSet(vtkCompositeDataSet* ds);
50  vtkGetObjectMacro(DataSet, vtkCompositeDataSet);
52 
56  virtual void InitTraversal();
57 
61  virtual void InitReverseTraversal();
62 
66  virtual void GoToFirstItem() = 0;
67 
71  virtual void GoToNextItem() =0;
72 
79  virtual int IsDoneWithTraversal() =0;
80 
84  virtual vtkDataObject* GetCurrentDataObject() = 0;
85 
91  virtual vtkInformation* GetCurrentMetaData() =0;
92 
97  virtual int HasCurrentMetaData() =0;
98 
100 
104  vtkSetMacro(SkipEmptyNodes, int);
105  vtkGetMacro(SkipEmptyNodes, int);
106  vtkBooleanMacro(SkipEmptyNodes, int);
108 
112  virtual unsigned int GetCurrentFlatIndex()=0;
113 
115 
118  vtkGetMacro(Reverse, int);
120 
121 protected:
123  ~vtkCompositeDataIterator() VTK_OVERRIDE;
124  int SkipEmptyNodes;
125  int Reverse;
127 
128 private:
129  vtkCompositeDataIterator(const vtkCompositeDataIterator&) VTK_DELETE_FUNCTION;
130  void operator=(const vtkCompositeDataIterator&) VTK_DELETE_FUNCTION;
131 
132 };
133 
134 #endif
135 
136 
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
superclass for composite data iterators
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
general representation of visualization data
Definition: vtkDataObject.h:64