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 =========================================================================*/
25 #ifndef vtkCompositeDataIterator_h
26 #define vtkCompositeDataIterator_h
27 
28 #include "vtkCommonDataModelModule.h" // For export macro
29 #include "vtkObject.h"
30 
32 class vtkCompositeDataSetInternals;
33 class vtkCompositeDataSetIndex;
34 class vtkDataObject;
35 class vtkInformation;
36 
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
46  virtual void SetDataSet(vtkCompositeDataSet* ds);
47  vtkGetObjectMacro(DataSet, vtkCompositeDataSet);
49 
51  virtual void InitTraversal();
52 
55  virtual void InitReverseTraversal();
56 
58  virtual void GoToFirstItem() = 0;
59 
61  virtual void GoToNextItem() =0;
62 
66  virtual int IsDoneWithTraversal() =0;
67 
70  virtual vtkDataObject* GetCurrentDataObject() = 0;
71 
76  virtual vtkInformation* GetCurrentMetaData() =0;
77 
80  virtual int HasCurrentMetaData() =0;
81 
83 
85  vtkSetMacro(SkipEmptyNodes, int);
86  vtkGetMacro(SkipEmptyNodes, int);
87  vtkBooleanMacro(SkipEmptyNodes, int);
89 
92  virtual unsigned int GetCurrentFlatIndex()=0;
93 
95 
96  vtkGetMacro(Reverse, int);
98 
99 //BTX
100 protected:
102  virtual ~vtkCompositeDataIterator();
104  int Reverse;
106 
107 private:
108  vtkCompositeDataIterator(const vtkCompositeDataIterator&); // Not implemented.
109  void operator=(const vtkCompositeDataIterator&); // Not implemented.
110 //ETX
111 };
112 
113 #endif
114 
115 
abstract base class for most VTK objects
Definition: vtkObject.h:61
Store vtkAlgorithm input/output information.
superclass for composite data iterators
abstract superclass for composite (multi-block or AMR) datasets
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
general representation of visualization data
Definition: vtkDataObject.h:64
#define VTKCOMMONDATAMODEL_EXPORT