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 "vtkArrayIterator.h"
25 
26 class vtkBitArray;
28 {
29 public:
30  static vtkBitArrayIterator* New();
32  void PrintSelf(ostream& os, vtkIndent indent);
33 
38  virtual void Initialize(vtkAbstractArray* array);
39 
41  vtkAbstractArray* GetArray();
42 
44  int* GetTuple(vtkIdType id) ;
45 
47  int GetValue(vtkIdType id);
48 
50  vtkIdType GetNumberOfTuples();
51 
53  vtkIdType GetNumberOfValues();
54 
56  int GetNumberOfComponents();
57 
59  int GetDataType();
60 
62  int GetDataTypeSize();
63 
67  void SetValue(vtkIdType id, int value);
68 
69  //BTX
71 
72  typedef int ValueType;
73  //ETX
74 protected:
78 
79  int *Tuple;
80  int TupleSize;
81  void SetArray(vtkBitArray* b);
83 private:
84  vtkBitArrayIterator(const vtkBitArrayIterator&); // Not implemented.
85  void operator=(const vtkBitArrayIterator&); // Not implemented.
86 };
87 
88 #endif
89