46 #ifndef __vtkAbstractArray_h
47 #define __vtkAbstractArray_h
49 #include "vtkCommonCoreModule.h"
75 virtual void Initialize() = 0;
79 virtual int GetDataType() =0;
85 virtual int GetDataTypeSize() = 0;
86 static int GetDataTypeSize(
int type);
93 virtual int GetElementComponentSize() = 0;
98 vtkSetClampMacro(NumberOfComponents,
int, 1,
VTK_INT_MAX);
103 void SetComponentName(
vtkIdType component,
const char *name );
107 const char* GetComponentName(
vtkIdType component );
110 bool HasAComponentName();
122 virtual void SetNumberOfTuples(
vtkIdType number) = 0;
127 {
return (this->MaxId + 1)/this->NumberOfComponents;}
159 virtual void *GetVoidPointer(
vtkIdType id) = 0;
182 virtual void InterpolateTuple(
vtkIdType i,
189 virtual void Squeeze() = 0;
193 virtual int Resize(
vtkIdType numTuples) = 0;
210 {
return this->MaxId;}
220 virtual void SetVoidArray(
void *vtkNotUsed(array),
222 int vtkNotUsed(save)) =0;
236 virtual unsigned long GetActualMemorySize() = 0;
240 vtkSetStringMacro(Name);
241 vtkGetStringMacro(Name);
247 {
return vtkImageScalarTypeNameMacro( this->GetDataType() ); }
259 virtual int IsNumeric() = 0;
272 return this->GetNumberOfComponents() * this->GetNumberOfTuples();
299 virtual void DataChanged() = 0;
304 virtual void ClearLookup() = 0;
348 virtual void GetProminentComponentValues(
int comp,
vtkVariantArray* values,
349 double uncertainty = 1.e-6,
double minimumProminence = 1.e-3);
376 virtual int CopyInformation(
vtkInformation *infoFrom,
int deep=1);
413 MAX_DISCRETE_VALUES = 32
433 virtual void UpdateDiscreteValueSet(
double uncertainty,
double minProminence);
446 class vtkInternalComponentNames;
abstract base class for most VTK objects
An array holding vtkVariants.
vtkIdType GetNumberOfTuples()
Abstract superclass for all arrays.
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
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