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=========================================================================*/
22#ifndef vtkBitArrayIterator_h
23#define vtkBitArrayIterator_h
24
25#include "vtkCommonCoreModule.h" // For export macro
26#include "vtkArrayIterator.h"
27
28class vtkBitArray;
29class VTKCOMMONCORE_EXPORT vtkBitArrayIterator : public vtkArrayIterator
30{
31public:
34 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
35
43 void Initialize(vtkAbstractArray* array) VTK_OVERRIDE;
44
49
54
59
64
69
74
78 int GetDataType() VTK_OVERRIDE;
79
83 int GetDataTypeSize();
84
89 void SetValue(vtkIdType id, int value);
90
94 typedef int ValueType;
95
96protected:
98 ~vtkBitArrayIterator() VTK_OVERRIDE;
99
100 int *Tuple;
101 int TupleSize;
102 void SetArray(vtkBitArray* b);
104private:
105 vtkBitArrayIterator(const vtkBitArrayIterator&) VTK_DELETE_FUNCTION;
106 void operator=(const vtkBitArrayIterator&) VTK_DELETE_FUNCTION;
107};
108
109#endif
110
Abstract superclass for all arrays.
Abstract superclass to iterate over elements in an vtkAbstractArray.
Iterator for vtkBitArray.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType GetNumberOfTuples()
Must be called only after Initialize.
vtkAbstractArray * GetArray()
Get the array.
static vtkBitArrayIterator * New()
int GetValue(vtkIdType id)
Must be called only after Initialize.
int GetNumberOfComponents()
Must be called only after Initialize.
int * GetTuple(vtkIdType id)
Must be called only after Initialize.
void Initialize(vtkAbstractArray *array) override
Set the array this iterator will iterate over.
vtkIdType GetNumberOfValues()
Must be called only after Initialize.
int GetDataType() override
Get the data type from the underlying array.
int ValueType
Data type of a value.
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:37
a simple class to control print indentation
Definition: vtkIndent.h:40
@ value
Definition: vtkX3D.h:220
int vtkIdType
Definition: vtkType.h:287