4 #ifndef vtkCTHDataArray_h 5 #define vtkCTHDataArray_h 36 void SetDimensions(
int x,
int y,
int z);
45 void SetExtents(
int x0,
int x1,
int y0,
int y1,
int z0,
int z1);
47 void SetExtent(
int* x) { this->SetExtents(x[0], x[1], x[2], x[3], x[4], x[5]); }
53 void SetDataPointer(
int comp,
int k,
int j,
double* istrip);
80 return Fallback->Allocate(sz, ext);
94 this->BuildFallback();
95 this->Fallback->SetNumberOfTuples(number);
96 this->Size = this->Fallback->GetSize();
97 this->MaxId = this->Fallback->GetMaxId();
104 this->BuildFallback();
105 this->Fallback->SetTuple(i, j, aa);
109 this->BuildFallback();
110 this->Fallback->SetTuple(i, f);
114 this->BuildFallback();
115 this->Fallback->SetTuple(i, d);
120 this->BuildFallback();
121 this->Fallback->InsertTuple(i, j, aa);
125 this->BuildFallback();
126 this->Fallback->InsertTuple(i, f);
130 this->BuildFallback();
131 this->Fallback->InsertTuple(i, d);
135 this->BuildFallback();
136 this->Fallback->InsertTuples(dstIds, srcIds, source);
141 this->BuildFallback();
142 this->Fallback->InsertTuples(dstStart, n, srcStart, source);
147 this->BuildFallback();
148 vtkIdType ret = this->Fallback->InsertNextTuple(i, aa);
149 this->Size = this->Fallback->GetSize();
150 this->MaxId = this->Fallback->GetMaxId();
155 this->BuildFallback();
156 vtkIdType ret = this->Fallback->InsertNextTuple(f);
157 this->Size = this->Fallback->GetSize();
158 this->MaxId = this->Fallback->GetMaxId();
163 this->BuildFallback();
164 vtkIdType ret = this->Fallback->InsertNextTuple(d);
165 this->Size = this->Fallback->GetSize();
166 this->MaxId = this->Fallback->GetMaxId();
172 this->BuildFallback();
173 this->Fallback->InsertVariantValue(idx, value);
178 this->BuildFallback();
179 this->Fallback->RemoveTuple(
id);
183 this->BuildFallback();
184 this->Fallback->RemoveFirstTuple();
188 this->BuildFallback();
189 this->Fallback->RemoveLastTuple();
194 this->BuildFallback();
195 return this->Fallback->WriteVoidPointer(i, j);
200 this->BuildFallback();
201 this->Fallback->DeepCopy(aa);
208 this->BuildFallback();
209 this->Fallback->SetVoidArray(p,
id, i, j);
213 this->BuildFallback();
214 this->Fallback->SetVoidArray(p,
id, i);
225 this->Size = this->Fallback->GetSize();
226 this->MaxId = this->Fallback->GetMaxId();
227 this->Fallback->Squeeze();
234 this->BuildFallback();
235 return this->Fallback->Resize(numTuples);
240 this->BuildFallback();
241 this->Fallback->DataChanged();
246 this->BuildFallback();
247 this->Fallback->ClearLookup();
270 void BuildFallback();
#define VTKPVADAPTORSCTH_EXPORT
void DeepCopy(vtkAbstractArray *aa) override
void ClearLookup() override
void SetVoidArray(void *p, vtkIdType id, int i, int j) override
void InsertTuples(vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkAbstractArray *source) override
void * GetVoidPointer(vtkIdType id) override
vtkDoubleArray * Fallback
void DataChanged() override
virtual vtkIdType LookupValue(vtkVariant value)=0
virtual double * GetTuple(vtkIdType tupleIdx)=0
virtual int GetDataTypeSize()=0
void * WriteVoidPointer(vtkIdType i, vtkIdType j) override
void SetNumberOfTuples(vtkIdType number) override
void RemoveLastTuple() override
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void InsertTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *aa) override
int GetNumberOfComponents()
int Allocate(vtkIdType sz, vtkIdType ext=1000) override
void SetDimensions(int *x)
vtkTypeUInt64 vtkMTimeType
virtual void Initialize()=0
void InsertVariantValue(vtkIdType idx, vtkVariant value) override
void RemoveTuple(vtkIdType id) override
void SetVoidArray(void *p, vtkIdType id, int i) override
void InsertTuple(vtkIdType i, const double *d) override
void SetNumberOfComponents(int number) override
void InsertTuples(vtkIdList *dstIds, vtkIdList *srcIds, vtkAbstractArray *source) override
void SetTuple(vtkIdType i, vtkIdType j, vtkAbstractArray *aa) override
vtkIdType InsertNextTuple(const double *d) override
void InsertTuple(vtkIdType i, const float *f) override
int GetElementComponentSize() const override
void SetArrayFreeFunction(void(*)(void *)) override
virtual VTK_NEWINSTANCE vtkArrayIterator * NewIterator()=0
void SetExtents(int *lo, int *hi)
int Resize(vtkIdType numTuples) override
int GetDataTypeSize() const override
virtual void SetNumberOfComponents(int)
void SetTuple(vtkIdType i, const float *f) override
void RemoveFirstTuple() override
void DeepCopy(vtkDataArray *da) override
const int * GetDimensions()
void SetVariantValue(vtkIdType vtkNotUsed(index), vtkVariant vtkNotUsed(value)) override
void operator=(const vtkObjectBase &)
int GetDataType() const override
vtkIdType InsertNextTuple(const float *f) override
vtkIdType InsertNextTuple(vtkIdType i, vtkAbstractArray *aa) override
void SetTuple(vtkIdType i, const double *d) override
virtual void ExportToVoidPointer(void *out_ptr)