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 =========================================================================*/
28 #ifndef vtkCompositeDataIterator_h
29 #define vtkCompositeDataIterator_h
30 
31 #include "vtkCommonDataModelModule.h" // For export macro
32 #include "vtkObject.h"
33 
35 class vtkCompositeDataSetInternals;
36 class vtkCompositeDataSetIndex;
37 class vtkDataObject;
38 class vtkInformation;
39 
41 {
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
49  virtual void SetDataSet(vtkCompositeDataSet* ds);
50  vtkGetObjectMacro(DataSet, vtkCompositeDataSet);
52 
54  virtual void InitTraversal();
55 
58  virtual void InitReverseTraversal();
59 
61  virtual void GoToFirstItem() = 0;
62 
64  virtual void GoToNextItem() =0;
65 
69  virtual int IsDoneWithTraversal() =0;
70 
73  virtual vtkDataObject* GetCurrentDataObject() = 0;
74 
79  virtual vtkInformation* GetCurrentMetaData() =0;
80 
83  virtual int HasCurrentMetaData() =0;
84 
86 
88  vtkSetMacro(SkipEmptyNodes, int);
89  vtkGetMacro(SkipEmptyNodes, int);
90  vtkBooleanMacro(SkipEmptyNodes, int);
92 
95  virtual unsigned int GetCurrentFlatIndex()=0;
96 
98 
99  vtkGetMacro(Reverse, int);
101 
102 //BTX
103 protected:
105  virtual ~vtkCompositeDataIterator();
107  int Reverse;
109 
110 private:
111  vtkCompositeDataIterator(const vtkCompositeDataIterator&); // Not implemented.
112  void operator=(const vtkCompositeDataIterator&); // Not implemented.
113 //ETX
114 };
115 
116 #endif
117 
118 
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