33 class vtkBitArrayLookup;
145 void SetNumberOfValues(
vtkIdType number);
177 {
return this->WritePointer(
id, number); }
180 return static_cast<void *
>(this->GetPointer(
id));
204 this->SetArray(static_cast<unsigned char *>(array), size, save);
237 unsigned char *ResizeAndExtend(
vtkIdType sz);
254 vtkBitArrayLookup* Lookup;
262 this->
MaxId = number - 1;
270 this->
Array[
id/8] =
static_cast<unsigned char>(
271 this->
Array[
id/8] | (0x80 >>
id%8));
275 this->
Array[
id/8] =
static_cast<unsigned char>(
276 this->
Array[
id/8] & (~(0x80 >>
id%8)));
283 if (
id >= this->
Size )
292 this->
Array[
id/8] =
static_cast<unsigned char>(
293 this->
Array[
id/8] | (0x80 >>
id%8));
297 this->
Array[
id/8] =
static_cast<unsigned char>(
298 this->
Array[
id/8] & (~(0x80 >>
id%8)));
300 if (
id > this->
MaxId )
virtual void DataChanged()
virtual double * GetTuple(vtkIdType i)=0
void SetVoidArray(void *array, vtkIdType size, int save)
virtual void DeepCopy(vtkAbstractArray *aa)
void InsertVariantValue(vtkIdType idx, vtkVariant value)
virtual void DataChanged()=0
virtual void DeepCopy(vtkAbstractArray *da)
Abstract superclass for all arrays.
virtual vtkIdType LookupValue(vtkVariant value)=0
#define VTKCOMMONCORE_EXPORT
virtual void RemoveFirstTuple()=0
virtual void SetNumberOfTuples(vtkIdType number)=0
virtual void InsertVariantValue(vtkIdType idx, vtkVariant value)=0
virtual void InsertComponent(vtkIdType i, int j, double c)
void InsertValue(vtkIdType id, int i)
virtual void Initialize()=0
A atomic type representing the union of many types.
void SetValue(vtkIdType id, int value)
int ToInt(bool *valid) const
virtual int Allocate(vtkIdType sz, vtkIdType ext=1000)=0
virtual void InsertTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source)=0
unsigned char * GetPointer(vtkIdType id)
void SetNumberOfValues(vtkIdType number)
virtual void ClearLookup()=0
a simple class to control print indentation
virtual void RemoveLastTuple()=0
void SetVariantValue(vtkIdType idx, vtkVariant value)
void DeepCopy(vtkAbstractArray *aa)
list of point or cell ids
virtual int Resize(vtkIdType numTuples)=0
abstract superclass for arrays of numeric data
virtual vtkArrayIterator * NewIterator()=0
Abstract superclass to iterate over elements in an vtkAbstractArray.
virtual void SetTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source)=0
void save(Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))
unsigned char * ResizeAndExtend(vtkIdType sz)
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
dynamic, self-adjusting array of bits
void * GetVoidPointer(vtkIdType id)
int Allocate(vtkIdType sz, vtkIdType ext=1000)
virtual void SetComponent(vtkIdType i, int j, double c)
vtkIdType InsertNextValue(int i)
void PrintSelf(ostream &os, vtkIndent indent)
virtual void RemoveTuple(vtkIdType id)=0
virtual void SetVariantValue(vtkIdType idx, vtkVariant value)=0
void * WriteVoidPointer(vtkIdType id, vtkIdType number)
virtual vtkIdType InsertNextTuple(vtkIdType j, vtkAbstractArray *source)=0
virtual void InsertTuples(vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source)=0