VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
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
;
27
class
VTK_COMMON_EXPORT
vtkBitArrayIterator
:
public
vtkArrayIterator
28
{
29
public
:
30
static
vtkBitArrayIterator
*
New
();
31
vtkTypeMacro(
vtkBitArrayIterator
,
vtkArrayIterator
);
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
:
75
vtkBitArrayIterator
();
76
~
vtkBitArrayIterator
();
78
79
int
*
Tuple
;
80
int
TupleSize
;
81
void
SetArray(
vtkBitArray
* b);
82
vtkBitArray
*
Array
;
83
private
:
84
vtkBitArrayIterator
(
const
vtkBitArrayIterator
&);
// Not implemented.
85
void
operator=(
const
vtkBitArrayIterator
&);
// Not implemented.
86
};
87
88
#endif
89
Generated on Thu Mar 13 2014 08:09:43 for VTK by
1.8.1.2