VTK
vtkBitArrayIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBitArrayIterator.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 =========================================================================*/
21 #ifndef vtkBitArrayIterator_h
22 #define vtkBitArrayIterator_h
23 
24 #include "vtkCommonCoreModule.h" // For export macro
25 #include "vtkArrayIterator.h"
26 
27 class vtkBitArray;
29 {
30 public:
31  static vtkBitArrayIterator* New();
33  void PrintSelf(ostream& os, vtkIndent indent);
34 
39  virtual void Initialize(vtkAbstractArray* array);
40 
42  vtkAbstractArray* GetArray();
43 
45  int* GetTuple(vtkIdType id) ;
46 
48  int GetValue(vtkIdType id);
49 
51  vtkIdType GetNumberOfTuples();
52 
54  vtkIdType GetNumberOfValues();
55 
57  int GetNumberOfComponents();
58 
60  int GetDataType();
61 
63  int GetDataTypeSize();
64 
68  void SetValue(vtkIdType id, int value);
69 
70  //BTX
72 
73  typedef int ValueType;
74  //ETX
75 protected:
79 
80  int *Tuple;
81  int TupleSize;
82  void SetArray(vtkBitArray* b);
84 private:
85  vtkBitArrayIterator(const vtkBitArrayIterator&); // Not implemented.
86  void operator=(const vtkBitArrayIterator&); // Not implemented.
87 };
88 
89 #endif
90 
Iterator for vtkBitArray. This iterator iterates over a vtkBitArray. It uses the double interface to ...
virtual int GetDataType()=0
Abstract superclass for all arrays.
#define VTKCOMMONCORE_EXPORT
int vtkIdType
Definition: vtkType.h:247
void PrintSelf(ostream &os, vtkIndent indent)
virtual void Initialize(vtkAbstractArray *array)=0
a simple class to control print indentation
Definition: vtkIndent.h:38
Abstract superclass to iterate over elements in an vtkAbstractArray.
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:35
static vtkObject * New()