46 #ifndef __vtkAbstractArray_h
47 #define __vtkAbstractArray_h
70 virtual void Initialize() = 0;
74 virtual int GetDataType() =0;
80 virtual int GetDataTypeSize() = 0;
81 static int GetDataTypeSize(
int type);
88 virtual int GetElementComponentSize() = 0;
105 bool HasAComponentName();
117 virtual void SetNumberOfTuples(
vtkIdType number) = 0;
122 {
return (this->MaxId + 1)/this->NumberOfComponents;}
154 virtual void *GetVoidPointer(
vtkIdType id) = 0;
177 virtual void InterpolateTuple(
vtkIdType i,
184 virtual void Squeeze() = 0;
188 virtual int Resize(
vtkIdType numTuples) = 0;
205 {
return this->MaxId;}
215 virtual void SetVoidArray(
void *vtkNotUsed(array),
217 int vtkNotUsed(
save)) =0;
231 virtual unsigned long GetActualMemorySize() = 0;
235 vtkSetStringMacro(Name);
236 vtkGetStringMacro(Name);
241 virtual const char *GetDataTypeAsString(
void )
242 {
return vtkImageScalarTypeNameMacro( this->GetDataType() ); }
254 virtual int IsNumeric() = 0;
267 return this->GetNumberOfComponents() * this->GetNumberOfTuples();
294 virtual void DataChanged() = 0;
299 virtual void ClearLookup() = 0;
327 virtual int CopyInformation(
vtkInformation *infoFrom,
int deep=1);
356 class vtkInternalComponentNames;