/usr/include/vtk-5.8/vtkBitArrayIterator.h is in libvtk5-dev 5.8.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkBitArrayIterator.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkBitArrayIterator - Iterator for vtkBitArray.
// This iterator iterates over a vtkBitArray. It uses the double interface
// to get/set bit values.
#ifndef __vtkBitArrayIterator_h
#define __vtkBitArrayIterator_h
#include "vtkArrayIterator.h"
class vtkBitArray;
class VTK_COMMON_EXPORT vtkBitArrayIterator : public vtkArrayIterator
{
public:
static vtkBitArrayIterator* New();
vtkTypeMacro(vtkBitArrayIterator, vtkArrayIterator);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set the array this iterator will iterate over.
// After Initialize() has been called, the iterator is valid
// so long as the Array has not been modified
// (except using the iterator itself).
// If the array is modified, the iterator must be re-intialized.
virtual void Initialize(vtkAbstractArray* array);
// Description:
// Get the array.
vtkAbstractArray* GetArray();
// Description:
// Must be called only after Initialize.
int* GetTuple(vtkIdType id) ;
// Description:
// Must be called only after Initialize.
int GetValue(vtkIdType id);
// Description:
// Must be called only after Initialize.
vtkIdType GetNumberOfTuples();
// Description:
// Must be called only after Initialize.
vtkIdType GetNumberOfValues();
// Description:
// Must be called only after Initialize.
int GetNumberOfComponents();
// Description:
// Get the data type from the underlying array.
int GetDataType();
// Description:
// Get the data type size from the underlying array.
int GetDataTypeSize();
// Description:
// Sets the value at the index. This does not verify if the index is valid.
// The caller must ensure that id is less than the maximum number of values.
void SetValue(vtkIdType id, int value);
//BTX
// Description:
// Data type of a value.
typedef int ValueType;
//ETX
protected:
vtkBitArrayIterator();
~vtkBitArrayIterator();
int *Tuple;
int TupleSize;
void SetArray(vtkBitArray* b);
vtkBitArray* Array;
private:
vtkBitArrayIterator(const vtkBitArrayIterator&); // Not implemented.
void operator=(const vtkBitArrayIterator&); // Not implemented.
};
#endif
|