Go to the documentation of this file.
33 class vtkBitArrayLookup;
145 void SetNumberOfValues(
vtkIdType number);
173 {
return this->WritePointer(
id, number); }
176 return static_cast<void *
>(this->GetPointer(
id));
200 this->SetArray(
static_cast<unsigned char *
>(array),
size,
save);
250 vtkBitArrayLookup* Lookup;
258 this->
MaxId = number - 1;
266 this->
Array[
id/8] =
static_cast<unsigned char>(
267 this->
Array[
id/8] | (0x80 >>
id%8));
271 this->
Array[
id/8] =
static_cast<unsigned char>(
272 this->
Array[
id/8] & (~(0x80 >>
id%8)));
279 if (
id >= this->
Size )
288 this->
Array[
id/8] =
static_cast<unsigned char>(
289 this->
Array[
id/8] | (0x80 >>
id%8));
293 this->
Array[
id/8] =
static_cast<unsigned char>(
294 this->
Array[
id/8] & (~(0x80 >>
id%8)));
296 if (
id > this->
MaxId )
#define VTKCOMMONCORE_EXPORT
void * WriteVoidPointer(vtkIdType id, vtkIdType number)
virtual void ClearLookup()
vtkIdType InsertNextTuple(const float *tuple)
virtual void InsertTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source)
void PrintSelf(ostream &os, vtkIndent indent)
void save(Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))
#define vtkTypeMacro(thisClass, superclass)
void DeepCopy(vtkDataArray *da)
void SetTuple(vtkIdType i, const double *tuple)
void GetTuple(vtkIdType i, double *tuple)
double * GetTuple(vtkIdType i)
abstract superclass for arrays of numeric data
unsigned char * GetPointer(vtkIdType id)
void SetComponent(vtkIdType i, int j, double c)
unsigned char * WritePointer(vtkIdType id, vtkIdType number)
virtual void InsertTuples(vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source)
virtual void SetTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *source)
void SetTuple(vtkIdType i, const float *tuple)
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void InsertValue(vtkIdType id, int i)
void SetNumberOfTuples(vtkIdType number)
void SetValue(vtkIdType id, int value)
virtual void RemoveTuple(vtkIdType id)
void InsertTuple(vtkIdType i, const float *tuple)
GLsizei const GLfloat * value
virtual vtkIdType InsertNextTuple(vtkIdType j, vtkAbstractArray *source)
void SetVariantValue(vtkIdType idx, vtkVariant value)
static vtkBitArray * New()
void DeepCopy(vtkAbstractArray *aa)
virtual void RemoveFirstTuple()
virtual void DeepCopy(vtkAbstractArray *aa)
virtual void SetVariantValue(vtkIdType idx, vtkVariant value)=0
void SetNumberOfValues(vtkIdType number)
a simple class to control print indentation
A atomic type representing the union of many types.
list of point or cell ids
virtual vtkIdType LookupValue(vtkVariant value)
vtkIdType InsertNextValue(int i)
unsigned char * ResizeAndExtend(vtkIdType sz)
vtkArrayIterator * NewIterator()
Abstract superclass for all arrays.
void * GetVoidPointer(vtkIdType id)
int GetValue(vtkIdType id)
vtkIdType LookupValue(int value)
void SetArray(unsigned char *array, vtkIdType size, int save)
virtual void InsertTuples(vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkAbstractArray *source)
int ToInt(bool *valid) const
virtual void DeepCopy(vtkAbstractArray *da)
Abstract superclass to iterate over elements in an vtkAbstractArray.
void LookupValue(int value, vtkIdList *ids)
vtkIdType InsertNextTuple(const double *tuple)
virtual void InsertComponent(vtkIdType i, int j, double c)
dynamic, self-adjusting array of bits
void InsertTuple(vtkIdType i, const double *tuple)
int Allocate(vtkIdType sz, vtkIdType ext=1000)
virtual void RemoveLastTuple()
virtual int Resize(vtkIdType numTuples)
virtual void DataChanged()
void SetVoidArray(void *array, vtkIdType size, int save)
virtual void LookupValue(vtkVariant value, vtkIdList *ids)