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;
98 void SetComponentName(
vtkIdType component,
const char *name );
102 const char* GetComponentName(
vtkIdType component );
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);
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;
abstract base class for most VTK objects
vtkIdType GetNumberOfTuples()
Abstract superclass for all arrays.
dynamic, self-adjusting array of vtkIdType
int GetNumberOfComponents()
A atomic type representing the union of many types.
virtual vtkIdType GetDataSize()
vtkInformation * Information
virtual void ExportToVoidPointer(void *vtkNotUsed(out_ptr))
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
list of point or cell ids
virtual const char * GetDataTypeAsString(void)
abstract superclass for arrays of numeric data
Abstract superclass to iterate over elements in an vtkAbstractArray.
vtkInternalComponentNames * ComponentNames
void save(Archiver &ar, const vtkVariant &variant, const unsigned int vtkNotUsed(version))
#define VTK_LARGE_INTEGER