46 #ifndef vtkAbstractArray_h
47 #define vtkAbstractArray_h
77 virtual void Initialize() = 0;
81 virtual int GetDataType() =0;
87 virtual int GetDataTypeSize() = 0;
88 static int GetDataTypeSize(
int type);
95 virtual int GetElementComponentSize() = 0;
100 vtkSetClampMacro(NumberOfComponents,
int, 1,
VTK_INT_MAX);
112 bool HasAComponentName();
124 virtual void SetNumberOfTuples(
vtkIdType number) = 0;
129 {
return (this->MaxId + 1)/this->NumberOfComponents;}
184 virtual bool HasStandardMemoryLayout();
190 virtual void *GetVoidPointer(
vtkIdType id) = 0;
213 virtual void InterpolateTuple(
vtkIdType i,
220 virtual void Squeeze() = 0;
224 virtual int Resize(
vtkIdType numTuples) = 0;
244 {
return this->MaxId;}
254 virtual void SetVoidArray(
void *vtkNotUsed(array),
256 int vtkNotUsed(
save)) =0;
270 virtual unsigned long GetActualMemorySize() = 0;
274 vtkSetStringMacro(Name);
275 vtkGetStringMacro(Name);
281 {
return vtkImageScalarTypeNameMacro( this->GetDataType() ); }
293 virtual int IsNumeric() = 0;
306 return this->GetNumberOfComponents() * this->GetNumberOfTuples();
333 virtual void DataChanged() = 0;
338 virtual void ClearLookup() = 0;
382 virtual void GetProminentComponentValues(
int comp,
vtkVariantArray* values,
383 double uncertainty = 1.e-6,
double minimumProminence = 1.e-3);
410 virtual int CopyInformation(
vtkInformation *infoFrom,
int deep=1);
448 MAX_DISCRETE_VALUES = 32
454 vtkGetMacro(MaxDiscreteValues,
unsigned int);
455 vtkSetMacro(MaxDiscreteValues,
unsigned int);
470 return AbstractArray;
491 virtual void UpdateDiscreteValueSet(
double uncertainty,
double minProminence);
507 class vtkInternalComponentNames;
abstract base class for most VTK objects
An array holding vtkVariants.
vtkIdType GetNumberOfTuples()
Abstract superclass for all arrays.
#define VTKCOMMONCORE_EXPORT
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
virtual int GetArrayType()
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
static void InsertTuples(vtkDataArray *dst, vtkIdType dstStart, vtkIdType n, vtkIdType srcStart, vtkAbstractArray *source)
Abstract superclass to iterate over elements in an vtkAbstractArray.
void save(Archiver &ar, const vtkUnicodeString &str, const unsigned int vtkNotUsed(version))
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
vtkInternalComponentNames * ComponentNames
unsigned int MaxDiscreteValues